From c9add2cf5133da71536e1eccbb4b780a0db4ae34 Mon Sep 17 00:00:00 2001
From: Emmanuel Christophe <emmanuel.christophe@orfeo-toolbox.org>
Date: Thu, 5 Mar 2009 16:16:14 +0800
Subject: [PATCH] COMP: moving the epsilon to the operator(), the epsilon might
 need to disappear

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

diff --git a/Code/ChangeDetection/otbCBAMIChangeDetector.h b/Code/ChangeDetection/otbCBAMIChangeDetector.h
index afe95fbae6..b5e012c056 100644
--- a/Code/ChangeDetection/otbCBAMIChangeDetector.h
+++ b/Code/ChangeDetection/otbCBAMIChangeDetector.h
@@ -73,7 +73,7 @@ public:
   inline TOutput operator()( const TInput1 & itA,
                              const TInput2 & itB)
   {
-
+    const double epsilon = 0.01;
     VectorType vecA;
     VectorType vecB;
 
@@ -93,8 +93,6 @@ public:
 
 protected:
 
-  static const double epsilon = 0.01;
-
   inline void normalizeInPlace(VectorType vx)
   {
 
-- 
GitLab