From 89ab63f2bb8295f8897f922884a5850b8feb3037 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Traizet?= <cedric.traizet@c-s.fr> Date: Mon, 3 Feb 2020 17:09:00 +0100 Subject: [PATCH] DOC: rename mode.gaussian.radius parameter into mode.gaussian.stdev --- .../Applications/AppFiltering/app/otbSmoothing.cxx | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/Modules/Applications/AppFiltering/app/otbSmoothing.cxx b/Modules/Applications/AppFiltering/app/otbSmoothing.cxx index f465172b66..dad4b5039f 100644 --- a/Modules/Applications/AppFiltering/app/otbSmoothing.cxx +++ b/Modules/Applications/AppFiltering/app/otbSmoothing.cxx @@ -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(); -- GitLab