Commit 3b391464 authored by Manuel Grizonnet's avatar Manuel Grizonnet
Browse files

Review parameters description of otbContrastEnhancement application

No related merge requests found
Showing with 19 additions and 19 deletions
+19 -19
...@@ -186,10 +186,10 @@ private: ...@@ -186,10 +186,10 @@ private:
AddParameter(ParameterType_OutputImage, "out", "Output Image"); AddParameter(ParameterType_OutputImage, "out", "Output Image");
SetParameterDescription("out", "Output image."); SetParameterDescription("out", "Output image.");
AddParameter(ParameterType_Int , "bins" , "Number of bin"); AddParameter(ParameterType_Int , "bins" , "Number of bins");
SetDefaultParameterInt("bins", 256); SetDefaultParameterInt("bins", 256);
SetParameterDescription("bins", SetParameterDescription("bins",
"Number of bin used to create the histogram"); "Number of bins in the histogram");
AddParameter(ParameterType_Float , "hfact" , "Contrast Limitation"); AddParameter(ParameterType_Float , "hfact" , "Contrast Limitation");
SetParameterDescription("hfact","This parameter will set the maximum " SetParameterDescription("hfact","This parameter will set the maximum "
...@@ -214,8 +214,8 @@ private: ...@@ -214,8 +214,8 @@ private:
"equalized and the corresponding gain will be interpolated."); "equalized and the corresponding gain will be interpolated.");
AddChoice( "spatial.global" , "Global" ); AddChoice( "spatial.global" , "Global" );
SetParameterDescription("spatial.global" , "The histogram will be " SetParameterDescription("spatial.global" , "The histogram will be "
"computed on the whole image. The equalization will be done on " "computed on the whole image. The equalization will be computed on "
"this single histogram."); "this histogram.");
AddParameter(ParameterType_Int,"spatial.local.h" , AddParameter(ParameterType_Int,"spatial.local.h" ,
...@@ -224,7 +224,7 @@ private: ...@@ -224,7 +224,7 @@ private:
"Thumbnail width in pixel"); "Thumbnail width in pixel");
AddParameter(ParameterType_Choice , "minmax" , "Minimum and maximum " AddParameter(ParameterType_Choice , "minmax" , "Minimum and maximum "
"definition"); "settings");
SetParameterDescription("minmax","Minimum and maximum value that will " SetParameterDescription("minmax","Minimum and maximum value that will "
"bound the histogram."); "bound the histogram.");
AddChoice( "minmax.auto" , "Automatic" ); AddChoice( "minmax.auto" , "Automatic" );
...@@ -235,11 +235,11 @@ private: ...@@ -235,11 +235,11 @@ private:
SetParameterDescription("minmax.auto.global" , "Automatic" SetParameterDescription("minmax.auto.global" , "Automatic"
"Min/max computation will result in the same minimum and maximum for " "Min/max computation will result in the same minimum and maximum for "
"all the bands."); "all the bands.");
AddChoice( "minmax.manual" , "Manual" ); AddChoice( "minmax.manual" , "Manual settings of min/max values" );
SetParameterDescription("minmax.auto","Minimum and maximum value will be " SetParameterDescription("minmax.auto","Minimum and maximum value will be "
"set by the user"); "set by the user");
AddParameter(ParameterType_Float , "minmax.manual.min" , "Minimum"); AddParameter(ParameterType_Float , "minmax.manual.min" , "Minimum value");
AddParameter(ParameterType_Float , "minmax.manual.max" , "Maximum"); AddParameter(ParameterType_Float , "minmax.manual.max" , "Maximum value");
MandatoryOff("minmax.manual.min"); MandatoryOff("minmax.manual.min");
MandatoryOff("minmax.manual.max"); MandatoryOff("minmax.manual.max");
...@@ -257,25 +257,25 @@ private: ...@@ -257,25 +257,25 @@ private:
"on how human eyes perceive colors)" "on how human eyes perceive colors)"
); );
AddParameter(ParameterType_Group , "mode.lum.red" , "Red Channel" ); AddParameter(ParameterType_Group , "mode.lum.red" , "Red channel" );
AddParameter(ParameterType_Int , "mode.lum.red.ch" , "Red Channel" ); AddParameter(ParameterType_Int , "mode.lum.red.ch" , "Red channel" );
SetDefaultParameterInt("mode.lum.red.ch", 0 ); SetDefaultParameterInt("mode.lum.red.ch", 0 );
AddParameter(ParameterType_Float , "mode.lum.red.coef" , AddParameter(ParameterType_Float , "mode.lum.red.coef" ,
"Value for luminance computation" ); "Value for luminance computation for the red channel" );
SetDefaultParameterFloat("mode.lum.red.coef", 0.21 ); SetDefaultParameterFloat("mode.lum.red.coef", 0.21 );
AddParameter(ParameterType_Group , "mode.lum.green" , "Green Channel" ); AddParameter(ParameterType_Group , "mode.lum.green" , "Green channel" );
AddParameter(ParameterType_Int , "mode.lum.green.ch" , "Green Channel" ); AddParameter(ParameterType_Int , "mode.lum.green.ch" , "Green channel" );
SetDefaultParameterInt("mode.lum.green.ch", 1 ); SetDefaultParameterInt("mode.lum.green.ch", 1 );
AddParameter(ParameterType_Float , "mode.lum.green.coef" , AddParameter(ParameterType_Float , "mode.lum.green.coef" ,
"Value for luminance computation" ); "Value for luminance computation of the green channel" );
SetDefaultParameterFloat("mode.lum.green.coef", 0.71 ); SetDefaultParameterFloat("mode.lum.green.coef", 0.71 );
AddParameter(ParameterType_Group , "mode.lum.blue" , "Blue Channel" ); AddParameter(ParameterType_Group , "mode.lum.blue" , "Blue channel" );
AddParameter(ParameterType_Int , "mode.lum.blue.ch" , "Blue Channel" ); AddParameter(ParameterType_Int , "mode.lum.blue.ch" , "Blue channel" );
SetDefaultParameterInt("mode.lum.blue.ch", 2 ); SetDefaultParameterInt("mode.lum.blue.ch", 2 );
AddParameter(ParameterType_Float , "mode.lum.blue.coef" , AddParameter(ParameterType_Float , "mode.lum.blue.coef" ,
"Value for luminance computation" ); "Value for luminance computation of the blue channel" );
SetDefaultParameterFloat("mode.lum.blue.coef", 0.08 ); SetDefaultParameterFloat("mode.lum.blue.coef", 0.08 );
SetDefaultParameterInt( "spatial.local.w" , 256 ); SetDefaultParameterInt( "spatial.local.w" , 256 );
...@@ -289,8 +289,8 @@ private: ...@@ -289,8 +289,8 @@ private:
SetMinimumParameterIntValue("spatial.local.w", 1); SetMinimumParameterIntValue("spatial.local.w", 1);
SetExampleComment( "Local contrast enhancement by luminance" , 0 ); SetExampleComment( "Local contrast enhancement by luminance" , 0 );
SetDocExampleParameterValue( "in" , "couleurs.tif" ); SetDocExampleParameterValue( "in" , "colours.tif" );
SetDocExampleParameterValue( "out" , "equalizedcouleurs.tif float" ); SetDocExampleParameterValue( "out" , "equalizedcolors.tif float" );
SetDocExampleParameterValue( "bins" , "256" ); SetDocExampleParameterValue( "bins" , "256" );
SetDocExampleParameterValue( "spatial.local.w" , "500" ); SetDocExampleParameterValue( "spatial.local.w" , "500" );
SetDocExampleParameterValue( "spatial.local.h" , "500"); SetDocExampleParameterValue( "spatial.local.h" , "500");
......
Supports Markdown
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