From cc1473e5ccdb7b9baafc26ff8b2933b967d72fc7 Mon Sep 17 00:00:00 2001
From: Cyrille Valladeau <cyrille.valladeau@c-s.fr>
Date: Wed, 8 Jul 2009 15:32:22 +0200
Subject: [PATCH] ENH : CONST_PI/8 -> CONST_PI_8

---
 Code/FeatureExtraction/otbGenericRoadExtractionFilter.txx | 4 ++--
 Code/FeatureExtraction/otbRemoveWrongDirectionFilter.h    | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/Code/FeatureExtraction/otbGenericRoadExtractionFilter.txx b/Code/FeatureExtraction/otbGenericRoadExtractionFilter.txx
index 0a227ea867..d64ace2691 100644
--- a/Code/FeatureExtraction/otbGenericRoadExtractionFilter.txx
+++ b/Code/FeatureExtraction/otbGenericRoadExtractionFilter.txx
@@ -53,12 +53,12 @@ GenericRoadExtractionFilter<TInputImage, TOutputPath>
   /** Tolerance for segment consistency (tolerance in terms of distance) (use by the SimplifyPathFilter)*/
   m_Tolerance = static_cast<ToleranceType>(1.);
   /** Max angle (use bye the BreakAngularPathListFilter)*/
-  m_MaxAngle = static_cast<MaxAngleType>(CONST_PI/8.);
+  m_MaxAngle = static_cast<MaxAngleType>(CONST_PI_8);
   /** Tolerance for segment consistency (tolerance in terms of distance) (use by RemoveTortuousPathFilter)*/
   m_FirstMeanDistanceThreshold = static_cast<MeanDistanceThresholdType>(1.);
   m_SecondMeanDistanceThreshold = static_cast<MeanDistanceThresholdType>(10.);
   /** The angular threshold (use by LinkPathFilter) */
-  m_AngularThreshold = static_cast<LinkRealType>(CONST_PI/8.);
+  m_AngularThreshold = static_cast<LinkRealType>(CONST_PI_8);
 
   /** The distance threshold (use by LinkPathFilter) */
   m_DistanceThreshold = 25.;
diff --git a/Code/FeatureExtraction/otbRemoveWrongDirectionFilter.h b/Code/FeatureExtraction/otbRemoveWrongDirectionFilter.h
index f09307d355..731c172cbf 100644
--- a/Code/FeatureExtraction/otbRemoveWrongDirectionFilter.h
+++ b/Code/FeatureExtraction/otbRemoveWrongDirectionFilter.h
@@ -43,7 +43,7 @@ public:
   ~RemoveWrongDirectionFunctor() {};
   inline TOutput operator()(const TInput1 &A, const TInput2 &B)
   {
-    if (B < CONST_PI/8)
+    if (B < CONST_PI_8)
     {
       return 0;
     }
-- 
GitLab