QGIS/python/plugins/processing/algs/otb/description/5.4.0/doc/PolygonClassStatistics.html

12 lines
3.0 KiB
HTML

<html><head>
<style type="text/css">
dl { border: 3px double #ccc; padding: 0.5em; } dt { float: left; clear: left; text-align: left; font-weight: bold; color: green; } dt:after { content: ":"; } dd { margin: 0 0 0 220px; padding: 0 0 0.5em 0; }
</style>
</head><body><h1>PolygonClassStatistics</h1><h2>Brief Description</h2>Computes statistics on a training polygon set.<h2>Tags</h2>Learning<h2>Long Description</h2>The application processes a set of geometries intended for training (they should have a field giving the associated class). The geometries are analysed against a support image to compute statistics :
- number of samples per class
- number of samples per geometry
An optional raster mask can be used to discard samples. Different types of geometry are supported : polygons, lines, points. The behaviour is different for each type of geometry :
- polygon: select pixels whose center is inside the polygon
- lines : select pixels intersecting the line
- points : select closest pixel to the point
<h2>Parameters</h2><ul><li><b>[param] -in</b> &lt;string&gt; Support image that will be classified. Mandatory: True. Default Value: &quot;&quot;</li><li><b>[param] -mask</b> &lt;string&gt; Validity mask (only pixels corresponding to a mask value greater than 0 will be used for statistics). Mandatory: False. Default Value: &quot;&quot;</li><li><b>[param] -vec</b> &lt;string&gt; Input geometries to analyse. Mandatory: True. Default Value: &quot;&quot;</li><li><b>[param] -out</b> &lt;string&gt; Output file to store statistics (XML format). Mandatory: True. Default Value: &quot;&quot;</li><li><b>[param] -field</b> &lt;string&gt; Name of the field carrying the class name in the input vectors.. Mandatory: False. Default Value: &quot;class&quot;</li><li><b>[param] -layer</b> &lt;int32&gt; Layer index to read in the input vector file.. Mandatory: False. Default Value: &quot;0&quot;</li><li><b>[param] -ram</b> &lt;int32&gt; Available memory for processing (in MB). Mandatory: False. Default Value: &quot;128&quot;</li><li><b>[param] -inxml</b> &lt;string&gt; Load otb application from xml file. Mandatory: False. Default Value: &quot;&quot;</li><li><b>[param] -outxml</b> &lt;string&gt; Save otb application to xml file. Mandatory: False. Default Value: &quot;&quot;</li></ul><h2>Limitations</h2>None<h2>Authors</h2>OTB-Team<h2>See Also</h2> <h2>Example of use</h2><ul><li><p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">in: support_image.tif</p></li><li><p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">vec: variousVectors.sqlite</p></li><li><p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">field: label</p></li><li><p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">out: polygonStat.xml</p></li></ul></body></html>