mirror of
https://github.com/qgis/QGIS.git
synced 2025-03-06 00:05:02 -05:00
5 lines
4.0 KiB
HTML
5 lines
4.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>ConnectedComponentSegmentation</h1><h2>Brief Description</h2>Connected component segmentation and object based image filtering of the input image according to user-defined criterions.<h2>Tags</h2>Image Analysis,Segmentation<h2>Long Description</h2>This application allows performing a masking, connected components segmentation and object based image filtering. First and optionally, a mask can be built based on user-defined criterions to select pixels of the image which will be segmented. Then a connected component segmentation is performed with a user defined criterion to decide whether two neighbouring pixels belong to the same segment or not. After this segmentation step, an object based image filtering is applied using another user-defined criterion reasoning on segment properties, like shape or radiometric attributes. Criterions are mathematical expressions analysed by the MuParser library (http://muparser.sourceforge.net/). For instance, expression "((b1>80) and intensity>95)" will merge two neighbouring pixel in a single segment if their intensity is more than 95 and their value in the first image band is more than 80. See parameters documentation for a list of available attributes. The output of the object based image filtering is vectorized and can be written in shapefile or KML format. If the input image is in raw geometry, resulting polygons will be transformed to WGS84 using sensor modelling before writing, to ensure consistency with GIS softwares. For this purpose, a Digital Elevation Model can be provided to the application. The whole processing is done on a per-tile basis for large images, so this application can handle images of arbitrary size.<h2>Parameters</h2><ul><li><b>[param] -in</b> <string> The image to segment.. Mandatory: True. Default Value: ""</li><li><b>[param] -out</b> <string> The segmentation shape.. Mandatory: True. Default Value: ""</li><li><b>[param] -mask</b> <string> Mask mathematical expression (only if support image is given). Mandatory: False. Default Value: ""</li><li><b>[param] -expr</b> <string> Formula used for connected component segmentation. Mandatory: True. Default Value: ""</li><li><b>[param] -minsize</b> <int32> Min object size (area in pixel). Mandatory: False. Default Value: "2"</li><li><b>[param] -obia</b> <string> OBIA mathematical expression. Mandatory: False. Default Value: ""</li><li><b>[param] -elev</b> <string> This group of parameters allows managing elevation values. Supported formats are SRTM, DTED or any geotiff processed by the DEM import application. Mandatory: True. Default Value: "0"</li></ul><h2>Limitations</h2>Due to the tiling scheme in case of large images, some segments can be arbitrarily split across multiple tiles.<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: ROI_QB_MUL_4.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;">mask: "((b1>80)*intensity>95)"</p></li><li><p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">expr: "distance<10"</p></li><li><p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">minsize: 15</p></li><li><p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">obia: "SHAPE_Elongation>8"</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: ConnectedComponentSegmentation.shp</p></li></ul></body></html> |