---
name: "otbcli_GrayScaleMorphologicalOperation"
section: "1"
platform: "linux"
package: "otb-bin"
version: "6.6.1+dfsg-1+b1"
release: "Debian 10 (Buster)"
platforms: ["linux"]
url: "https://new.carta.tech/otbcli_GrayScaleMorphologicalOperation"
---

# otbcli\_GrayScaleMorphologicalOperation(1)

OTB GrayScaleMorphologicalOperation application

## NAME

otbcli\_GrayScaleMorphologicalOperation - OTB GrayScaleMorphologicalOperation application

## DESCRIPTION

This is the GrayScaleMorphologicalOperation application, version 5.2.0 Performs morphological operations on a grayscale input image

Complete documentation: http://www.orfeo-toolbox.org/Applications/GrayScaleMorphologicalOperation.html

### Parameters:

- **-progress**

  \<boolean\>        Report progress

 **-in**                     \<string\>         Input Image  (mandatory)\
  **-out**                    \<string\> \[pixel\] Feature Output Image  \[pixel=uint8/uint16/int16/uint32/int32/float/double\] (default value is float) (mandatory)

- **-channel**

  \<int32\>          Selected Channel  (mandatory, default value is 1)

- **-ram**

  \<int32\>          Available RAM (Mb)  (optional, off by default, default value is 128)

- **-structype**

  \<string\>         Structuring Element Type \[ball/cross\] (mandatory, default value is ball)

- **-structype**.ball.xradius \<int32\>

  The Structuring Element X Radius  (mandatory, default value is 5)

- **-structype**.ball.yradius \<int32\>

  The Structuring Element Y Radius  (mandatory, default value is 5)

- **-filter**

  \<string\>         Morphological Operation \[dilate/erode/opening/closing\] (mandatory, default value is dilate)

- **-inxml**

  \<string\>         Load otb application from xml file  (optional, off by default)

## EXAMPLES

otbcli\_GrayScaleMorphologicalOperation -in qb\_RoadExtract.tif -out opened.tif -channel 1 -structype.ball.xradius 5 -structype.ball.yradius 5 -filter erode

## SEE ALSO

The full documentation for **otbcli\_GrayScaleMorphologicalOperation** is maintained as a Texinfo manual.  If the **info** and **otbcli\_GrayScaleMorphologicalOperation** programs are properly installed at your site, the command

-

  **info otbcli\_GrayScaleMorphologicalOperation**

should give you access to the complete manual.
