ximgproc_createFastLineDetector
import { ximgproc_createFastLineDetector } from '@banou/opencv-wasm'Use after await initOpenCV(). See the initialization and named imports guide.
Creates a smart pointer to a FastLineDetector object and initializes it
ximgproc_createFastLineDetector(length_threshold: number, distance_threshold: number, canny_th1: number, canny_th2: number, canny_aperture_size: number, do_merge: boolean): ximgproc_FastLineDetector | null;7 available overloads
ximgproc_createFastLineDetector(): ximgproc_FastLineDetector | null;ximgproc_createFastLineDetector(length_threshold: number): ximgproc_FastLineDetector | null;ximgproc_createFastLineDetector(length_threshold: number, distance_threshold: number): ximgproc_FastLineDetector | null;ximgproc_createFastLineDetector(length_threshold: number, distance_threshold: number, canny_th1: number): ximgproc_FastLineDetector | null;ximgproc_createFastLineDetector(length_threshold: number, distance_threshold: number, canny_th1: number, canny_th2: number): ximgproc_FastLineDetector | null;ximgproc_createFastLineDetector(length_threshold: number, distance_threshold: number, canny_th1: number, canny_th2: number, canny_aperture_size: number): ximgproc_FastLineDetector | null;ximgproc_createFastLineDetector(length_threshold: number, distance_threshold: number, canny_th1: number, canny_th2: number, canny_aperture_size: number, do_merge: boolean): ximgproc_FastLineDetector | null;length_thresholdSegment shorter than this will be discarded
distance_thresholdA point placed from a hypothesis line segment farther than this will be regarded as an outlier
canny_th1First threshold for hysteresis procedure in Canny()
canny_th2Second threshold for hysteresis procedure in Canny()
canny_aperture_sizeAperturesize for the sobel operator in Canny(). If zero, Canny() is not applied and the input image is taken as an edge image.
do_mergeIf true, incremental merging of segments will be performed
The ximgproc_FastLineDetector | null 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.