From: delmon Date: Thu, 24 Mar 2011 16:45:49 +0000 (+0000) Subject: Improvement of clitkGammaIndex.cxx by changing distance computation class. X-Git-Tag: v1.2.0~122 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=864cf2c6e5fb2bdd0b46e10369f74eb0a74a44e8;p=clitk.git Improvement of clitkGammaIndex.cxx by changing distance computation class. --- diff --git a/tools/clitkGammaIndex.cxx b/tools/clitkGammaIndex.cxx index 4748bff..39cbf6f 100644 --- a/tools/clitkGammaIndex.cxx +++ b/tools/clitkGammaIndex.cxx @@ -8,7 +8,7 @@ using std::endl; #include #include #include -#include +#include #include "clitkGammaIndex_ggo.h" @@ -24,7 +24,7 @@ typedef itk::ChangeInformationImageFilter Scaler; typedef itk::Image ImageBin; typedef itk::Image ImageMap; -typedef itk::SignedDanielssonDistanceMapImageFilter Mapper; +typedef itk::SignedMaurerDistanceMapImageFilter Mapper; template 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();