Skip to main content

histogram

Function histogram 

Source
pub fn histogram<T: PixelComponent, const CHANNELS: usize>(
    input: ImageView<'_, T, CHANNELS>,
    channel: usize,
    bins: usize,
    range: (f64, f64),
    mask: Option<ImageView<'_, u8, 1>>,
) -> VisionResult<Vec<u64>>
Expand description

Computes a configurable one-channel histogram, optionally through a mask.