Function ndarray_ndimage::most_frequent_label
source · pub fn most_frequent_label<S>(
labels: &ArrayBase<S, Ix3>,
nb_features: usize
) -> Option<(u16, usize)>where
S: Data<Elem = u16>,Expand description
Returns the most frequent label and its index.
Ignores the background label. A blank label image will return None.
labels-u163D labels image, returned by thelabelfunction.nb_features- Number of unique labels, returned by thelabelfunction.