TARGET_LINK_LIBRARIES(clitkImageUncertainty clitkCommon ${ITK_LIBRARIES})
SET(TOOLS_INSTALL ${TOOLS_INSTALL} clitkImageUncertainty)
+ WRAP_GGO(clitkNormalizeImageFilter_GGO_C clitkNormalizeImageFilter.ggo)
+ ADD_EXECUTABLE(clitkNormalizeImageFilter clitkNormalizeImageFilter.cxx ${clitkNormalizeImageFilter_GGO_C})
+ TARGET_LINK_LIBRARIES(clitkNormalizeImageFilter clitkCommon )
+ SET(TOOLS_INSTALL ${TOOLS_INSTALL} clitkNormalizeImageFilter)
+
WRAP_GGO(clitkImageGradientMagnitude_GGO_C clitkImageGradientMagnitude.ggo)
ADD_EXECUTABLE(clitkImageGradientMagnitude clitkImageGradientMagnitude.cxx ${clitkImageGradientMagnitude_GGO_C})
TARGET_LINK_LIBRARIES(clitkImageGradientMagnitude clitkCommon )
TARGET_LINK_LIBRARIES(clitkImageIntensityWindowing clitkCommon )
SET(TOOLS_INSTALL ${TOOLS_INSTALL} clitkImageIntensityWindowing)
+ WRAP_GGO(clitkBlurImage_GGO_C clitkBlurImage.ggo)
+ ADD_EXECUTABLE(clitkBlurImage clitkBlurImage.cxx ${clitkBlurImage_GGO_C})
+ TARGET_LINK_LIBRARIES(clitkBlurImage clitkCommon )
+ SET(TOOLS_INSTALL ${TOOLS_INSTALL} clitkBlurImage)
#=========================================================
option(CLITK_USE_ROOT "Build experimental tools using root" 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)" double required multiple
+option "variance" - "value of the gaussian variance (multiple values=number of image dimension) - default=1.0" double optional multiple
//std::cout<<"mArgsInfo.variance_given"<<mArgsInfo.variance_given<<std::endl;
- if (mArgsInfo.variance_given != dim) {
- std::cerr << "The number of variance parameters must be equal to the image dimension." << std::endl;
- return;
- }
+ //if (mArgsInfo.variance_given != dim) {
+ // std::cerr << "The number of variance parameters must be equal to the image dimension." << std::endl;
+ // return;
+ //}
+
+ if (mArgsInfo.variance_given && mArgsInfo.variance_given == dim) {
for (unsigned int i = 0; i < dim; i++) {
//std::cout<<"mArgsInfo.variance_arg[i]"<<mArgsInfo.variance_arg[i]<<std::endl;
varianceArray[i] = mArgsInfo.variance_arg[i];
}
+ } else {
+ for (unsigned int i = 0; i < dim; i++) {
+ varianceArray[i] = 1.0;
+ }
+ }
// Reading input
typename InputImageType::Pointer input = this->template GetInput<InputImageType>(0);
gaussianFilter->SetVariance(varianceArray);
gaussianFilter->Update();
+ //std::cout<<"variance value="<<gaussianFilter->GetVariance()<<std::endl;
+
// Write/Save results
this->template SetNextOutput<OutputImageType>(gaussianFilter->GetOutput());
}
option "mask" m "Mask input image filename" string optional
option "output" o "Output image filename" string required
option "normalize" n "Normalize the output image between 0 and 1" flag off
-option "gaussian_filter" g "Gaussian filtering" flag off
+option "gaussian_filter" g "Gaussian filtering - default sigma value=1.0" flag off
typename GradientMagnitudeImageFilterType::Pointer gradientFilter=GradientMagnitudeImageFilterType::New();
gradientFilter->SetInput(input);
gradientFilter->Update();
+ //std::cout<<"sigma value="<<gradientFilter->GetSigma()<<std::endl;
outputGradientFilter = gradientFilter->GetOutput();
}
// Set iterator
option "mask" m "Mask input image filename" string optional
option "output" o "Output image filename" string required
option "normalize" n "Normalize the output image between 0 and 1" flag off
-option "gaussian_filter" g "Gaussian filtering" flag on
+option "gaussian_filter" g "Gaussian filtering - default sigma value=1.0" flag on
typename LaplacianImageFilterType::Pointer laplacianFilter=LaplacianImageFilterType::New();
laplacianFilter->SetInput(castFilter->GetOutput());
laplacianFilter->Update();
+ //std::cout<<"sigma value="<<laplacianFilter->GetSigma()<<std::endl;
outputLaplacianFilter = laplacianFilter->GetOutput();
}
// Set iterator