From 16072d9dd544f542c1cc1f14ee32cfd6e53be3ad Mon Sep 17 00:00:00 2001
From: Julien Michel <julien.michel@c-s.fr>
Date: Mon, 21 Jan 2008 08:35:36 +0000
Subject: [PATCH] Correction d'erreur dans la windowedGaussianSinc

---
 .../otbWindowedSincInterpolateImageGaussianFunction.h         | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/Code/BasicFilters/otbWindowedSincInterpolateImageGaussianFunction.h b/Code/BasicFilters/otbWindowedSincInterpolateImageGaussianFunction.h
index ccd7f2896c..9e03e1f000 100644
--- a/Code/BasicFilters/otbWindowedSincInterpolateImageGaussianFunction.h
+++ b/Code/BasicFilters/otbWindowedSincInterpolateImageGaussianFunction.h
@@ -50,9 +50,9 @@ class GaussianWindowFunction
     {
       double x = static_cast<double>(A);
       double px = M_PI * x;
-      double temp = exp( x * m_Factor );
+      double temp = vcl_exp( px*px * m_Factor);
       return (x == 0.0) ? static_cast<TOutput>(temp) : static_cast<TOutput>(temp * vcl_sin(px) / px);
-    }    
+    }
     private:
     double m_Factor;
     unsigned int m_Radius;
-- 
GitLab