mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-13 00:03:09 -04:00
12 lines
3.0 KiB
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> <string> Support image that will be classified. Mandatory: True. Default Value: ""</li><li><b>[param] -mask</b> <string> Validity mask (only pixels corresponding to a mask value greater than 0 will be used for statistics). Mandatory: False. Default Value: ""</li><li><b>[param] -vec</b> <string> Input geometries to analyse. Mandatory: True. Default Value: ""</li><li><b>[param] -out</b> <string> Output file to store statistics (XML format). Mandatory: True. Default Value: ""</li><li><b>[param] -field</b> <string> Name of the field carrying the class name in the input vectors.. Mandatory: False. Default Value: "class"</li><li><b>[param] -layer</b> <int32> Layer index to read in the input vector file.. Mandatory: False. Default Value: "0"</li><li><b>[param] -ram</b> <int32> Available memory for processing (in MB). Mandatory: False. Default Value: "128"</li><li><b>[param] -inxml</b> <string> Load otb application from xml file. Mandatory: False. Default Value: ""</li><li><b>[param] -outxml</b> <string> Save otb application to xml file. Mandatory: False. Default Value: ""</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> |