From: tbaudier Date: Mon, 25 Sep 2017 14:46:41 +0000 (+0200) Subject: Add information for clitkBlur X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=0a1123f3cdd1a953540973eb44b291bbc7f44534;p=clitk.git Add information for clitkBlur --- diff --git a/tools/clitkBlurImage.ggo b/tools/clitkBlurImage.ggo index cbcd40c..62330ec 100644 --- a/tools/clitkBlurImage.ggo +++ b/tools/clitkBlurImage.ggo @@ -11,4 +11,4 @@ option "imagetypes" - "Display allowed image types" flag off option "input" i "Input image filename" string required option "output" o "Output image filename" string required -option "variance" - "value of the gaussian variance (multiple values=number of image dimension) - default=1.0" double optional multiple +option "variance" - "value of the gaussian variance (multiple values=number of image dimension) in mm - default=1.0" double optional multiple diff --git a/tools/clitkBlurImageGenericFilter.txx b/tools/clitkBlurImageGenericFilter.txx index ea3054e..ac0a459 100644 --- a/tools/clitkBlurImageGenericFilter.txx +++ b/tools/clitkBlurImageGenericFilter.txx @@ -118,6 +118,7 @@ BlurImageGenericFilter::UpdateWithInputImageType() typename DiscreteGaussianImageFilterType::Pointer gaussianFilter=DiscreteGaussianImageFilterType::New(); gaussianFilter->SetInput(input); gaussianFilter->SetVariance(varianceArray); + gaussianFilter->SetUseImageSpacing(true); gaussianFilter->Update(); //std::cout<<"variance value="<GetVariance()<