<root>
  <key>ColorMapping-image</key>
  <exec>otbcli_ColorMapping</exec>
  <longname>ColorMapping (image)</longname>
  <group>Image Manipulation</group>
  <description>Maps an input label image to 8-bits RGB using look-up tables.</description>
  <parameter>
    <parameter_type source_parameter_type="ParameterType_InputImage">ParameterRaster</parameter_type>
    <key>in</key>
    <name>Input Image</name>
    <description>Input image filename</description>
    <optional>False</optional>
  </parameter>
  <parameter>
    <parameter_type source_parameter_type="ParameterType_OutputImage">OutputRaster</parameter_type>
    <key>out</key>
    <name>Output Image</name>
    <description>Output image filename</description>
    <hidden />
  </parameter>
  <parameter>
    <parameter_type source_parameter_type="ParameterType_RAM">ParameterNumber</parameter_type>
    <key>ram</key>
    <name>Available RAM (Mb)</name>
    <description>Available memory for processing (in MB)</description>
    <minValue />
    <maxValue />
    <default>128</default>
  </parameter>
  <parameter>
    <parameter_type source_parameter_type="ParameterType_Choice">ParameterSelection</parameter_type>
    <key>op</key>
    <name>Operation</name>
    <description>Selection of the operation to execute (default is : label to color).</description>
    <options>
      <choices>
        <choice>labeltocolor</choice>
        </choices>
    </options>
    <default>0</default>
  </parameter>
  <parameter>
    <parameter_type source_parameter_type="ParameterType_Choice">ParameterSelection</parameter_type>
    <key>method</key>
    <name>Color mapping method</name>
    <description>Selection of color mapping methods and their parameters.</description>
    <options>
      <choices>
        <choice>image</choice>
      </choices>
    </options>
    <default>0</default>
  </parameter>
  <parameter>
    <parameter_type source_parameter_type="ParameterType_InputImage">ParameterRaster</parameter_type>
    <key>method.image.in</key>
    <name>Support Image</name>
    <description>Support image filename. For each label, the LUT is calculated from the mean pixel value in the support image, over the corresponding labeled areas. First of all, the support image is normalized with extrema rejection</description>
    <optional>False</optional>
  </parameter>
  <parameter>
    <parameter_type source_parameter_type="ParameterType_Float">ParameterNumber</parameter_type>
    <key>method.image.nodatavalue</key>
    <name>NoData value</name>
    <description>NoData value for each channel of the support image, which will not be handled in the LUT estimation. If NOT checked, ALL the pixel values of the support image will be handled in the LUT estimation.</description>
    <minValue />
    <maxValue />
    <default>0</default>
  </parameter>
  <parameter>
    <parameter_type source_parameter_type="ParameterType_Int">ParameterNumber</parameter_type>
    <key>method.image.low</key>
    <name>lower quantile</name>
    <description>lower quantile for image normalization</description>
    <minValue />
    <maxValue />
    <default>2</default>
  </parameter>
  <parameter>
    <parameter_type source_parameter_type="ParameterType_Int">ParameterNumber</parameter_type>
    <key>method.image.up</key>
    <name>upper quantile</name>
    <description>upper quantile for image normalization</description>
    <minValue />
    <maxValue />
    <default>2</default>
  </parameter>
</root>
