From 6df6b4a675171871d6e7d9471362eac0f57260f6 Mon Sep 17 00:00:00 2001
From: Emmanuel Christophe <emmanuel.christophe@orfeo-toolbox.org>
Date: Mon, 2 Mar 2009 11:01:37 +0800
Subject: [PATCH] BUG: converting dangerous #define to static const member

---
 Code/ChangeDetection/otbCBAMIChangeDetector.h | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/Code/ChangeDetection/otbCBAMIChangeDetector.h b/Code/ChangeDetection/otbCBAMIChangeDetector.h
index 11a3590384..afe95fbae6 100644
--- a/Code/ChangeDetection/otbCBAMIChangeDetector.h
+++ b/Code/ChangeDetection/otbCBAMIChangeDetector.h
@@ -53,7 +53,7 @@ namespace otb
  * \ingroup IntensityImageFilters Multithreaded
  */
 
-#define epsilon 0.01
+// #define EPSILON_VALUE_CBAMI 0.01
 
 namespace Functor
 {
@@ -93,6 +93,8 @@ public:
 
 protected:
 
+  static const double epsilon = 0.01;
+
   inline void normalizeInPlace(VectorType vx)
   {
 
-- 
GitLab