Skip to main content

MorphologicalOperation

Other

Morphological operation types. Available values: - Erode: Shrink bright regions by removing boundary voxels. - Dilate: Expand bright regions by adding boundary voxels. - Open: Erode first, then dilate, to remove small bright regions. - Close: Dilate first, then erode, to fill small dark gaps.

Import

import ScriptingApi as api

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

Enumeration Values

Enumeration Type from MorphologicalOperation

ValueDescription
MorphologicalOperation.ErodeErode option
MorphologicalOperation.DilateDilate option
MorphologicalOperation.OpenOpen option
MorphologicalOperation.CloseClose option

Usage Example

import ScriptingApi as api

# Access enumeration values
value = api.MorphologicalOperation.Erode

See Also