Table of Contents

Method Integral

Namespace
OpenCvSharp
Assembly
OpenCvSharp.dll

Integral(InputArray, OutputArray, MatType?)

Calculates the integral of an image. The function calculates one or more integral images for the source image.

public static void Integral(InputArray src, OutputArray sum, MatType? sdepth = null)

Parameters

src InputArray
sum OutputArray
sdepth MatType?

Integral(InputArray, OutputArray, OutputArray, MatType?)

Calculates the integral of an image. The function calculates one or more integral images for the source image.

public static void Integral(InputArray src, OutputArray sum, OutputArray sqsum, MatType? sdepth = null)

Parameters

src InputArray
sum OutputArray
sqsum OutputArray
sdepth MatType?

Integral(InputArray, OutputArray, OutputArray, OutputArray, MatType?, MatType?)

Calculates the integral of an image. The function calculates one or more integral images for the source image.

public static void Integral(InputArray src, OutputArray sum, OutputArray sqsum, OutputArray tilted, MatType? sdepth = null, MatType? sqdepth = null)

Parameters

src InputArray

input image as W×H, 8-bit or floating-point (32f or 64f).

sum OutputArray

integral image as (W+1)×(H+1) , 32-bit integer or floating-point (32f or 64f).

sqsum OutputArray

integral image for squared pixel values; it is (W+1)×(H+1), double-precision floating-point (64f) array.

tilted OutputArray

integral for the image rotated by 45 degrees; it is (W+1)×(H+1) array with the same data type as sum.

sdepth MatType?

desired depth of the integral and the tilted integral images, CV_32S, CV_32F, or CV_64F.

sqdepth MatType?

desired depth of the integral image of squared pixel values, CV_32F or CV_64F.