]> Creatis software - clitk.git/commitdiff
Add information for clitkBlur
authortbaudier <thomas.baudier@creatis.insa-lyon.fr>
Mon, 25 Sep 2017 14:46:41 +0000 (16:46 +0200)
committertbaudier <thomas.baudier@creatis.insa-lyon.fr>
Mon, 25 Sep 2017 14:46:41 +0000 (16:46 +0200)
tools/clitkBlurImage.ggo
tools/clitkBlurImageGenericFilter.txx

index cbcd40c3f1586553cee823e00080353492ec33c7..62330ece35cf954b5b5b2fb5d99cd9d0a8d69a14 100644 (file)
@@ -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
index ea3054ef4f79274388b9794b99e4330abd0d239d..ac0a459b1f320548f28f7f11c9a0b94bf122e18a 100644 (file)
@@ -118,6 +118,7 @@ BlurImageGenericFilter<args_info_type>::UpdateWithInputImageType()
   typename DiscreteGaussianImageFilterType::Pointer gaussianFilter=DiscreteGaussianImageFilterType::New();
   gaussianFilter->SetInput(input);
   gaussianFilter->SetVariance(varianceArray);
+  gaussianFilter->SetUseImageSpacing(true);
   gaussianFilter->Update();
 
   //std::cout<<"variance value="<<gaussianFilter->GetVariance()<<std::endl;