opencv::cudaimgproc

Function calc_hist

Source
pub fn calc_hist(
    src: &impl ToInputArray,
    hist: &mut impl ToOutputArray,
    stream: &mut impl StreamTrait,
) -> Result<()>
Expand description

Calculates histogram for one channel 8-bit image.

§Parameters

  • src: Source image with CV_8UC1 type.
  • hist: Destination histogram with one row, 256 columns, and the CV_32SC1 type.
  • stream: Stream for the asynchronous version.

§C++ default parameters

  • stream: Stream::Null()