Opening

Node Icon

The morphological opening of an image is a two-step process that combines erosion and dilation. The opening operation is used to remove small, isolated bright regions in an image while preserving the overall shape of the objects in the image.

  1. Erosion: In the first step, erosion is applied to the image to reduce the size of bright regions. The erosion operation is performed using a structuring element or kernel, which is a small neighborhood of pixels that is moved over the image. The value of the output pixel is set to the minimum value of the corresponding pixels in the neighborhood defined by the structuring element.

  2. Dilation: In the second step, dilation is applied to the image to restore the size of the objects that were reduced by the erosion step. The dilation operation is performed using the same structuring element as in the erosion step. The value of the output pixel is set to the maximum value of the corresponding pixels in the neighborhood defined by the structuring element.

The morphological opening of an image is used in various image processing tasks, such as object extraction, noise removal, and shape analysis. The opening operation can be seen as a type of low-pass filter, as it removes small, high-intensity (bright) details in the image while preserving the large-scale structure of the objects.

Inputs

Input

Input image(s).

Type: Image, List, Required, Single

Outputs

Output

Output image(s).

Type: Image, List

Settings

Kernel Selection

Shape of the structuring element.

Values: Annulus, Ball, Box, Cross

Kernel Radius [px] 3D Vector

Set the kernel radius in voxels, specified as [i, j, k].

Safe Border Boolean

Add a safe border to input image to avoid border effects and remove it once the operation is done.

See also

References

Keywords: