[][src]Function opencv::imgproc::accumulate_square

pub fn accumulate_square(
    src: &dyn ToInputArray,
    dst: &mut dyn ToInputOutputArray,
    mask: &dyn ToInputArray
) -> Result<()>

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()