]> Creatis software - clitk.git/commitdiff
Improvement of clitkGammaIndex.cxx by changing distance computation class.
authordelmon <delmon>
Thu, 24 Mar 2011 16:45:49 +0000 (16:45 +0000)
committerdelmon <delmon>
Thu, 24 Mar 2011 16:45:49 +0000 (16:45 +0000)
tools/clitkGammaIndex.cxx

index 4748bff195cf8907270dd8213daa1e6ce28a81ff..39cbf6f776633feb436b3a3f2e198d42f2106faf 100644 (file)
@@ -8,7 +8,7 @@ using std::endl;
 #include <itkShiftScaleImageFilter.h>
 #include <itkImageConstIteratorWithIndex.h>
 #include <itkChangeInformationImageFilter.h>
-#include <itkSignedDanielssonDistanceMapImageFilter.h>
+#include <itkSignedMaurerDistanceMapImageFilter.h>
 
 #include "clitkGammaIndex_ggo.h"
 
@@ -24,7 +24,7 @@ typedef itk::ChangeInformationImageFilter<Image> Scaler;
 
 typedef itk::Image<unsigned char,image_dim+1> ImageBin;
 typedef itk::Image<float,image_dim+1> ImageMap;
-typedef itk::SignedDanielssonDistanceMapImageFilter<ImageBin,ImageMap> Mapper;
+typedef itk::SignedMaurerDistanceMapImageFilter<ImageBin,ImageMap> Mapper;
 
 template <typename ImageType>
 void SaveImage(const ImageType *image, const std::string &filename) {
@@ -295,6 +295,7 @@ int main(int argc,char * argv[])
   // compute distance map
   Mapper::Pointer mapper = Mapper::New();
   mapper->InsideIsPositiveOn();
+  mapper->SquaredDistanceOff();
   mapper->UseImageSpacingOn();
   mapper->SetInput(image_bin);
   mapper->Update();