Skip to content

gapi_integral

gapifunctionOpenCV 5.0.0
import { gapi_integral } from '@banou/opencv-wasm'

Use after await initOpenCV(). See the initialization and named imports guide.

ARGUMENTSsrc, sdepth, sqdepth
FUNCTIONgapi_integral
RETURN TYPEtuple_GMat_and_GMat
Call structure. A void return can still write to destination arguments. The parameter descriptions define inputs, outputs and ownership.

Calculates the integral of an image.

The function calculates one or more integral images for the source image as follows:

\texttt{sum} (X,Y) =  \sum _{x<X,y<Y}  \texttt{image} (x,y)
\texttt{sqsum} (X,Y) =  \sum _{x<X,y<Y}  \texttt{image} (x,y)^2

The function return integral image as (W+1)\times (H+1) , 32-bit integer or floating-point (32f or 64f) and integral image for squared pixel values; it is (W+1)\times (H+), double-precision floating-point (64f) array.

Note: Function textual ID is "org.opencv.core.matrixop.integral"

gapi_integral(src: GMat, sdepth: number, sqdepth: number): tuple_GMat_and_GMat;
3 available overloads
gapi_integral(src: GMat): tuple_GMat_and_GMat;
gapi_integral(src: GMat, sdepth: number): tuple_GMat_and_GMat;
gapi_integral(src: GMat, sdepth: number, sqdepth: number): tuple_GMat_and_GMat;
src

input image.

sdepth

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

sqdepth

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

Returns

The tuple_GMat_and_GMat result.

These signatures describe this package. Upstream documentation can mention optional backends that are absent from this build. Check runtime compatibility before choosing a backend or file format.