gapi_integral
import { gapi_integral } from '@banou/opencv-wasm'Use after await initOpenCV(). See the initialization and named imports guide.
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;srcinput image.
sdepthdesired depth of the integral and the tilted integral images, CV_32S, CV_32F, or CV_64F.
sqdepthdesired depth of the integral image of squared pixel values, CV_32F or CV_64F.
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.