Mask Contour

Node Icon

The filter will produce a contour of the objects in a binary mask.



Input mask(s).

Type: Mask, List, Required, Single



Output mask(s).

Type: Mask


Fully Connected Boolean

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

Slicewise Boolean

Calculate the analysis slice-by-slice instead of volume-by-volume. A contour is defined as any TRUE voxel which has neighboring FALSE voxel. If the filter is not run slice-wise, the contours will be generated in 3D, which does not guarantee 1-pixel wide contours in the slice plane, since there can be FALSE voxels neighboring a TRUE voxel above or below it. Running the filter slice-wise will always generate 1-pixel wide contours in the selected plane.

Slice Plane Selection

If the output is calculated slice-by-slice, select the slice direction of the image matrix. Default option is i-j, and represent axial slices in an axial image, sagittal slices in a sagittal image or coronal slices in a coronal image.

Values: i-j, i-k, j-k

See also