Skip to content
Snippets Groups Projects
Commit a4473bea authored by Gaëlle USSEGLIO's avatar Gaëlle USSEGLIO
Browse files

STYLE : Remove unused ossim includes

parent 23fe04a9
No related branches found
No related tags found
No related merge requests found
......@@ -29,8 +29,6 @@
#include "itkNumericTraitsPointPixel.h"
#include "itkContinuousIndex.h"
#include "ossim/ossimSarSensorModel.h"
#include <cmath>
#include <algorithm>
......
......@@ -29,25 +29,7 @@
#include "itkImageScanlineIterator.h"
#include "otbImageKeywordlist.h"
#include "otbSarSensorModelAdapter.h"
#if defined(__GNUC__) || defined(__clang__)
# pragma GCC diagnostic push
# pragma GCC diagnostic ignored "-Wunused-parameter"
# pragma GCC diagnostic ignored "-Woverloaded-virtual"
# pragma GCC diagnostic ignored "-Wshadow"
# include "ossim/ossimTimeUtilities.h"
# pragma GCC diagnostic pop
#else
# include "ossim/ossimTimeUtilities.h"
#endif
#if defined(USE_BOOST_TIME)
# include <boost/date_time/posix_time/posix_time.hpp>
#include <ostream>
#endif
namespace otb
{
......@@ -102,50 +84,6 @@ public:
typedef itk::ImageScanlineConstIterator< ImageType > InputIterator;
typedef itk::ImageScanlineIterator< ImageType > OutputIterator;
#if defined(USE_BOOST_TIME)
typedef boost::posix_time::ptime TimeType;
typedef boost::posix_time::precise_duration DurationType;
#else
typedef ossimplugins::time::ModifiedJulianDate TimeType;
typedef ossimplugins::time::Duration DurationType;
#endif
// Struture declaration
struct FMRateRecordType
{
TimeType azimuthFMRateTime;
double coef0FMRate;
double coef1FMRate;
double coef2FMRate;
double tau0FMRate;
friend std::ostream & operator<<(std::ostream & os, const FMRateRecordType & v)
{
return os << "{ azimuthFMRateTime: " << v.azimuthFMRateTime
<< ", coefficient 0: " << v.coef0FMRate
<< ", coefficient 1: " << v.coef1FMRate
<< ",coefficient 2: " << v.coef2FMRate
<< ",slant range time (tau 0): " << v.tau0FMRate
<< "}";
}
};
struct DCFRecordType
{
TimeType azimuthDCFTime;
double coef0DCF;
double coef1DCF;
double coef2DCF;
double tau0DCF;
friend std::ostream & operator<<(std::ostream & os, const DCFRecordType & v)
{
return os << "{ azimuthDCFTime: " << v.azimuthDCFTime
<< ", coefficient 0: " << v.coef0DCF
<< ", coefficient 1: " << v.coef1DCF
<< ",coefficient 2: " << v.coef2DCF
<< ",slant range time (tau 0): " << v.tau0DCF
<< "}";
}
};
// Setter
itkSetMacro(PhaseDiffMean, float);
......
......@@ -28,19 +28,9 @@
#include "itkProgressReporter.h"
#include "itkNumericTraitsPointPixel.h"
#include "otbSarSensorModelAdapter.h"
#include <cmath>
#include <algorithm>
#if defined(USE_BOOST_TIME)
using boost::posix_time::microseconds;
using boost::posix_time::seconds;
#else
using ossimplugins::time::microseconds;
using ossimplugins::time::seconds;
#endif
namespace otb
{
/**
......
......@@ -29,8 +29,6 @@
#include "itkNumericTraitsPointPixel.h"
#include "itkContinuousIndex.h"
#include "ossim/ossimSarSensorModel.h"
#include <cmath>
#include <algorithm>
......
......@@ -28,8 +28,6 @@
#include "itkProgressReporter.h"
#include "itkNumericTraitsPointPixel.h"
#include "ossim/ossimSarSensorModel.h"
#include <cmath>
#include <algorithm>
......
......@@ -29,25 +29,6 @@
#include "itkImageScanlineIterator.h"
#include "otbImageKeywordlist.h"
#include "otbSarSensorModelAdapter.h"
#if defined(__GNUC__) || defined(__clang__)
# pragma GCC diagnostic push
# pragma GCC diagnostic ignored "-Wunused-parameter"
# pragma GCC diagnostic ignored "-Woverloaded-virtual"
# pragma GCC diagnostic ignored "-Wshadow"
# include "ossim/ossimTimeUtilities.h"
# pragma GCC diagnostic pop
#else
# include "ossim/ossimTimeUtilities.h"
#endif
#if defined(USE_BOOST_TIME)
# include <boost/date_time/posix_time/posix_time.hpp>
#include <ostream>
#endif
namespace otb
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment