Binary Morphological Operation
Brief Description
Performs morphological operations on an input image channel
Tags
Feature Extraction, Morphology
Long Description
This application performs binary morphological operations on a mono band image or a channel of the input.
Parameters
Input Image (in): The input image to be filtered.
Output Image (out): Output image
Selected Channel (channel): The selected channel index
Available RAM (Mb) (ram): Available memory for processing (in MB)
Type of structuring element (structype): Choice of the structuring element type
Ball (ball):
Structuring element X radius (structype.ball.xradius): The structuring element radius along the X axis.
Structuring element Y radiuss (structype.ball.yradius): The structuring element radius along the y axis.
Cross (cross):
Morphological Operation (filter): Choice of the morphological operation
Dilate (dilate):
Foreground value (filter.dilate.foreval): Set the foreground value, default is 1.0.
Background value (filter.dilate.backval): Set the background value, default is 0.0.
Erode (erode):
Foreground value (filter.erode.foreval): Set the foreground value, default is 1.0.
Background value (filter.erode.backval): Set the background value, default is 0.0.
Opening (opening):
Foreground value (filter.opening.foreval): Set the foreground value, default is 1.0.
Background value (filter.opening.backval): Set the background value, default is 0.0.
Closing (closing):
Foreground value (filter.closing.foreval): Set the foreground value, default is 1.0.
Load otb application from xml file (inxml): Load otb application from xml file
Save otb application to xml file (outxml): Save otb application to xml file
Limitations
None
Authors
OTB-Team
See also
itkBinaryDilateImageFilter, itkBinaryErodeImageFilter, itkBinaryMorphologicalOpeningImageFilter and itkBinaryMorphologicalClosingImageFilter classes.
Example of use
in: qb_RoadExtract.tif
out: opened.tif
channel: 1
structype.ball.xradius: 5
structype.ball.yradius: 5
filter: erode
otbcli_BinaryMorphologicalOperation -in qb_RoadExtract.tif -out opened.tif -channel 1 -structype.ball.xradius 5 -structype.ball.yradius 5 -filter erode