From 7f3c05202096be30e19013ff8bd2cf393de0688c Mon Sep 17 00:00:00 2001
From: Julien Michel <julien.michel@c-s.fr>
Date: Mon, 14 May 2007 13:26:17 +0000
Subject: [PATCH] =?UTF-8?q?Supression=20des=20=C3=A9l=C3=A9ment=20de=20nor?=
 =?UTF-8?q?malisation=20de=20l'angle=20spectral.?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 Code/BasicFilters/otbSpectralAngleDistanceImageFilter.txx | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/Code/BasicFilters/otbSpectralAngleDistanceImageFilter.txx b/Code/BasicFilters/otbSpectralAngleDistanceImageFilter.txx
index a41fa2dade..9073f26f2d 100644
--- a/Code/BasicFilters/otbSpectralAngleDistanceImageFilter.txx
+++ b/Code/BasicFilters/otbSpectralAngleDistanceImageFilter.txx
@@ -89,10 +89,11 @@ SpectralAngleDistanceImageFilter<TInputImage,TOutputImage>
 	{
 	  dist = vcl_acos(scalarProd/vcl_sqrt(normProd));
 	}
+      //------ This part was supressed since the filter must perform only the spectral angle computation ---
       // Spectral angle normalisation
-      dist = dist/(M_PI/2);
-   //square ponderation
-   dist = vcl_sqrt(dist);
+      // dist = dist/(M_PI/2);
+      //square ponderation
+      // dist = vcl_sqrt(dist);
    outputIt.Set(static_cast<OutputPixelType>(dist));
     ++inputIt;
     ++outputIt;
-- 
GitLab