Function opencv::imgproc::accumulate_square

source ·
pub fn accumulate_square(
    src: &impl ToInputArray,
    dst: &mut impl ToInputOutputArray,
    mask: &impl ToInputArray
) -> Result<()>
Expand description

Adds the square of a source image to the accumulator image.

The function adds the input image src or its selected region, raised to a power of 2, to the accumulator dst :

block formula

The function supports multi-channel images. Each channel is processed independently.

§Parameters

  • src: Input image as 1- or 3-channel, 8-bit or 32-bit floating point.
  • dst: %Accumulator image with the same number of channels as input image, 32-bit or 64-bit floating-point.
  • mask: Optional operation mask.

§See also

accumulateSquare, accumulateProduct, accumulateWeighted

§C++ default parameters

  • mask: noArray()