From d04a99d35d7de0a389373b35f04433e519583802 Mon Sep 17 00:00:00 2001
From: Ludovic Hussonnois <ludovic.hussonnois@c-s.fr>
Date: Mon, 16 Jan 2017 13:55:35 +0100
Subject: [PATCH] DOC: Correct parameters documentation.

---
 .../AppMorphology/app/otbMorphologicalProfilesAnalysis.cxx  | 6 +++---
 .../app/otbMorphologicalProfilesClassification.cxx          | 3 ++-
 2 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/Modules/Applications/AppMorphology/app/otbMorphologicalProfilesAnalysis.cxx b/Modules/Applications/AppMorphology/app/otbMorphologicalProfilesAnalysis.cxx
index 90de8ba281..f61dc99a6d 100644
--- a/Modules/Applications/AppMorphology/app/otbMorphologicalProfilesAnalysis.cxx
+++ b/Modules/Applications/AppMorphology/app/otbMorphologicalProfilesAnalysis.cxx
@@ -145,7 +145,7 @@ private:
     SetMinimumParameterIntValue( "step", 1 );
 
 
-    AddParameter( ParameterType_Choice, "profile", "Classification" );
+    AddParameter( ParameterType_Choice, "profile", "Profile" );
     SetParameterDescription( "profile", "" );
     AddChoice( "profile.opening", "opening" );
     AddChoice( "profile.closing", "closing" );
@@ -155,8 +155,8 @@ private:
     AddChoice( "profile.closingcharacteristics", "closingcharacteristics" );
     AddChoice( "profile.classification", "classification" );
 
-    AddParameter( ParameterType_Float, "profile.classification.sigma", "Sigma" );
-    SetParameterDescription( "profile.classification.sigma", "Sigma" );
+    AddParameter( ParameterType_Float, "profile.classification.sigma", "Sigma value for leveling tolerance" );
+    SetParameterDescription( "profile.classification.sigma", "Sigma value for leveling tolerance" );
     SetDefaultParameterFloat( "profile.classification.sigma", 1 );
     SetMinimumParameterFloatValue( "profile.classification.sigma", 0 );
 
diff --git a/Modules/Applications/AppMorphology/app/otbMorphologicalProfilesClassification.cxx b/Modules/Applications/AppMorphology/app/otbMorphologicalProfilesClassification.cxx
index 08cee96fd7..002f7cf2bb 100644
--- a/Modules/Applications/AppMorphology/app/otbMorphologicalProfilesClassification.cxx
+++ b/Modules/Applications/AppMorphology/app/otbMorphologicalProfilesClassification.cxx
@@ -118,8 +118,9 @@ private:
     // Strucring Element (Ball | Cross)
     AddParameter( ParameterType_Choice, "structype", "Structuring Element Type" );
     SetParameterDescription( "structype", "Choice of the structuring element type" );
-    AddChoice( "structype.cross", "Cross" );
     AddChoice( "structype.ball", "Ball" );
+    AddChoice( "structype.cross", "Cross" );
+
 
 
     AddParameter( ParameterType_Int, "radius", "Radius" );
-- 
GitLab