Erode

Class: NodeMaskErode

Node Icon

Erode a mask using binary morphology. Morphological erosion shrinks the boundary of a region of foreground pixels, i.e. pixels with value True, using a kernel. The resuling region is obtained by letting the kernel trace the boundary of the region, and removing voxels that cannot be reached by the center of the kernel.

Erode example

Fig. 1. The original mask (in gray) is eroded using a “cross” kernel, resulting in the white mask.

Inputs

Mask

A binary mask.

Type: Image4DBool, Required, Single

Outputs

Out

A binary mask with the same spatial properties as the input mask.

Type: Image4DBool

Settings

Kernel Selection

The shape of the structuring element.

Values: Annulus, Ball, Box, Cross

Radius X Integer

The radius of the kernel in the X direction, specified in voxels.

Radius Y Integer

The radius of the kernel in the Y direction, specified in voxels.

Radius Z Integer

The radius of the kernel in the Z direction, specified in voxels.

References

See also

Keywords: