Skip to main content

MorphologicalOperationType

Enumerations

Defines morphological operation types for mask processing. Morphological operations modify the shape and structure of masks using a structuring element (typically a ball/sphere). Erode => Shrinks mask by removing boundary pixel Dilate => Expands mask by adding boundary pixels Open => Erosion followed by dilation (removes small objects and noise) Close => Dilation followed by erosion (fills small holes and gaps)

Import

import ScriptingApi as api

# Access the class
# MorphologicalOperationType is available via api.MorphologicalOperationType

Enumeration Values

Enumeration Type from MorphologicalOperationType

ValueDescription
MorphologicalOperationType.ErodeErode option
MorphologicalOperationType.DilateDilate option
MorphologicalOperationType.OpenOpen option
MorphologicalOperationType.CloseClose option

Usage Example

import ScriptingApi as api

# Access enumeration values
value = api.MorphologicalOperationType.Erode

See Also