label_histogram

Function label_histogram 

Source
pub fn label_histogram<S>(
    labels: &ArrayBase<S, Ix3>,
    nb_features: usize,
) -> Vec<usize>
where S: Data, S::Elem: LabelType,
Expand description

Calculates the histogram of a label image.

  • labels - 3D labels image, returned by the label function.
  • nb_features - Number of unique labels, returned by the label function.