<root>
  <key>LSMSSegmentation</key>
  <exec>otbcli_LSMSSegmentation</exec>
  <longname>Exact Large-Scale Mean-Shift segmentation, step 2</longname>
  <group>Segmentation</group>
  <description>Second step of the exact Large-Scale Mean-Shift segmentation workflow.</description>
  <parameter>
    <parameter_type source_parameter_type="ParameterType_InputImage">ParameterRaster</parameter_type>
    <key>in</key>
    <name>Filtered image</name>
    <description>The filtered image (cf. Adaptive MeanShift Smoothing application).</description>
    <optional>False</optional>
  </parameter>
  <parameter>
    <parameter_type source_parameter_type="ParameterType_InputImage">ParameterRaster</parameter_type>
    <key>inpos</key>
    <name>Spatial image</name>
    <description> The spatial image. Spatial input is the displacement map (output of the Adaptive MeanShift Smoothing application).</description>
    <optional>True</optional>
  </parameter>
  <parameter>
    <parameter_type source_parameter_type="ParameterType_OutputImage">OutputRaster</parameter_type>
    <key>out</key>
    <name>Output Image</name>
    <description>The output image. The output image is the segmentation of the filtered image. It is recommended to set the pixel type to uint32.</description>
    <hidden />
  </parameter>
  <parameter>
    <parameter_type source_parameter_type="ParameterType_Float">ParameterNumber</parameter_type>
    <key>ranger</key>
    <name>Range radius</name>
    <description>Range radius defining the radius (expressed in radiometry unit) in the multi-spectral space.</description>
    <minValue />
    <maxValue />
    <default>15</default>
  </parameter>
  <parameter>
    <parameter_type source_parameter_type="ParameterType_Float">ParameterNumber</parameter_type>
    <key>spatialr</key>
    <name>Spatial radius</name>
    <description>Spatial radius of the neighborhood.</description>
    <minValue />
    <maxValue />
    <default>5</default>
  </parameter>
  <parameter>
    <parameter_type source_parameter_type="ParameterType_Int">ParameterNumber</parameter_type>
    <key>minsize</key>
    <name>Minimum Region Size</name>
    <description>Minimum Region Size. If, after the segmentation, a region is of size lower than this criterion, the region is deleted.</description>
    <minValue />
    <maxValue />
    <default>0</default>
  </parameter>
  <parameter>
    <parameter_type source_parameter_type="ParameterType_Int">ParameterNumber</parameter_type>
    <key>tilesizex</key>
    <name>Size of tiles in pixel (X-axis)</name>
    <description>Size of tiles along the X-axis.</description>
    <minValue />
    <maxValue />
    <default>500</default>
  </parameter>
  <parameter>
    <parameter_type source_parameter_type="ParameterType_Int">ParameterNumber</parameter_type>
    <key>tilesizey</key>
    <name>Size of tiles in pixel (Y-axis)</name>
    <description>Size of tiles along the Y-axis.</description>
    <minValue />
    <maxValue />
    <default>500</default>
  </parameter>
  <parameter>
    <parameter_type source_parameter_type="ParameterType_Directory">ParameterFile</parameter_type>
    <key>tmpdir</key>
    <name>Directory where to write temporary files</name>
    <description>This applications need to write temporary files for each tile. This parameter allows choosing the path where to write those files. If disabled, the current path will be used.</description>
    <isFolder />
    <optional>True</optional>
  </parameter>
  <parameter>
    <parameter_type source_parameter_type="ParameterType_Empty">ParameterBoolean</parameter_type>
    <key>cleanup</key>
    <name>Temporary files cleaning</name>
    <description>If activated, the application will try to clean all temporary files it created</description>
    <default>True</default>
  </parameter>
</root>
