gapi_Canny
import { gapi_Canny } from '@banou/opencv-wasm'Use after await initOpenCV(). See the initialization and named imports guide.
gapi_filters
Finds edges in an image using the Canny algorithm.
The function finds edges in the input image and marks them in the output map edges using the Canny algorithm. The smallest value between threshold1 and threshold2 is used for edge linking. The largest value is used to find initial segments of strong edges. See http://en.wikipedia.org/wiki/Canny_edge_detector
Note: Function textual ID is "org.opencv.imgproc.feature.canny"
gapi_Canny(image: GMat, threshold1: number, threshold2: number, apertureSize: number, L2gradient: boolean): GMat;3 available overloads
gapi_Canny(image: GMat, threshold1: number, threshold2: number): GMat;gapi_Canny(image: GMat, threshold1: number, threshold2: number, apertureSize: number): GMat;gapi_Canny(image: GMat, threshold1: number, threshold2: number, apertureSize: number, L2gradient: boolean): GMat;image8-bit input image.
threshold1first threshold for the hysteresis procedure.
threshold2second threshold for the hysteresis procedure.
apertureSizeaperture size for the Sobel operator.
L2gradienta flag, indicating whether a more accurate
L_2norm=\sqrt{(dI/dx)^2 + (dI/dy)^2}should be used to calculate the image gradient magnitude ( L2gradient=true ), or whether the defaultL_1norm=|dI/dx|+|dI/dy|is enough ( L2gradient=false ).
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.