Commit 89ab63f2 authored by Cédric Traizet's avatar Cédric Traizet

DOC: rename mode.gaussian.radius parameter into mode.gaussian.stdev

parent a9340fdf
......@@ -86,10 +86,9 @@ private:
AddChoice("type.gaussian", "Gaussian");
AddParameter(ParameterType_Float, "type.gaussian.radius", "Radius");
SetParameterDescription("type.gaussian.radius", "Standard deviation of the gaussian kernel used to filter the image");
SetDefaultParameterFloat("type.gaussian.radius", 2.0);
// TODO rename this parameter
AddParameter(ParameterType_Float, "type.gaussian.stdev", "Standard deviation");
SetParameterDescription("type.gaussian.stdev", "Standard deviation of the gaussian kernel used to filter the image");
SetDefaultParameterFloat("type.gaussian.stdev", 2.0);
AddChoice("type.anidif", "Anisotropic Diffusion");
......@@ -174,8 +173,8 @@ private:
PerBandDiscreteGaussianFilterType::Pointer perBand = PerBandDiscreteGaussianFilterType::New();
perBand->SetInput(inImage);
double radius = GetParameterFloat("type.gaussian.radius");
double variance = radius * radius;
const double stdev = GetParameterFloat("type.gaussian.stdev");
double variance = stdev * stdev;
perBand->GetFilter()->SetVariance(variance);
perBand->GetFilter()->SetUseImageSpacing(false);
perBand->UpdateOutputInformation();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment