11.33. ITK Grayscale Erode Image Filter

Replaces each pixel with the minimum value in its neighborhood — a grayscale erosion that darkens the image and grows dark regions.

Group (Subgroup)

ITKMathematicalMorphology (MathematicalMorphology)

Description

Grayscale erosion replaces each pixel with the minimum value found within the neighborhood defined by the structuring element (the probe shape — ball, box, etc. — swept over the image). The effect is to darken the image, grow dark regions, and shrink bright ones. It is the grayscale counterpart of binary erosion and the dual of ITK Grayscale Dilate Image Filter.

Parameter Guidance

  • Kernel Radius — the radius of the structuring element, in pixels (one value per axis). Larger radii grow dark regions more.

Kernel Type

The Kernel Type parameter selects the structuring element shape:

  • Annulus [0]: A ring-shaped structuring element.

  • Ball [1]: A spherical structuring element (default). Most commonly used for general morphological operations.

  • Box [2]: A rectangular/cuboid structuring element.

  • Cross [3]: A cross-shaped structuring element.

Required Input Sources

Operates on any scalar (grayscale) image — typically from Read Image, Read Images [3D Stack], or the output of a prior ITK image filter.

Grayscale erosion example.

Input Parameter(s)

Parameter Name

Parameter Type

Parameter Notes

Description

Kernel Radius

Vector of UInt32 Values

Order=X,Y,Z

The radius of the kernel structuring element.

Kernel Type

Choices

Set the kernel or structuring element used for the morphology.

Input Cell Data

Parameter Name

Parameter Type

Parameter Notes

Description

Image Geometry

Geometry Selection

Image

Select the Image Geometry Group from the DataStructure.

Input Cell Data

Array Selection

Allowed Types: int8, uint8, int16, uint16, int32, uint32, int64, uint64, float32, float64

The image data that will be processed by this filter.

Output Cell Data

Parameter Name

Parameter Type

Parameter Notes

Description

Output Cell Data

DataObjectName

The result of the processing will be stored in this Data Array inside the same group as the input data.

Example Pipelines

DREAM3D-NX Help

If you need help, need to file a bug report or want to request a new feature, please head over to the DREAM3DNX-Issues GitHub site where the community of DREAM3D-NX users can help answer your questions.