pub fn largest_connected_components<S>(
mask: &ArrayBase<S, Ix3>,
structure: &ArrayBase<S, Ix3>,
) -> Option<Mask>Expand description
Returns a new mask, containing the biggest zone of mask.
mask- Binary image to be labeled and studied.structure- Structuring element used for the labeling. Must be 3x3x3 (e.g. the result ofKernel3d::generate) and centrosymmetric. The center must betrue.
The labeling is done using u16, this may be too small when mask has more than u16::MAX elements.