Skip to content
Snippets Groups Projects
Commit 7f3c0520 authored by Julien Michel's avatar Julien Michel
Browse files

Supression des élément de normalisation de l'angle spectral.

parent 17c734cc
Branches
Tags
No related merge requests found
...@@ -89,10 +89,11 @@ SpectralAngleDistanceImageFilter<TInputImage,TOutputImage> ...@@ -89,10 +89,11 @@ SpectralAngleDistanceImageFilter<TInputImage,TOutputImage>
{ {
dist = vcl_acos(scalarProd/vcl_sqrt(normProd)); dist = vcl_acos(scalarProd/vcl_sqrt(normProd));
} }
//------ This part was supressed since the filter must perform only the spectral angle computation ---
// Spectral angle normalisation // Spectral angle normalisation
dist = dist/(M_PI/2); // dist = dist/(M_PI/2);
//square ponderation //square ponderation
dist = vcl_sqrt(dist); // dist = vcl_sqrt(dist);
outputIt.Set(static_cast<OutputPixelType>(dist)); outputIt.Set(static_cast<OutputPixelType>(dist));
++inputIt; ++inputIt;
++outputIt; ++outputIt;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment