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
srcInputArraysumOutputArraysdepthMatType?
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
srcInputArraysumOutputArraysqsumOutputArraysdepthMatType?
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
srcInputArrayinput image as W×H, 8-bit or floating-point (32f or 64f).
sumOutputArrayintegral image as (W+1)×(H+1) , 32-bit integer or floating-point (32f or 64f).
sqsumOutputArrayintegral image for squared pixel values; it is (W+1)×(H+1), double-precision floating-point (64f) array.
tiltedOutputArrayintegral for the image rotated by 45 degrees; it is (W+1)×(H+1) array with the same data type as sum.
sdepthMatType?desired depth of the integral and the tilted integral images, CV_32S, CV_32F, or CV_64F.
sqdepthMatType?desired depth of the integral image of squared pixel values, CV_32F or CV_64F.