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.
Fig. 1. The original mask (in gray) is eroded using a “cross” kernel, resulting in the white mask.
A binary mask.
Type: Image4DBool, Required, Single
A binary mask with the same spatial properties as the input mask.
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.
Copyright © 2022, NONPI Medical AB