Skip to content
Snippets Groups Projects
Commit bd72455b authored by Thomas Feuvrier's avatar Thomas Feuvrier
Browse files

Définit le M_PI uniquement s'il n'existe pas.

parent 7fb68a5e
No related branches found
No related tags found
No related merge requests found
......@@ -27,9 +27,9 @@
#include "itkImageLinearConstIteratorWithIndex.h"
#include "itkImageLinearIteratorWithIndex.h"
#if defined(WIN32) || defined(WIN32CE)
#define M_PI 3.141592654
#endif
#ifndef M_PI
#define M_PI 3.14159265358979323846
#endif
namespace otb
......
......@@ -30,7 +30,9 @@
#include "itkProgressReporter.h"
#include <math.h>
#ifndef M_PI
#define M_PI 3.14159265358979323846
#endif
namespace otb
{
......
......@@ -31,7 +31,9 @@
#include <math.h>
#include "otbMacro.h"
#ifndef M_PI
#define M_PI 3.14159265358979323846
#endif
namespace otb
{
......@@ -314,8 +316,10 @@ void LineDetectorImageFilterBase< TInputImage, TOutputImage, InterpolatorType>
Index[0] = static_cast<CoordRepType>(xout + Xc);
Index[1] = static_cast<CoordRepType>(yout + Yc);
PixelValues[dir][zone].push_back(static_cast<double>(interpolator->EvaluateAtContinuousIndex( Index )));
//THOMAS
// PixelValues[dir][zone].push_back(static_cast<double>(interpolator->EvaluateAtContinuousIndex( Index )));
double result = static_cast<double>(interpolator->EvaluateAtContinuousIndex( Index ));
PixelValues[dir][zone].push_back(result );
}
......
......@@ -31,7 +31,9 @@
#include "itkProgressReporter.h"
#include <math.h>
#ifndef M_PI
#define M_PI 3.14159265358979323846
#endif
namespace otb
{
......
......@@ -31,7 +31,9 @@
#include "itkProgressReporter.h"
#include <math.h>
#ifndef M_PI
#define M_PI 3.14159265358979323846
#endif
namespace otb
{
......
......@@ -27,12 +27,13 @@
#include "itkImageRegionIterator.h"
#include "itkNeighborhoodAlgorithm.h"
#include "itkZeroFluxNeumannBoundaryCondition.h"
//#include "itkOffset.h"
#include "itkProgressReporter.h"
#include <math.h>
#include "otbMacro.h"
#ifndef M_PI
#define M_PI 3.14159265358979323846
#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