Segmentation-cc
otbcli_Segmentation
Segmentation (cc)
Segmentation
Performs segmentation of an image, and output either a raster or a vector file. In vector mode, large input datasets are supported.
ParameterRaster
in
Input Image
The input image to segment
False
ParameterSelection
filter
Segmentation algorithm
Choice of segmentation algorithm (mean-shift by default)
cc
0
ParameterString
filter.cc.expr
Condition
User defined connection condition, written as a mathematical expression. Available variables are p(i)b(i), intensity_p(i) and distance (example of expression : distance < 10 )
False
ParameterSelection
mode
Processing mode
Choice of processing mode, either raster or large-scale.
vector
0
OutputVector
mode.vector.out
Output vector file
The output vector file or database (name can be anything understood by OGR)
ParameterSelection
mode.vector.outmode
Writing mode for the output vector file
This allows setting the writing behaviour for the output vector file. Please note that the actual behaviour depends on the file format.
ulco
ovw
ulovw
ulu
0
ParameterRaster
mode.vector.inmask
Mask Image
Only pixels whose mask value is strictly positive will be segmented.
True
ParameterBoolean
mode.vector.neighbor
8-neighbor connectivity
Activate 8-Neighborhood connectivity (default is 4).
True
ParameterBoolean
mode.vector.stitch
Stitch polygons
Scan polygons on each side of tiles and stitch polygons which connect by more than one pixel.
True
ParameterNumber
mode.vector.minsize
Minimum object size
Objects whose size is below the minimum object size (area in pixels) will be ignored during vectorization.
1
ParameterNumber
mode.vector.simplify
Simplify polygons
Simplify polygons according to a given tolerance (in pixel). This option allows reducing the size of the output file or database.
0.1
ParameterString
mode.vector.layername
Layer name
Name of the layer in the vector file or database (default is Layer).
layer
False
ParameterString
mode.vector.fieldname
Geometry index field name
Name of the field holding the geometry index in the output vector file or database.
DN
False
ParameterNumber
mode.vector.tilesize
Tiles size
User defined tiles size for tile-based segmentation. Optimal tile size is selected according to available RAM if null.
1024
ParameterNumber
mode.vector.startlabel
Starting geometry index
Starting value of the geometry index field
1
ParameterString
mode.vector.ogroptions
OGR options for layer creation
A list of layer creation options in the form KEY=VALUE that will be passed directly to OGR without any validity checking. Options may depend on the file format, and can be found in OGR documentation.
True