gapi_gaussianBlur
import { gapi_gaussianBlur } from '@banou/opencv-wasm'Use after await initOpenCV(). See the initialization and named imports guide.
GAPI_EXPORTS_W void blur( InputArray src, OutputArray dst, Size ksize, Point anchor = Point(-1,-1), int borderType = BORDER_DEFAULT ); Blurs an image using a Gaussian filter.
The function filter2Ds the source image with the specified Gaussian kernel. Output image must have the same type and number of channels an input image.
Supported input matrix data types are CV_8UC1, CV_8UC3, CV_16UC1, CV_16SC1, CV_32FC1.
Output image must have the same type, size, and number of channels as the input image.
Note: - Rounding to nearest even is procedeed if hardware supports it, if not - to nearest.
- Function textual ID is "org.opencv.imgproc.filters.gaussianBlur"
See: sepFilter, boxFilter, medianBlur
gapi_gaussianBlur(src: GMat, ksize: Size, sigmaX: number, sigmaY: number, borderType: number, borderValue: Scalar): GMat;4 available overloads
gapi_gaussianBlur(src: GMat, ksize: Size, sigmaX: number): GMat;gapi_gaussianBlur(src: GMat, ksize: Size, sigmaX: number, sigmaY: number): GMat;gapi_gaussianBlur(src: GMat, ksize: Size, sigmaX: number, sigmaY: number, borderType: number): GMat;gapi_gaussianBlur(src: GMat, ksize: Size, sigmaX: number, sigmaY: number, borderType: number, borderValue: Scalar): GMat;srcinput image;
ksizeGaussian kernel size. ksize.width and ksize.height can differ but they both must be positive and odd. Or, they can be zero's and then they are computed from sigma.
sigmaXGaussian kernel standard deviation in X direction.
sigmaYGaussian kernel standard deviation in Y direction; if sigmaY is zero, it is set to be equal to sigmaX, if both sigmas are zeros, they are computed from ksize.width and ksize.height, respectively (see cv::getGaussianKernel for details); to fully control the result regardless of possible future modifications of all this semantics, it is recommended to specify all of ksize, sigmaX, and sigmaY.
borderTypepixel extrapolation method, see cv::BorderTypes
borderValueborder value in case of constant border type
The GMat result. Release returned native handles with using or delete(), including handles nested in results.
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.