<root>
  <key>Convert</key>
  <exec>otbcli_Convert</exec>
  <longname>Image Conversion</longname>
  <group>Image Manipulation</group>
  <description>Convert an image to a different format, eventually rescaling the data and/or changing the pixel type.</description>
  <parameter>
    <parameter_type source_parameter_type="ParameterType_InputImage">ParameterRaster</parameter_type>
    <key>in</key>
    <name>Input image</name>
    <description>Input image</description>
    <optional>False</optional>
  </parameter>
  <parameter>
    <parameter_type source_parameter_type="ParameterType_Choice">ParameterSelection</parameter_type>
    <key>type</key>
    <name>Rescale type</name>
    <description>Transfer function for the rescaling</description>
    <options>
      <choices>
        <choice>none</choice>
        <choice>linear</choice>
        <choice>log2</choice>
      </choices>
    </options>
    <default>0</default>
  </parameter>
  <parameter>
    <parameter_type source_parameter_type="ParameterType_Float">ParameterNumber</parameter_type>
    <key>type.linear.gamma</key>
    <name>Gamma correction factor</name>
    <description>Gamma correction factor</description>
    <minValue />
    <maxValue />
    <default>1</default>
  </parameter>
  <parameter>
    <parameter_type source_parameter_type="ParameterType_InputImage">ParameterRaster</parameter_type>
    <key>mask</key>
    <name>Input mask</name>
    <description>The masked pixels won't be used to adapt the dynamic (the mask must have the same dimensions as the input image)</description>
    <optional>True</optional>
  </parameter>
  <parameter>
    <parameter_type source_parameter_type="ParameterType_Float">ParameterNumber</parameter_type>
    <key>hcp.high</key>
    <name>High Cut Quantile</name>
    <description>Quantiles to cut from histogram high values before computing min/max rescaling (in percent, 2 by default)</description>
    <minValue />
    <maxValue />
    <default>2</default>
  </parameter>
  <parameter>
    <parameter_type source_parameter_type="ParameterType_Float">ParameterNumber</parameter_type>
    <key>hcp.low</key>
    <name>Low Cut Quantile</name>
    <description>Quantiles to cut from histogram low values before computing min/max rescaling (in percent, 2 by default)</description>
    <minValue />
    <maxValue />
    <default>2</default>
  </parameter>
  <parameter>
    <parameter_type source_parameter_type="ParameterType_OutputImage">OutputRaster</parameter_type>
    <key>out</key>
    <name>Output Image</name>
    <description>Output image</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>
</root>
