Opening by Reconstruction

Node Icon

This filter preserves regions, in the foreground, that can completely contain the structuring element. At the same time, this filter eliminates all other regions of foreground pixels. Contrary to the morphological opening, the opening by reconstruction preserves the shape of the components that are not removed by erosion. The opening by reconstruction of an input “f” is defined as:

OpeningByReconstruction(f) = DilationByRecontruction(f, Erosion(f)).

For image inputs, opening by reconstruction not only removes structures destroyed by the erosion, but also levels down the contrast of the brightest regions. If Preserve Intensities is on, a subsequent reconstruction by dilation using a marker image that is the original image for all unaffected pixels.

Inputs

Input

Input image(s) or mask(s).

Type: Image, Mask, List, Required, Single

Outputs

Output

Output image(s) or mask(s).

Type: Mask, 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].

Connectivity Selection

Set whether the connected components are defined strictly by face connectivity or by face+edge+vertex (full) connectivity.

Values: Face Connectivity, Full Connectivity

Preserve Intensities Boolean

Set whether the original intensities of the image retained for those pixels unaffected by the opening by reconstruction. If Flase, the output pixel contrast will be reduced. This is only applicable to image inputs.

See also

Keywords: