| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,326 @@ | ||
| # -*- coding: utf-8 -*- | ||
|
|
||
| """ | ||
| *************************************************************************** | ||
| OTBUtils.py | ||
| --------------------- | ||
| Date : 11-12-13 | ||
| Copyright : (C) 2013 by CS Systemes d'information (CS SI) | ||
| Email : otb at c-s dot fr (CS SI) | ||
| Contributors : Julien Malik (CS SI) - creation of otbspecific | ||
| Oscar Picas (CS SI) - | ||
| Alexia Mondot (CS SI) - split otbspecific into 2 files | ||
| add functions | ||
| *************************************************************************** | ||
| * * | ||
| * This program is free software; you can redistribute it and/or modify * | ||
| * it under the terms of the GNU General Public License as published by * | ||
| * the Free Software Foundation; either version 2 of the License, or * | ||
| * (at your option) any later version. * | ||
| * * | ||
| *************************************************************************** | ||
| When an OTB algorithms is run, this file allows to adapt user parameter to fit the otbapplication. | ||
| Most of the following functions are like follows : | ||
| adaptNameOfTheOTBApplication(commands_list) | ||
| The command list is a list of all parameters of the given algorithm with all user values. | ||
| """ | ||
|
|
||
|
|
||
| __author__ = 'Julien Malik, Oscar Picas, Alexia Mondot' | ||
| __date__ = 'December 2013' | ||
| __copyright__ = '(C) 2013, CS Systemes d\'information (CS SI)' | ||
| # This will get replaced with a git SHA1 when you do a git archive | ||
| __revision__ = '$Format:%H$' | ||
| __version__ = "3.8" | ||
|
|
||
| import os | ||
|
|
||
| try: | ||
| import processing | ||
| except ImportError, e: | ||
| raise Exception("Processing must be installed and available in PYTHONPATH") | ||
|
|
||
| from processing.core.ProcessingLog import ProcessingLog | ||
| from processing.core.ProcessingConfig import ProcessingConfig | ||
|
|
||
| from processing.otb.OTBUtils import * | ||
|
|
||
|
|
||
|
|
||
| def adaptBinaryMorphologicalOperation(commands_list): | ||
| val = commands_list[commands_list.index("-filter") + 1] | ||
|
|
||
| def replace_dilate(param, value): | ||
| if ".dilate" in str(param): | ||
| return param.replace("dilate", value) | ||
| else: | ||
| return param | ||
|
|
||
| import functools | ||
| com_list = map(functools.partial(replace_dilate, value=val), commands_list) | ||
|
|
||
| val = com_list[com_list.index("-structype.ball.xradius") + 1] | ||
|
|
||
| pos = com_list.index("-structype.ball.xradius") + 2 | ||
|
|
||
| com_list.insert(pos, '-structype.ball.yradius') | ||
| com_list.insert(pos + 1, val) | ||
|
|
||
| return com_list | ||
|
|
||
|
|
||
| def adaptEdgeExtraction(commands_list): | ||
| """ | ||
| Add filter.touzi.yradius as the same value as filter.touzi.xradius | ||
| """ | ||
| val = commands_list[commands_list.index("-filter") + 1] | ||
| if val == 'touzi': | ||
| bval = commands_list[commands_list.index("-filter.touzi.xradius") + 1] | ||
| pos = commands_list.index("-filter.touzi.xradius") + 2 | ||
| commands_list.insert(pos, "-filter.touzi.yradius") | ||
| commands_list.insert(pos + 1, bval) | ||
| return commands_list | ||
|
|
||
|
|
||
| def adaptGrayScaleMorphologicalOperation(commands_list): | ||
| """ | ||
| Add structype.ball.yradius as the same value as structype.ball.xradius (as it is a ball) | ||
| """ | ||
| val = commands_list[commands_list.index("-structype.ball.xradius") + 1] | ||
| pos = commands_list.index("-structype.ball.xradius") + 2 | ||
| commands_list.insert(pos, "-structype.ball.yradius") | ||
| commands_list.insert(pos + 1, val) | ||
| return commands_list | ||
|
|
||
|
|
||
| def adaptSplitImage(commands_list): | ||
| """ | ||
| Ran by default, the extension of output file is .file. Replace it with ".tif" | ||
| If no extension given, put ".tif" at the end of the filename. | ||
| """ | ||
| commands_list2 = [] | ||
| for item in commands_list: | ||
| if ".file" in item: | ||
| item = item.replace(".file", ".tif") | ||
| if item == "-out": | ||
| index = commands_list.index(item) | ||
| if not "." in os.path.basename(commands_list[index + 1] ): | ||
| commands_list[index + 1] = commands_list[index + 1][:-1] + ".tif" + commands_list[index + 1][-1] | ||
| commands_list2.append(item) | ||
| return commands_list2 | ||
|
|
||
|
|
||
| def adaptLSMSVectorization(commands_list): | ||
| """ | ||
| Ran by default, the extension of output file is .file. Replace it with ".shp" | ||
| If no extension given, put ".shp" at the end of the filename. | ||
| """ | ||
| commands_list2 = [] | ||
| for item in commands_list: | ||
| if ".file" in item: | ||
| item = item.replace(".file", ".shp") | ||
| if item == "-out": | ||
| index = commands_list.index(item) | ||
| if not "." in os.path.basename(commands_list[index + 1] ): | ||
| commands_list[index + 1] = commands_list[index + 1][:-1] + ".shp" + commands_list[index + 1][-1] | ||
| commands_list2.append(item) | ||
|
|
||
| return commands_list2 | ||
|
|
||
| def adaptComputeImagesStatistics(commands_list): | ||
| """ | ||
| Ran by default, the extension of output file is .file. Replace it with ".xml" | ||
| If no extension given, put ".shp" at the end of the filename. | ||
| """ | ||
| commands_list2 = [] | ||
| for item in commands_list: | ||
| if ".file" in item: | ||
| item = item.replace(".file", ".xml") | ||
| commands_list2.append(item) | ||
| if item == "-out": | ||
| index = commands_list.index(item) | ||
| if not "." in os.path.basename(commands_list[index + 1] ): | ||
| commands_list[index + 1] = commands_list[index + 1][:-1] + ".xml" + commands_list[index + 1][-1] | ||
|
|
||
| return commands_list2 | ||
|
|
||
|
|
||
| def adaptKmzExport(commands_list): | ||
| """ | ||
| Ran by default, the extension of output file is .file. Replace it with ".kmz" | ||
| If no extension given, put ".kmz" at the end of the filename. | ||
| Check geoid file, srtm folder and given elevation and manage arguments. | ||
| """ | ||
| adaptGeoidSrtm(commands_list) | ||
| commands_list2 = [] | ||
| for item in commands_list: | ||
| if ".file" in item: | ||
| item = item.replace(".file", ".kmz") | ||
| if item == "-out": | ||
| index = commands_list.index(item) | ||
| if not "." in os.path.basename(commands_list[index + 1] ): | ||
| commands_list[index + 1] = commands_list[index + 1][:-1] + ".kmz" + commands_list[index + 1][-1] | ||
|
|
||
| commands_list2.append(item) | ||
| return commands_list2 | ||
|
|
||
|
|
||
| def adaptColorMapping(commands_list): | ||
| """ | ||
| The output of this algorithm must be in uint8. | ||
| """ | ||
| indexInput = commands_list.index("-out") | ||
| commands_list[indexInput+1] = commands_list[indexInput+1] + " uint8" | ||
| return commands_list | ||
|
|
||
|
|
||
|
|
||
| def adaptStereoFramework(commands_list): | ||
| """ | ||
| Remove parameter and user value instead of giving None. | ||
| Check geoid file, srtm folder and given elevation and manage arguments. | ||
| """ | ||
| commands_list2 = commands_list | ||
| adaptGeoidSrtm(commands_list2) | ||
| for item in commands_list: | ||
| if "None" in item: | ||
| index = commands_list2.index(item) | ||
| argumentToRemove = commands_list2[index-1] | ||
| commands_list2.remove(item) | ||
| commands_list2.remove(argumentToRemove) | ||
| #commands_list2.append(item) | ||
| return commands_list2 | ||
|
|
||
|
|
||
| def adaptComputeConfusionMatrix(commands_list): | ||
| """ | ||
| Ran by default, the extension of output file is .file. Replace it with ".csv" | ||
| If no extension given, put ".csv" at the end of the filename. | ||
| """ | ||
| commands_list2 = [] | ||
| for item in commands_list: | ||
| if ".file" in item: | ||
| item = item.replace(".file", ".csv") | ||
| if item == "-out": | ||
| index = commands_list.index(item) | ||
| if not "." in os.path.basename(commands_list[index + 1] ): | ||
| commands_list[index + 1] = commands_list[index + 1][:-1] + ".csv" + commands_list[index + 1][-1] | ||
|
|
||
| commands_list2.append(item) | ||
| return commands_list2 | ||
|
|
||
|
|
||
| def adaptRadiometricIndices(commands_list): | ||
| """ | ||
| Replace indice nickname by its corresponding entry in the following dictionnary : | ||
| indices = {"ndvi" : "Vegetation:NDVI", "tndvi" : "Vegetation:TNDVI", "rvi" : "Vegetation:RVI", "savi" : "Vegetation:SAVI", | ||
| "tsavi" : "Vegetation:TSAVI", "msavi" : "Vegetation:MSAVI", "msavi2" : "Vegetation:MSAVI2", "gemi" : "Vegetation:GEMI", | ||
| "ipvi" : "Vegetation:IPVI", | ||
| "ndwi" : "Water:NDWI", "ndwi2" : "Water:NDWI2", "mndwi" :"Water:MNDWI" , "ndpi" : "Water:NDPI", | ||
| "ndti" : "Water:NDTI", | ||
| "ri" : "Soil:RI", "ci" : "Soil:CI", "bi" : "Soil:BI", "bi2" : "Soil:BI2"} | ||
| """ | ||
| # "laindvilog" : , "lairefl" : , "laindviformo" : , | ||
| indices = {"ndvi" : "Vegetation:NDVI", "tndvi" : "Vegetation:TNDVI", "rvi" : "Vegetation:RVI", "savi" : "Vegetation:SAVI", | ||
| "tsavi" : "Vegetation:TSAVI", "msavi" : "Vegetation:MSAVI", "msavi2" : "Vegetation:MSAVI2", "gemi" : "Vegetation:GEMI", | ||
| "ipvi" : "Vegetation:IPVI", | ||
| "ndwi" : "Water:NDWI", "ndwi2" : "Water:NDWI2", "mndwi" :"Water:MNDWI" , "ndpi" : "Water:NDPI", | ||
| "ndti" : "Water:NDTI", | ||
| "ri" : "Soil:RI", "ci" : "Soil:CI", "bi" : "Soil:BI", "bi2" : "Soil:BI2"} | ||
| for item in commands_list: | ||
| if item in indices: | ||
| commands_list[commands_list.index(item)] = indices[item] | ||
| return commands_list | ||
|
|
||
|
|
||
| def adaptDisparityMapToElevationMap(commands_list): | ||
| """ | ||
| Check geoid file, srtm folder and given elevation and manage arguments. | ||
| """ | ||
| adaptGeoidSrtm(commands_list) | ||
| return commands_list | ||
|
|
||
|
|
||
| def adaptConnectedComponentSegmentation(commands_list): | ||
| """ | ||
| Remove parameter and user value instead of giving None. | ||
| """ | ||
| commands_list2 = commands_list | ||
| adaptGeoidSrtm(commands_list2) | ||
| for item in commands_list: | ||
| if "None" in item: | ||
| index = commands_list2.index(item) | ||
| argumentToRemove = commands_list2[index-1] | ||
| commands_list2.remove(item) | ||
| commands_list2.remove(argumentToRemove) | ||
| #commands_list2.append(item) | ||
| return commands_list2 | ||
|
|
||
|
|
||
| def adaptSuperimpose(commands_list): | ||
| """ | ||
| Check geoid file, srtm folder and given elevation and manage arguments. | ||
| """ | ||
| adaptGeoidSrtm(commands_list) | ||
| return commands_list | ||
|
|
||
|
|
||
| def adaptOrthoRectification(commands_list): | ||
| """ | ||
| Check geoid file, srtm folder and given elevation and manage arguments. | ||
| """ | ||
| adaptGeoidSrtm(commands_list) | ||
| return commands_list | ||
|
|
||
|
|
||
| def adaptExtractROI(commands_list): | ||
| """ | ||
| Check geoid file, srtm folder and given elevation and manage arguments. | ||
| """ | ||
| adaptGeoidSrtm(commands_list) | ||
| return commands_list | ||
|
|
||
|
|
||
| def adaptTrainImagesClassifier(commands_list): | ||
| """ | ||
| Check geoid file, srtm folder and given elevation and manage arguments. | ||
| """ | ||
| adaptGeoidSrtm(commands_list) | ||
| return commands_list | ||
|
|
||
| def adaptGeoidSrtm(commands_list): | ||
| """ | ||
| Check geoid file, srtm folder and given elevation and manage arguments. | ||
| """ | ||
| srtm, geoid = ckeckGeoidSrtmSettings() | ||
|
|
||
|
|
||
| if srtm : | ||
| if commands_list[0].endswith("ExtractROI") : | ||
| commands_list.append("-mode.fit.elev.dem") | ||
| commands_list.append(srtm) | ||
| else : | ||
| commands_list.append("-elev.dem") | ||
| commands_list.append(srtm) | ||
| if geoid : | ||
| if commands_list[0].endswith("ExtractROI") : | ||
| commands_list.append("-mode.fit.elev.geoid") | ||
| commands_list.append(geoid) | ||
| else : | ||
| commands_list.append("-elev.geoid") | ||
| commands_list.append(geoid) | ||
|
|
||
|
|
||
|
|
||
| def ckeckGeoidSrtmSettings(): | ||
| folder = ProcessingConfig.getSetting(OTBUtils.OTB_SRTM_FOLDER) | ||
| if folder == None: | ||
| folder ="" | ||
|
|
||
| filepath = ProcessingConfig.getSetting(OTBUtils.OTB_GEOID_FILE) | ||
| if filepath == None: | ||
| filepath ="" | ||
|
|
||
| return folder, filepath |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,41 @@ | ||
| <root> | ||
| <key>BandMath</key> | ||
| <exec>otbcli_BandMath</exec> | ||
| <longname>Band Math</longname> | ||
| <group>Miscellaneous</group> | ||
| <description>Perform a mathematical operation on monoband images</description> | ||
| <parameter> | ||
| <parameter_type source_parameter_type="ParameterType_InputImageList">ParameterMultipleInput</parameter_type> | ||
| <key>il</key> | ||
| <name>Input image list</name> | ||
| <description>Image list to perform computation on.</description> | ||
| <datatype /> | ||
| <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.</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_String">ParameterString</parameter_type> | ||
| <key>exp</key> | ||
| <name>Expression</name> | ||
| <description>The mathematical expression to apply. | ||
| Use im1b1 for the first band, im1b2 for the second one...</description> | ||
| <default /> | ||
| <multiline /> | ||
| <optional>False</optional> | ||
| </parameter> | ||
| </root> |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,72 @@ | ||
| <root> | ||
| <key>BinaryMorphologicalOperation-closing</key> | ||
| <exec>otbcli_BinaryMorphologicalOperation</exec> | ||
| <longname>BinaryMorphologicalOperation (closing)</longname> | ||
| <group>Feature Extraction</group> | ||
| <description>Performs morphological operations on an input image channel</description> | ||
| <parameter> | ||
| <parameter_type source_parameter_type="ParameterType_InputImage">ParameterRaster</parameter_type> | ||
| <key>in</key> | ||
| <name>Input Image</name> | ||
| <description>The input image to be filtered.</description> | ||
| <optional>False</optional> | ||
| </parameter> | ||
| <parameter> | ||
| <parameter_type source_parameter_type="ParameterType_OutputImage">OutputRaster</parameter_type> | ||
| <key>out</key> | ||
| <name>Feature Output Image</name> | ||
| <description>Output image containing the filtered output image.</description> | ||
| <hidden /> | ||
| </parameter> | ||
| <parameter> | ||
| <parameter_type source_parameter_type="ParameterType_Int">ParameterNumber</parameter_type> | ||
| <key>channel</key> | ||
| <name>Selected Channel</name> | ||
| <description>The selected channel index</description> | ||
| <minValue /> | ||
| <maxValue /> | ||
| <default>1</default> | ||
| </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>structype</key> | ||
| <name>Structuring Element Type</name> | ||
| <description>Choice of the structuring element type</description> | ||
| <options> | ||
| <choices> | ||
| <choice>ball</choice> | ||
| </choices> | ||
| </options> | ||
| <default>0</default> | ||
| </parameter> | ||
| <parameter> | ||
| <parameter_type source_parameter_type="ParameterType_Int">ParameterNumber</parameter_type> | ||
| <key>structype.ball.xradius</key> | ||
| <name>The Structuring Element Radius</name> | ||
| <description>The Structuring Element Radius</description> | ||
| <minValue /> | ||
| <maxValue /> | ||
| <default>5</default> | ||
| </parameter> | ||
| <parameter> | ||
| <parameter_type source_parameter_type="ParameterType_Choice">ParameterSelection</parameter_type> | ||
| <key>filter</key> | ||
| <name>Morphological Operation</name> | ||
| <description>Choice of the morphological operation</description> | ||
| <options> | ||
| <choices> | ||
| <choice>closing</choice> | ||
| </choices> | ||
| </options> | ||
| <default>0</default> | ||
| </parameter> | ||
| </root> |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,90 @@ | ||
| <root> | ||
| <key>BinaryMorphologicalOperation-dilate</key> | ||
| <exec>otbcli_BinaryMorphologicalOperation</exec> | ||
| <longname>BinaryMorphologicalOperation (dilate)</longname> | ||
| <group>Feature Extraction</group> | ||
| <description>Performs morphological operations on an input image channel</description> | ||
| <parameter> | ||
| <parameter_type source_parameter_type="ParameterType_InputImage">ParameterRaster</parameter_type> | ||
| <key>in</key> | ||
| <name>Input Image</name> | ||
| <description>The input image to be filtered.</description> | ||
| <optional>False</optional> | ||
| </parameter> | ||
| <parameter> | ||
| <parameter_type source_parameter_type="ParameterType_OutputImage">OutputRaster</parameter_type> | ||
| <key>out</key> | ||
| <name>Feature Output Image</name> | ||
| <description>Output image containing the filtered output image.</description> | ||
| <hidden /> | ||
| </parameter> | ||
| <parameter> | ||
| <parameter_type source_parameter_type="ParameterType_Int">ParameterNumber</parameter_type> | ||
| <key>channel</key> | ||
| <name>Selected Channel</name> | ||
| <description>The selected channel index</description> | ||
| <minValue /> | ||
| <maxValue /> | ||
| <default>1</default> | ||
| </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>structype</key> | ||
| <name>Structuring Element Type</name> | ||
| <description>Choice of the structuring element type</description> | ||
| <options> | ||
| <choices> | ||
| <choice>ball</choice> | ||
| </choices> | ||
| </options> | ||
| <default>0</default> | ||
| </parameter> | ||
| <parameter> | ||
| <parameter_type source_parameter_type="ParameterType_Int">ParameterNumber</parameter_type> | ||
| <key>structype.ball.xradius</key> | ||
| <name>The Structuring Element Radius</name> | ||
| <description>The Structuring Element Radius</description> | ||
| <minValue /> | ||
| <maxValue /> | ||
| <default>5</default> | ||
| </parameter> | ||
| <parameter> | ||
| <parameter_type source_parameter_type="ParameterType_Choice">ParameterSelection</parameter_type> | ||
| <key>filter</key> | ||
| <name>Morphological Operation</name> | ||
| <description>Choice of the morphological operation</description> | ||
| <options> | ||
| <choices> | ||
| <choice>dilate</choice> | ||
| </choices> | ||
| </options> | ||
| <default>0</default> | ||
| </parameter> | ||
| <parameter> | ||
| <parameter_type source_parameter_type="ParameterType_Float">ParameterNumber</parameter_type> | ||
| <key>filter.dilate.foreval</key> | ||
| <name>Foreground Value</name> | ||
| <description>The Foreground Value</description> | ||
| <minValue /> | ||
| <maxValue /> | ||
| <default>1</default> | ||
| </parameter> | ||
| <parameter> | ||
| <parameter_type source_parameter_type="ParameterType_Float">ParameterNumber</parameter_type> | ||
| <key>filter.dilate.backval</key> | ||
| <name>Background Value</name> | ||
| <description>The Background Value</description> | ||
| <minValue /> | ||
| <maxValue /> | ||
| <default>0</default> | ||
| </parameter> | ||
| </root> |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,72 @@ | ||
| <root> | ||
| <key>BinaryMorphologicalOperation-erode</key> | ||
| <exec>otbcli_BinaryMorphologicalOperation</exec> | ||
| <longname>BinaryMorphologicalOperation (erode)</longname> | ||
| <group>Feature Extraction</group> | ||
| <description>Performs morphological operations on an input image channel</description> | ||
| <parameter> | ||
| <parameter_type source_parameter_type="ParameterType_InputImage">ParameterRaster</parameter_type> | ||
| <key>in</key> | ||
| <name>Input Image</name> | ||
| <description>The input image to be filtered.</description> | ||
| <optional>False</optional> | ||
| </parameter> | ||
| <parameter> | ||
| <parameter_type source_parameter_type="ParameterType_OutputImage">OutputRaster</parameter_type> | ||
| <key>out</key> | ||
| <name>Feature Output Image</name> | ||
| <description>Output image containing the filtered output image.</description> | ||
| <hidden /> | ||
| </parameter> | ||
| <parameter> | ||
| <parameter_type source_parameter_type="ParameterType_Int">ParameterNumber</parameter_type> | ||
| <key>channel</key> | ||
| <name>Selected Channel</name> | ||
| <description>The selected channel index</description> | ||
| <minValue /> | ||
| <maxValue /> | ||
| <default>1</default> | ||
| </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>structype</key> | ||
| <name>Structuring Element Type</name> | ||
| <description>Choice of the structuring element type</description> | ||
| <options> | ||
| <choices> | ||
| <choice>ball</choice> | ||
| </choices> | ||
| </options> | ||
| <default>0</default> | ||
| </parameter> | ||
| <parameter> | ||
| <parameter_type source_parameter_type="ParameterType_Int">ParameterNumber</parameter_type> | ||
| <key>structype.ball.xradius</key> | ||
| <name>The Structuring Element Radius</name> | ||
| <description>The Structuring Element Radius</description> | ||
| <minValue /> | ||
| <maxValue /> | ||
| <default>5</default> | ||
| </parameter> | ||
| <parameter> | ||
| <parameter_type source_parameter_type="ParameterType_Choice">ParameterSelection</parameter_type> | ||
| <key>filter</key> | ||
| <name>Morphological Operation</name> | ||
| <description>Choice of the morphological operation</description> | ||
| <options> | ||
| <choices> | ||
| <choice>erode</choice> | ||
| </choices> | ||
| </options> | ||
| <default>0</default> | ||
| </parameter> | ||
| </root> |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,72 @@ | ||
| <root> | ||
| <key>BinaryMorphologicalOperation-opening</key> | ||
| <exec>otbcli_BinaryMorphologicalOperation</exec> | ||
| <longname>BinaryMorphologicalOperation (opening)</longname> | ||
| <group>Feature Extraction</group> | ||
| <description>Performs morphological operations on an input image channel</description> | ||
| <parameter> | ||
| <parameter_type source_parameter_type="ParameterType_InputImage">ParameterRaster</parameter_type> | ||
| <key>in</key> | ||
| <name>Input Image</name> | ||
| <description>The input image to be filtered.</description> | ||
| <optional>False</optional> | ||
| </parameter> | ||
| <parameter> | ||
| <parameter_type source_parameter_type="ParameterType_OutputImage">OutputRaster</parameter_type> | ||
| <key>out</key> | ||
| <name>Feature Output Image</name> | ||
| <description>Output image containing the filtered output image.</description> | ||
| <hidden /> | ||
| </parameter> | ||
| <parameter> | ||
| <parameter_type source_parameter_type="ParameterType_Int">ParameterNumber</parameter_type> | ||
| <key>channel</key> | ||
| <name>Selected Channel</name> | ||
| <description>The selected channel index</description> | ||
| <minValue /> | ||
| <maxValue /> | ||
| <default>1</default> | ||
| </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>structype</key> | ||
| <name>Structuring Element Type</name> | ||
| <description>Choice of the structuring element type</description> | ||
| <options> | ||
| <choices> | ||
| <choice>ball</choice> | ||
| </choices> | ||
| </options> | ||
| <default>0</default> | ||
| </parameter> | ||
| <parameter> | ||
| <parameter_type source_parameter_type="ParameterType_Int">ParameterNumber</parameter_type> | ||
| <key>structype.ball.xradius</key> | ||
| <name>The Structuring Element Radius</name> | ||
| <description>The Structuring Element Radius</description> | ||
| <minValue /> | ||
| <maxValue /> | ||
| <default>5</default> | ||
| </parameter> | ||
| <parameter> | ||
| <parameter_type source_parameter_type="ParameterType_Choice">ParameterSelection</parameter_type> | ||
| <key>filter</key> | ||
| <name>Morphological Operation</name> | ||
| <description>Choice of the morphological operation</description> | ||
| <options> | ||
| <choices> | ||
| <choice>opening</choice> | ||
| </choices> | ||
| </options> | ||
| <default>0</default> | ||
| </parameter> | ||
| </root> |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,64 @@ | ||
| <root> | ||
| <key>ClassificationMapRegularization</key> | ||
| <exec>otbcli_ClassificationMapRegularization</exec> | ||
| <longname>Classification Map Regularization</longname> | ||
| <group>Learning</group> | ||
| <description>Filters the input labeled image using Majority Voting in a ball shaped neighbordhood.</description> | ||
| <parameter> | ||
| <parameter_type source_parameter_type="ParameterType_InputImage">ParameterRaster</parameter_type> | ||
| <key>io.in</key> | ||
| <name>Input classification image</name> | ||
| <description>The input labeled image to regularize.</description> | ||
| <optional>False</optional> | ||
| </parameter> | ||
| <parameter> | ||
| <parameter_type source_parameter_type="ParameterType_OutputImage">OutputRaster</parameter_type> | ||
| <key>io.out</key> | ||
| <name>Output regularized image</name> | ||
| <description>The output regularized labeled image.</description> | ||
| <hidden /> | ||
| </parameter> | ||
| <parameter> | ||
| <parameter_type source_parameter_type="ParameterType_Int">ParameterNumber</parameter_type> | ||
| <key>ip.radius</key> | ||
| <name>Structuring element radius (in pixels)</name> | ||
| <description>The radius of the ball shaped structuring element (expressed in pixels). By default, 'ip.radius = 1 pixel'.</description> | ||
| <minValue /> | ||
| <maxValue /> | ||
| <default>1</default> | ||
| </parameter> | ||
| <parameter> | ||
| <parameter_type source_parameter_type="ParameterType_Empty">ParameterBoolean</parameter_type> | ||
| <key>ip.suvbool</key> | ||
| <name>Multiple majority: Undecided(X)/Original</name> | ||
| <description>Pixels with more than 1 majority class are marked as Undecided if this parameter is checked (true), or keep their Original labels otherwise (false). Please note that the Undecided value must be different from existing labels in the input labeled image. By default, 'ip.suvbool = false'.</description> | ||
| <default>True</default> | ||
| </parameter> | ||
| <parameter> | ||
| <parameter_type source_parameter_type="ParameterType_Int">ParameterNumber</parameter_type> | ||
| <key>ip.nodatalabel</key> | ||
| <name>Label for the NoData class</name> | ||
| <description>Label for the NoData class. Such input pixels keep their NoData label in the output image. By default, 'ip.nodatalabel = 0'.</description> | ||
| <minValue /> | ||
| <maxValue /> | ||
| <default>0</default> | ||
| </parameter> | ||
| <parameter> | ||
| <parameter_type source_parameter_type="ParameterType_Int">ParameterNumber</parameter_type> | ||
| <key>ip.undecidedlabel</key> | ||
| <name>Label for the Undecided class</name> | ||
| <description>Label for the Undecided class. By default, 'ip.undecidedlabel = 0'.</description> | ||
| <minValue /> | ||
| <maxValue /> | ||
| <default>0</default> | ||
| </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> |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,98 @@ | ||
| <root> | ||
| <key>ColorMapping-continuous</key> | ||
| <exec>otbcli_ColorMapping</exec> | ||
| <longname>ColorMapping (continuous)</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>continuous</choice> | ||
| </choices> | ||
| </options> | ||
| <default>0</default> | ||
| </parameter> | ||
| <parameter> | ||
| <parameter_type source_parameter_type="ParameterType_Choice">ParameterSelection</parameter_type> | ||
| <key>method.continuous.lut</key> | ||
| <name>Look-up tables</name> | ||
| <description>Available look-up tables.</description> | ||
| <options> | ||
| <choices> | ||
| <choice>red</choice> | ||
| <choice>green</choice> | ||
| <choice>blue</choice> | ||
| <choice>grey</choice> | ||
| <choice>hot</choice> | ||
| <choice>cool</choice> | ||
| <choice>spring</choice> | ||
| <choice>summer</choice> | ||
| <choice>autumn</choice> | ||
| <choice>winter</choice> | ||
| <choice>copper</choice> | ||
| <choice>jet</choice> | ||
| <choice>hsv</choice> | ||
| <choice>overunder</choice> | ||
| <choice>relief</choice> | ||
| </choices> | ||
| </options> | ||
| <default>0</default> | ||
| </parameter> | ||
| <parameter> | ||
| <parameter_type source_parameter_type="ParameterType_Float">ParameterNumber</parameter_type> | ||
| <key>method.continuous.min</key> | ||
| <name>Mapping range lower value</name> | ||
| <description>Set the lower input value of the mapping range.</description> | ||
| <minValue /> | ||
| <maxValue /> | ||
| <default>0</default> | ||
| </parameter> | ||
| <parameter> | ||
| <parameter_type source_parameter_type="ParameterType_Float">ParameterNumber</parameter_type> | ||
| <key>method.continuous.max</key> | ||
| <name>Mapping range higher value</name> | ||
| <description>Set the higher input value of the mapping range.</description> | ||
| <minValue /> | ||
| <maxValue /> | ||
| <default>255</default> | ||
| </parameter> | ||
| </root> |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,65 @@ | ||
| <root> | ||
| <key>ColorMapping-custom</key> | ||
| <exec>otbcli_ColorMapping</exec> | ||
| <longname>ColorMapping (custom)</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>custom</choice> | ||
| </choices> | ||
| </options> | ||
| <default>0</default> | ||
| </parameter> | ||
| <parameter> | ||
| <parameter_type source_parameter_type="ParameterType_InputFilename">ParameterFile</parameter_type> | ||
| <key>method.custom.lut</key> | ||
| <name>Look-up table file</name> | ||
| <description>An ASCII file containing the look-up table | ||
| with one color per line | ||
| (for instance the line '1 255 0 0' means that all pixels with label 1 will be replaced by RGB color 255 0 0) | ||
| Lines beginning with a # are ignored</description> | ||
| <isFolder /> | ||
| <optional>False</optional> | ||
| </parameter> | ||
| </root> |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,88 @@ | ||
| <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> |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,63 @@ | ||
| <root> | ||
| <key>ColorMapping-optimal</key> | ||
| <exec>otbcli_ColorMapping</exec> | ||
| <longname>ColorMapping (optimal)</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>optimal</choice> | ||
| </choices> | ||
| </options> | ||
| <default>0</default> | ||
| </parameter> | ||
| <parameter> | ||
| <parameter_type source_parameter_type="ParameterType_Int">ParameterNumber</parameter_type> | ||
| <key>method.optimal.background</key> | ||
| <name>Background label</name> | ||
| <description>Value of the background label</description> | ||
| <minValue /> | ||
| <maxValue /> | ||
| <default>0</default> | ||
| </parameter> | ||
| </root> |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,75 @@ | ||
| <root> | ||
| <key>CompareImages</key> | ||
| <exec>otbcli_CompareImages</exec> | ||
| <longname>Images comparaison</longname> | ||
| <group>Miscellaneous</group> | ||
| <description>Estimator between 2 images.</description> | ||
| <parameter> | ||
| <parameter_type source_parameter_type="ParameterType_InputImage">ParameterRaster</parameter_type> | ||
| <key>ref.in</key> | ||
| <name>Reference image</name> | ||
| <description>Image used as reference in the comparison</description> | ||
| <optional>False</optional> | ||
| </parameter> | ||
| <parameter> | ||
| <parameter_type source_parameter_type="ParameterType_Int">ParameterNumber</parameter_type> | ||
| <key>ref.channel</key> | ||
| <name>Reference image channel</name> | ||
| <description>Used channel for the reference image</description> | ||
| <minValue /> | ||
| <maxValue /> | ||
| <default>1</default> | ||
| </parameter> | ||
| <parameter> | ||
| <parameter_type source_parameter_type="ParameterType_InputImage">ParameterRaster</parameter_type> | ||
| <key>meas.in</key> | ||
| <name>Measured image</name> | ||
| <description>Image used as measured in the comparison</description> | ||
| <optional>False</optional> | ||
| </parameter> | ||
| <parameter> | ||
| <parameter_type source_parameter_type="ParameterType_Int">ParameterNumber</parameter_type> | ||
| <key>meas.channel</key> | ||
| <name>Measured image channel</name> | ||
| <description>Used channel for the measured image</description> | ||
| <minValue /> | ||
| <maxValue /> | ||
| <default>1</default> | ||
| </parameter> | ||
| <parameter> | ||
| <parameter_type source_parameter_type="ParameterType_Int">ParameterNumber</parameter_type> | ||
| <key>roi.startx</key> | ||
| <name>Start X</name> | ||
| <description>ROI start x position.</description> | ||
| <minValue /> | ||
| <maxValue /> | ||
| <default>0</default> | ||
| </parameter> | ||
| <parameter> | ||
| <parameter_type source_parameter_type="ParameterType_Int">ParameterNumber</parameter_type> | ||
| <key>roi.starty</key> | ||
| <name>Start Y</name> | ||
| <description>ROI start y position.</description> | ||
| <minValue /> | ||
| <maxValue /> | ||
| <default>0</default> | ||
| </parameter> | ||
| <parameter> | ||
| <parameter_type source_parameter_type="ParameterType_Int">ParameterNumber</parameter_type> | ||
| <key>roi.sizex</key> | ||
| <name>Size X</name> | ||
| <description>Size along x in pixels.</description> | ||
| <minValue /> | ||
| <maxValue /> | ||
| <default>0</default> | ||
| </parameter> | ||
| <parameter> | ||
| <parameter_type source_parameter_type="ParameterType_Int">ParameterNumber</parameter_type> | ||
| <key>roi.sizey</key> | ||
| <name>Size Y</name> | ||
| <description>Size along y in pixels.</description> | ||
| <minValue /> | ||
| <maxValue /> | ||
| <default>0</default> | ||
| </parameter> | ||
| </root> |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,58 @@ | ||
| <root> | ||
| <key>ComputeConfusionMatrix-raster</key> | ||
| <exec>otbcli_ComputeConfusionMatrix</exec> | ||
| <longname>ComputeConfusionMatrix (raster)</longname> | ||
| <group>Learning</group> | ||
| <description>Computes the confusion matrix of a classification</description> | ||
| <parameter> | ||
| <parameter_type source_parameter_type="ParameterType_InputImage">ParameterRaster</parameter_type> | ||
| <key>in</key> | ||
| <name>Input Image</name> | ||
| <description>The input classification image.</description> | ||
| <optional>False</optional> | ||
| </parameter> | ||
| <parameter> | ||
| <parameter_type source_parameter_type="ParameterType_OutputFilename">OutputFile</parameter_type> | ||
| <key>out</key> | ||
| <name>Matrix output</name> | ||
| <description>Filename to store the output matrix (csv format)</description> | ||
| <hidden /> | ||
| </parameter> | ||
| <parameter> | ||
| <parameter_type source_parameter_type="ParameterType_Choice">ParameterSelection</parameter_type> | ||
| <key>ref</key> | ||
| <name>Ground truth</name> | ||
| <description>Choice of ground truth format</description> | ||
| <options> | ||
| <choices> | ||
| <choice>raster</choice> | ||
| </choices> | ||
| </options> | ||
| <default>0</default> | ||
| </parameter> | ||
| <parameter> | ||
| <parameter_type source_parameter_type="ParameterType_InputImage">ParameterRaster</parameter_type> | ||
| <key>ref.raster.in</key> | ||
| <name>Input reference image</name> | ||
| <description>Input image containing the ground truth labels</description> | ||
| <optional>False</optional> | ||
| </parameter> | ||
| <parameter> | ||
| <parameter_type source_parameter_type="ParameterType_Int">ParameterNumber</parameter_type> | ||
| <key>nodatalabel</key> | ||
| <name>Value for nodata pixels</name> | ||
| <description>Label for the NoData class. Such input pixels will be discarded from the ground truth and from the input classification map. By default, 'nodatalabel = 0'.</description> | ||
| <minValue /> | ||
| <maxValue /> | ||
| <default>0</default> | ||
| </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> |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,68 @@ | ||
| <root> | ||
| <key>ComputeConfusionMatrix-vector</key> | ||
| <exec>otbcli_ComputeConfusionMatrix</exec> | ||
| <longname>ComputeConfusionMatrix (vector)</longname> | ||
| <group>Learning</group> | ||
| <description>Computes the confusion matrix of a classification</description> | ||
| <parameter> | ||
| <parameter_type source_parameter_type="ParameterType_InputImage">ParameterRaster</parameter_type> | ||
| <key>in</key> | ||
| <name>Input Image</name> | ||
| <description>The input classification image.</description> | ||
| <optional>False</optional> | ||
| </parameter> | ||
| <parameter> | ||
| <parameter_type source_parameter_type="ParameterType_OutputFilename">OutputFile</parameter_type> | ||
| <key>out</key> | ||
| <name>Matrix output</name> | ||
| <description>Filename to store the output matrix (csv format)</description> | ||
| <hidden /> | ||
| </parameter> | ||
| <parameter> | ||
| <parameter_type source_parameter_type="ParameterType_Choice">ParameterSelection</parameter_type> | ||
| <key>ref</key> | ||
| <name>Ground truth</name> | ||
| <description>Choice of ground truth format</description> | ||
| <options> | ||
| <choices> | ||
| <choice>vector</choice> | ||
| </choices> | ||
| </options> | ||
| <default>0</default> | ||
| </parameter> | ||
| <parameter> | ||
| <parameter_type source_parameter_type="ParameterType_InputFilename">ParameterFile</parameter_type> | ||
| <key>ref.vector.in</key> | ||
| <name>Input reference vector data</name> | ||
| <description>Input vector data of the ground truth</description> | ||
| <isFolder /> | ||
| <optional>False</optional> | ||
| </parameter> | ||
| <parameter> | ||
| <parameter_type source_parameter_type="ParameterType_String">ParameterString</parameter_type> | ||
| <key>ref.vector.field</key> | ||
| <name>Field name</name> | ||
| <description>Field name containing the label values</description> | ||
| <default>Class</default> | ||
| <multiline /> | ||
| <optional>True</optional> | ||
| </parameter> | ||
| <parameter> | ||
| <parameter_type source_parameter_type="ParameterType_Int">ParameterNumber</parameter_type> | ||
| <key>nodatalabel</key> | ||
| <name>Value for nodata pixels</name> | ||
| <description>Label for the NoData class. Such input pixels will be discarded from the ground truth and from the input classification map. By default, 'nodatalabel = 0'.</description> | ||
| <minValue /> | ||
| <maxValue /> | ||
| <default>0</default> | ||
| </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> |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,31 @@ | ||
| <root> | ||
| <key>ComputeImagesStatistics</key> | ||
| <exec>otbcli_ComputeImagesStatistics</exec> | ||
| <longname>Compute Images second order statistics</longname> | ||
| <group>Learning</group> | ||
| <description>Computes global mean and standard deviation for each band from a set of images and optionally saves the results in an XML file.</description> | ||
| <parameter> | ||
| <parameter_type source_parameter_type="ParameterType_InputImageList">ParameterMultipleInput</parameter_type> | ||
| <key>il</key> | ||
| <name>Input images</name> | ||
| <description>List of input images filenames.</description> | ||
| <datatype /> | ||
| <optional>False</optional> | ||
| </parameter> | ||
| <parameter> | ||
| <parameter_type source_parameter_type="ParameterType_Float">ParameterNumber</parameter_type> | ||
| <key>bv</key> | ||
| <name>Background Value</name> | ||
| <description>Background value to ignore in statistics computation.</description> | ||
| <minValue /> | ||
| <maxValue /> | ||
| <default>0.0</default> | ||
| </parameter> | ||
| <parameter> | ||
| <parameter_type source_parameter_type="ParameterType_OutputFilename">OutputFile</parameter_type> | ||
| <key>out</key> | ||
| <name>Output XML file</name> | ||
| <description>XML filename where the statistics are saved for future reuse.</description> | ||
| <hidden /> | ||
| </parameter> | ||
| </root> |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,49 @@ | ||
| <root> | ||
| <key>ComputeModulusAndPhase-one-OneEntry</key> | ||
| <exec>otbcli_ComputeModulusAndPhase</exec> | ||
| <longname>ComputeModulusAndPhase-one (OneEntry)</longname> | ||
| <group>Miscellaneous</group> | ||
| <description>This application computes the modulus and the phase of a complex SAR data.</description> | ||
| <parameter> | ||
| <parameter_type source_parameter_type="ParameterType_Choice">ParameterSelection</parameter_type> | ||
| <key>nbinput</key> | ||
| <name>Number Of inputs</name> | ||
| <description>Choice about the number of input files used to store the real and imaginary part of the SAR image</description> | ||
| <options> | ||
| <choices> | ||
| <choice>one</choice> | ||
| </choices> | ||
| </options> | ||
| <default>0</default> | ||
| </parameter> | ||
| <parameter> | ||
| <parameter_type source_parameter_type="ParameterType_ComplexInputImage">ParameterRaster</parameter_type> | ||
| <key>nbinput.one.in</key> | ||
| <name>Input image</name> | ||
| <description>Image file with SAR data.</description> | ||
| <optional>False</optional> | ||
| </parameter> | ||
| <parameter> | ||
| <parameter_type source_parameter_type="ParameterType_OutputImage">OutputRaster</parameter_type> | ||
| <key>mod</key> | ||
| <name>Modulus</name> | ||
| <description>Modulus of the input: sqrt(real*real + imag*imag).</description> | ||
| <hidden /> | ||
| </parameter> | ||
| <parameter> | ||
| <parameter_type source_parameter_type="ParameterType_OutputImage">OutputRaster</parameter_type> | ||
| <key>pha</key> | ||
| <name>Phase</name> | ||
| <description>Phase of the input: atan2(imag, real).</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> |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,56 @@ | ||
| <root> | ||
| <key>ComputeModulusAndPhase-two-TwoEntries</key> | ||
| <exec>otbcli_ComputeModulusAndPhase</exec> | ||
| <longname>ComputeModulusAndPhase-two (TwoEntries)</longname> | ||
| <group>Miscellaneous</group> | ||
| <description>This application computes the modulus and the phase of a complex SAR data.</description> | ||
| <parameter> | ||
| <parameter_type source_parameter_type="ParameterType_Choice">ParameterSelection</parameter_type> | ||
| <key>nbinput</key> | ||
| <name>Number Of inputs</name> | ||
| <description>Choice about the number of input files used to store the real and imaginary part of the SAR image</description> | ||
| <options> | ||
| <choices> | ||
| <choice>two</choice> | ||
| </choices> | ||
| </options> | ||
| <default>0</default> | ||
| </parameter> | ||
| <parameter> | ||
| <parameter_type source_parameter_type="ParameterType_InputImage">ParameterRaster</parameter_type> | ||
| <key>nbinput.two.re</key> | ||
| <name>Real part input</name> | ||
| <description>Image file with real part of the SAR data.</description> | ||
| <optional>False</optional> | ||
| </parameter> | ||
| <parameter> | ||
| <parameter_type source_parameter_type="ParameterType_InputImage">ParameterRaster</parameter_type> | ||
| <key>nbinput.two.im</key> | ||
| <name>Imaginary part input</name> | ||
| <description>Image file with imaginary part of the SAR data.</description> | ||
| <optional>False</optional> | ||
| </parameter> | ||
| <parameter> | ||
| <parameter_type source_parameter_type="ParameterType_OutputImage">OutputRaster</parameter_type> | ||
| <key>mod</key> | ||
| <name>Modulus</name> | ||
| <description>Modulus of the input: sqrt(real*real + imag*imag).</description> | ||
| <hidden /> | ||
| </parameter> | ||
| <parameter> | ||
| <parameter_type source_parameter_type="ParameterType_OutputImage">OutputRaster</parameter_type> | ||
| <key>pha</key> | ||
| <name>Phase</name> | ||
| <description>Phase of the input: atan2(imag, real).</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> |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,31 @@ | ||
| <root> | ||
| <key>ConcatenateImages</key> | ||
| <exec>otbcli_ConcatenateImages</exec> | ||
| <longname>Images Concatenation</longname> | ||
| <group>Image Manipulation</group> | ||
| <description>Concatenate a list of images of the same size into a single multi-channel one.</description> | ||
| <parameter> | ||
| <parameter_type source_parameter_type="ParameterType_InputImageList">ParameterMultipleInput</parameter_type> | ||
| <key>il</key> | ||
| <name>Input images list</name> | ||
| <description>The list of images to concatenate</description> | ||
| <datatype /> | ||
| <optional>False</optional> | ||
| </parameter> | ||
| <parameter> | ||
| <parameter_type source_parameter_type="ParameterType_OutputImage">OutputRaster</parameter_type> | ||
| <key>out</key> | ||
| <name>Output Image</name> | ||
| <description>The concatenated 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> |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,22 @@ | ||
| <root> | ||
| <key>ConcatenateVectorData</key> | ||
| <exec>otbcli_ConcatenateVectorData</exec> | ||
| <longname>Concatenate</longname> | ||
| <group>Vector Data Manipulation</group> | ||
| <description>Concatenate VectorDatas</description> | ||
| <parameter> | ||
| <parameter_type source_parameter_type="ParameterType_InputVectorDataList">ParameterMultipleInput</parameter_type> | ||
| <key>vd</key> | ||
| <name>Input VectorDatas to concatenate</name> | ||
| <description>VectorData files to be concatenated in an unique VectorData</description> | ||
| <datatype /> | ||
| <optional>False</optional> | ||
| </parameter> | ||
| <parameter> | ||
| <parameter_type source_parameter_type="ParameterType_OutputVectorData">OutputVector</parameter_type> | ||
| <key>out</key> | ||
| <name>Concatenated VectorData</name> | ||
| <description>Output conctenated VectorData</description> | ||
| <hidden /> | ||
| </parameter> | ||
| </root> |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,66 @@ | ||
| <root> | ||
| <key>ConnectedComponentSegmentation</key> | ||
| <exec>otbcli_ConnectedComponentSegmentation</exec> | ||
| <longname>Connected Component Segmentation</longname> | ||
| <group>Segmentation</group> | ||
| <description>Connected component segmentation and object based image filtering of the input image according to user-defined criterions.</description> | ||
| <parameter> | ||
| <parameter_type source_parameter_type="ParameterType_InputImage">ParameterRaster</parameter_type> | ||
| <key>in</key> | ||
| <name>Input Image</name> | ||
| <description>The image to segment.</description> | ||
| <optional>False</optional> | ||
| </parameter> | ||
| <parameter> | ||
| <parameter_type source_parameter_type="ParameterType_OutputVectorData">OutputVector</parameter_type> | ||
| <key>out</key> | ||
| <name>Output Shape</name> | ||
| <description>The segmentation shape.</description> | ||
| <hidden /> | ||
| </parameter> | ||
| <parameter> | ||
| <parameter_type source_parameter_type="ParameterType_String">ParameterString</parameter_type> | ||
| <key>mask</key> | ||
| <name>Mask expression</name> | ||
| <description>Mask mathematical expression (only if support image is given)</description> | ||
| <default /> | ||
| <multiline /> | ||
| <optional>True</optional> | ||
| </parameter> | ||
| <parameter> | ||
| <parameter_type source_parameter_type="ParameterType_String">ParameterString</parameter_type> | ||
| <key>expr</key> | ||
| <name>Connected Component Expression</name> | ||
| <description>Formula used for connected component segmentation</description> | ||
| <default /> | ||
| <multiline /> | ||
| <optional>False</optional> | ||
| </parameter> | ||
| <parameter> | ||
| <parameter_type source_parameter_type="ParameterType_Int">ParameterNumber</parameter_type> | ||
| <key>minsize</key> | ||
| <name>Minimum Object Size</name> | ||
| <description>Min object size (area in pixel)</description> | ||
| <minValue /> | ||
| <maxValue /> | ||
| <default>2</default> | ||
| </parameter> | ||
| <parameter> | ||
| <parameter_type source_parameter_type="ParameterType_String">ParameterString</parameter_type> | ||
| <key>obia</key> | ||
| <name>OBIA Expression</name> | ||
| <description>OBIA mathematical expression</description> | ||
| <default /> | ||
| <multiline /> | ||
| <optional>True</optional> | ||
| </parameter> | ||
| <parameter> | ||
| <parameter_type source_parameter_type="ParameterType_Float">ParameterNumber</parameter_type> | ||
| <key>elev.default</key> | ||
| <name>Default elevation</name> | ||
| <description>This parameter allows to set the default height above ellipsoid when there is no DEM available, no coverage for some points or pixels with no_data in the DEM tiles, and no geoid file has been set. This is also used by some application as an average elevation value.</description> | ||
| <minValue /> | ||
| <maxValue /> | ||
| <default>0</default> | ||
| </parameter> | ||
| </root> |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,81 @@ | ||
| <root> | ||
| <key>DimensionalityReduction-ica</key> | ||
| <exec>otbcli_DimensionalityReduction</exec> | ||
| <longname>DimensionalityReduction (ica)</longname> | ||
| <group>Image Filtering</group> | ||
| <description>Perform Dimension reduction of the input image.</description> | ||
| <parameter> | ||
| <parameter_type source_parameter_type="ParameterType_InputImage">ParameterRaster</parameter_type> | ||
| <key>in</key> | ||
| <name>Input Image</name> | ||
| <description>The input image to apply dimensionality reduction.</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. Components are ordered by decreasing eigenvalues.</description> | ||
| <hidden /> | ||
| </parameter> | ||
| <parameter> | ||
| <parameter_type source_parameter_type="ParameterType_OutputImage">OutputRaster</parameter_type> | ||
| <key>outinv</key> | ||
| <name> Inverse Output Image</name> | ||
| <description>reconstruct output image.</description> | ||
| <hidden /> | ||
| </parameter> | ||
| <parameter> | ||
| <parameter_type source_parameter_type="ParameterType_Choice">ParameterSelection</parameter_type> | ||
| <key>method</key> | ||
| <name>Algorithm</name> | ||
| <description>Selection of the reduction dimension method.</description> | ||
| <options> | ||
| <choices> | ||
| <choice>ica</choice> | ||
| </choices> | ||
| </options> | ||
| <default>0</default> | ||
| </parameter> | ||
| <parameter> | ||
| <parameter_type source_parameter_type="ParameterType_Int">ParameterNumber</parameter_type> | ||
| <key>method.ica.iter</key> | ||
| <name>number of iterations </name> | ||
| <description /> | ||
| <minValue /> | ||
| <maxValue /> | ||
| <default>20</default> | ||
| </parameter> | ||
| <parameter> | ||
| <parameter_type source_parameter_type="ParameterType_Float">ParameterNumber</parameter_type> | ||
| <key>method.ica.mu</key> | ||
| <name>Give the increment weight of W in [0, 1]</name> | ||
| <description /> | ||
| <minValue /> | ||
| <maxValue /> | ||
| <default>1</default> | ||
| </parameter> | ||
| <parameter> | ||
| <parameter_type source_parameter_type="ParameterType_Int">ParameterNumber</parameter_type> | ||
| <key>nbcomp</key> | ||
| <name>Number of Components.</name> | ||
| <description>Number of relevant components kept. By default all components are kept.</description> | ||
| <minValue /> | ||
| <maxValue /> | ||
| <default>0</default> | ||
| </parameter> | ||
| <parameter> | ||
| <parameter_type source_parameter_type="ParameterType_Empty">ParameterBoolean</parameter_type> | ||
| <key>normalize</key> | ||
| <name>Normalize.</name> | ||
| <description>center AND reduce data before Dimensionality reduction.</description> | ||
| <default>True</default> | ||
| </parameter> | ||
| <parameter> | ||
| <parameter_type source_parameter_type="ParameterType_OutputFilename">OutputFile</parameter_type> | ||
| <key>outmatrix</key> | ||
| <name>Transformation matrix output</name> | ||
| <description>Filename to store the transformation matrix (csv format)</description> | ||
| <hidden /> | ||
| </parameter> | ||
| </root> |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,56 @@ | ||
| <root> | ||
| <key>DimensionalityReduction-maf</key> | ||
| <exec>otbcli_DimensionalityReduction</exec> | ||
| <longname>DimensionalityReduction (maf)</longname> | ||
| <group>Image Filtering</group> | ||
| <description>Perform Dimension reduction of the input image.</description> | ||
| <parameter> | ||
| <parameter_type source_parameter_type="ParameterType_InputImage">ParameterRaster</parameter_type> | ||
| <key>in</key> | ||
| <name>Input Image</name> | ||
| <description>The input image to apply dimensionality reduction.</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. Components are ordered by decreasing eigenvalues.</description> | ||
| <hidden /> | ||
| </parameter> | ||
| <parameter> | ||
| <parameter_type source_parameter_type="ParameterType_Choice">ParameterSelection</parameter_type> | ||
| <key>method</key> | ||
| <name>Algorithm</name> | ||
| <description>Selection of the reduction dimension method.</description> | ||
| <options> | ||
| <choices> | ||
| <choice>maf</choice> | ||
| </choices> | ||
| </options> | ||
| <default>0</default> | ||
| </parameter> | ||
| <parameter> | ||
| <parameter_type source_parameter_type="ParameterType_Int">ParameterNumber</parameter_type> | ||
| <key>nbcomp</key> | ||
| <name>Number of Components.</name> | ||
| <description>Number of relevant components kept. By default all components are kept.</description> | ||
| <minValue /> | ||
| <maxValue /> | ||
| <default>0</default> | ||
| </parameter> | ||
| <parameter> | ||
| <parameter_type source_parameter_type="ParameterType_Empty">ParameterBoolean</parameter_type> | ||
| <key>normalize</key> | ||
| <name>Normalize.</name> | ||
| <description>center AND reduce data before Dimensionality reduction.</description> | ||
| <default>True</default> | ||
| </parameter> | ||
| <parameter> | ||
| <parameter_type source_parameter_type="ParameterType_OutputFilename">OutputFile</parameter_type> | ||
| <key>outmatrix</key> | ||
| <name>Transformation matrix output</name> | ||
| <description>Filename to store the transformation matrix (csv format)</description> | ||
| <hidden /> | ||
| </parameter> | ||
| </root> |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,81 @@ | ||
| <root> | ||
| <key>DimensionalityReduction-napca</key> | ||
| <exec>otbcli_DimensionalityReduction</exec> | ||
| <longname>DimensionalityReduction (napca)</longname> | ||
| <group>Image Filtering</group> | ||
| <description>Perform Dimension reduction of the input image.</description> | ||
| <parameter> | ||
| <parameter_type source_parameter_type="ParameterType_InputImage">ParameterRaster</parameter_type> | ||
| <key>in</key> | ||
| <name>Input Image</name> | ||
| <description>The input image to apply dimensionality reduction.</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. Components are ordered by decreasing eigenvalues.</description> | ||
| <hidden /> | ||
| </parameter> | ||
| <parameter> | ||
| <parameter_type source_parameter_type="ParameterType_OutputImage">OutputRaster</parameter_type> | ||
| <key>outinv</key> | ||
| <name> Inverse Output Image</name> | ||
| <description>reconstruct output image.</description> | ||
| <hidden /> | ||
| </parameter> | ||
| <parameter> | ||
| <parameter_type source_parameter_type="ParameterType_Choice">ParameterSelection</parameter_type> | ||
| <key>method</key> | ||
| <name>Algorithm</name> | ||
| <description>Selection of the reduction dimension method.</description> | ||
| <options> | ||
| <choices> | ||
| <choice>napca</choice> | ||
| </choices> | ||
| </options> | ||
| <default>0</default> | ||
| </parameter> | ||
| <parameter> | ||
| <parameter_type source_parameter_type="ParameterType_Int">ParameterNumber</parameter_type> | ||
| <key>method.napca.radiusx</key> | ||
| <name>Set the x radius of the sliding window.</name> | ||
| <description /> | ||
| <minValue /> | ||
| <maxValue /> | ||
| <default>1</default> | ||
| </parameter> | ||
| <parameter> | ||
| <parameter_type source_parameter_type="ParameterType_Int">ParameterNumber</parameter_type> | ||
| <key>method.napca.radiusy</key> | ||
| <name>Set the y radius of the sliding window.</name> | ||
| <description /> | ||
| <minValue /> | ||
| <maxValue /> | ||
| <default>1</default> | ||
| </parameter> | ||
| <parameter> | ||
| <parameter_type source_parameter_type="ParameterType_Int">ParameterNumber</parameter_type> | ||
| <key>nbcomp</key> | ||
| <name>Number of Components.</name> | ||
| <description>Number of relevant components kept. By default all components are kept.</description> | ||
| <minValue /> | ||
| <maxValue /> | ||
| <default>0</default> | ||
| </parameter> | ||
| <parameter> | ||
| <parameter_type source_parameter_type="ParameterType_Empty">ParameterBoolean</parameter_type> | ||
| <key>normalize</key> | ||
| <name>Normalize.</name> | ||
| <description>center AND reduce data before Dimensionality reduction.</description> | ||
| <default>True</default> | ||
| </parameter> | ||
| <parameter> | ||
| <parameter_type source_parameter_type="ParameterType_OutputFilename">OutputFile</parameter_type> | ||
| <key>outmatrix</key> | ||
| <name>Transformation matrix output</name> | ||
| <description>Filename to store the transformation matrix (csv format)</description> | ||
| <hidden /> | ||
| </parameter> | ||
| </root> |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,63 @@ | ||
| <root> | ||
| <key>DimensionalityReduction-pca</key> | ||
| <exec>otbcli_DimensionalityReduction</exec> | ||
| <longname>DimensionalityReduction (pca)</longname> | ||
| <group>Image Filtering</group> | ||
| <description>Perform Dimension reduction of the input image.</description> | ||
| <parameter> | ||
| <parameter_type source_parameter_type="ParameterType_InputImage">ParameterRaster</parameter_type> | ||
| <key>in</key> | ||
| <name>Input Image</name> | ||
| <description>The input image to apply dimensionality reduction.</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. Components are ordered by decreasing eigenvalues.</description> | ||
| <hidden /> | ||
| </parameter> | ||
| <parameter> | ||
| <parameter_type source_parameter_type="ParameterType_OutputImage">OutputRaster</parameter_type> | ||
| <key>outinv</key> | ||
| <name> Inverse Output Image</name> | ||
| <description>reconstruct output image.</description> | ||
| <hidden /> | ||
| </parameter> | ||
| <parameter> | ||
| <parameter_type source_parameter_type="ParameterType_Choice">ParameterSelection</parameter_type> | ||
| <key>method</key> | ||
| <name>Algorithm</name> | ||
| <description>Selection of the reduction dimension method.</description> | ||
| <options> | ||
| <choices> | ||
| <choice>pca</choice> | ||
| </choices> | ||
| </options> | ||
| <default>0</default> | ||
| </parameter> | ||
| <parameter> | ||
| <parameter_type source_parameter_type="ParameterType_Int">ParameterNumber</parameter_type> | ||
| <key>nbcomp</key> | ||
| <name>Number of Components.</name> | ||
| <description>Number of relevant components kept. By default all components are kept.</description> | ||
| <minValue /> | ||
| <maxValue /> | ||
| <default>0</default> | ||
| </parameter> | ||
| <parameter> | ||
| <parameter_type source_parameter_type="ParameterType_Empty">ParameterBoolean</parameter_type> | ||
| <key>normalize</key> | ||
| <name>Normalize.</name> | ||
| <description>center AND reduce data before Dimensionality reduction.</description> | ||
| <default>True</default> | ||
| </parameter> | ||
| <parameter> | ||
| <parameter_type source_parameter_type="ParameterType_OutputFilename">OutputFile</parameter_type> | ||
| <key>outmatrix</key> | ||
| <name>Transformation matrix output</name> | ||
| <description>Filename to store the transformation matrix (csv format)</description> | ||
| <hidden /> | ||
| </parameter> | ||
| </root> |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,51 @@ | ||
| <root> | ||
| <key>EdgeExtraction-gradient</key> | ||
| <exec>otbcli_EdgeExtraction</exec> | ||
| <longname>EdgeExtraction (gradient)</longname> | ||
| <group>Feature Extraction</group> | ||
| <description>Computes edge features on every pixel of the input image selected channel</description> | ||
| <parameter> | ||
| <parameter_type source_parameter_type="ParameterType_InputImage">ParameterRaster</parameter_type> | ||
| <key>in</key> | ||
| <name>Input Image</name> | ||
| <description>The input image to compute the features on.</description> | ||
| <optional>False</optional> | ||
| </parameter> | ||
| <parameter> | ||
| <parameter_type source_parameter_type="ParameterType_Int">ParameterNumber</parameter_type> | ||
| <key>channel</key> | ||
| <name>Selected Channel</name> | ||
| <description>The selected channel index</description> | ||
| <minValue /> | ||
| <maxValue /> | ||
| <default>1</default> | ||
| </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>filter</key> | ||
| <name>Edge feature</name> | ||
| <description>Choice of edge feature</description> | ||
| <options> | ||
| <choices> | ||
| <choice>gradient</choice> | ||
| </choices> | ||
| </options> | ||
| <default>0</default> | ||
| </parameter> | ||
| <parameter> | ||
| <parameter_type source_parameter_type="ParameterType_OutputImage">OutputRaster</parameter_type> | ||
| <key>out</key> | ||
| <name>Feature Output Image</name> | ||
| <description>Output image containing the edge features.</description> | ||
| <hidden /> | ||
| </parameter> | ||
| </root> |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,51 @@ | ||
| <root> | ||
| <key>EdgeExtraction-sobel</key> | ||
| <exec>otbcli_EdgeExtraction</exec> | ||
| <longname>EdgeExtraction (sobel)</longname> | ||
| <group>Feature Extraction</group> | ||
| <description>Computes edge features on every pixel of the input image selected channel</description> | ||
| <parameter> | ||
| <parameter_type source_parameter_type="ParameterType_InputImage">ParameterRaster</parameter_type> | ||
| <key>in</key> | ||
| <name>Input Image</name> | ||
| <description>The input image to compute the features on.</description> | ||
| <optional>False</optional> | ||
| </parameter> | ||
| <parameter> | ||
| <parameter_type source_parameter_type="ParameterType_Int">ParameterNumber</parameter_type> | ||
| <key>channel</key> | ||
| <name>Selected Channel</name> | ||
| <description>The selected channel index</description> | ||
| <minValue /> | ||
| <maxValue /> | ||
| <default>1</default> | ||
| </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>filter</key> | ||
| <name>Edge feature</name> | ||
| <description>Choice of edge feature</description> | ||
| <options> | ||
| <choices> | ||
| <choice>sobel</choice> | ||
| </choices> | ||
| </options> | ||
| <default>0</default> | ||
| </parameter> | ||
| <parameter> | ||
| <parameter_type source_parameter_type="ParameterType_OutputImage">OutputRaster</parameter_type> | ||
| <key>out</key> | ||
| <name>Feature Output Image</name> | ||
| <description>Output image containing the edge features.</description> | ||
| <hidden /> | ||
| </parameter> | ||
| </root> |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,60 @@ | ||
| <root> | ||
| <key>EdgeExtraction-touzi</key> | ||
| <exec>otbcli_EdgeExtraction</exec> | ||
| <longname>EdgeExtraction (touzi)</longname> | ||
| <group>Feature Extraction</group> | ||
| <description>Computes edge features on every pixel of the input image selected channel</description> | ||
| <parameter> | ||
| <parameter_type source_parameter_type="ParameterType_InputImage">ParameterRaster</parameter_type> | ||
| <key>in</key> | ||
| <name>Input Image</name> | ||
| <description>The input image to compute the features on.</description> | ||
| <optional>False</optional> | ||
| </parameter> | ||
| <parameter> | ||
| <parameter_type source_parameter_type="ParameterType_Int">ParameterNumber</parameter_type> | ||
| <key>channel</key> | ||
| <name>Selected Channel</name> | ||
| <description>The selected channel index</description> | ||
| <minValue /> | ||
| <maxValue /> | ||
| <default>1</default> | ||
| </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>filter</key> | ||
| <name>Edge feature</name> | ||
| <description>Choice of edge feature</description> | ||
| <options> | ||
| <choices> | ||
| <choice>touzi</choice> | ||
| </choices> | ||
| </options> | ||
| <default>0</default> | ||
| </parameter> | ||
| <parameter> | ||
| <parameter_type source_parameter_type="ParameterType_Int">ParameterNumber</parameter_type> | ||
| <key>filter.touzi.xradius</key> | ||
| <name>The Radius</name> | ||
| <description>The Radius</description> | ||
| <minValue /> | ||
| <maxValue /> | ||
| <default>1</default> | ||
| </parameter> | ||
| <parameter> | ||
| <parameter_type source_parameter_type="ParameterType_OutputImage">OutputRaster</parameter_type> | ||
| <key>out</key> | ||
| <name>Feature Output Image</name> | ||
| <description>Output image containing the edge features.</description> | ||
| <hidden /> | ||
| </parameter> | ||
| </root> |