Function ndarray_ndimage::label

source ·
pub fn label<S>(data: &ArrayBase<S, Ix3>) -> (Array3<u16>, usize)where
    S: Data<Elem = bool>,
Expand description

Labels features of 3D binary images.

Currently hardcoded with the Star kernel (Kernel3d::Star).

Returns the labels and the number of features.

  • mask - Binary image to be labeled. false values are considered the background.