Fourth step of the exact Large-Scale Mean-Shift segmentation workflow.
This application performs the fourth step of the exact Large-Scale Mean-Shift segmentation workflow (LSMS). Given a segmentation result (label image), that may have been processed for small regions merging or not, it will convert it to a GIS vector file containing one polygon per segment. Each polygon contains additional fields: mean and variance of each channels from input image (in parameter), segmentation image label, number of pixels in the polygon. For large images one can use the nbtilesx and nbtilesy parameters for tile-wise processing, with the guarantees of identical results.
This section describes in details the parameters available for this application. Table 4.142, page 755 presents a summary of these parameters and the parameters keys to be used in command-line and programming languages. Application key is LSMSVectorization.
Parameter key | Parameter type |
Parameter description |
in | Input image |
Input Image |
inseg | Input image |
Segmented image |
out | Output File name |
Output GIS vector file |
tilesizex | Int |
Size of tiles in pixel (X-axis) |
tilesizey | Int |
Size of tiles in pixel (Y-axis) |
inxml | XML input parameters file |
Load otb application from xml file |
outxml | XML output parameters file |
Save otb application to xml file |
|
||
|
||
|
||
|
||
|
To run this example in command-line, use the following:
To run this example from Python, use the following code snippet:
This application is part of the Large-Scale Mean-Shift segmentation workflow (LSMS) and may not be suited for any other purpose.
This application has been written by David Youssefi.
These additional ressources can be useful for further information: