Skip to content

ximgproc_createFastLineDetector

Extended image processingfunctionOpenCV 5.0.0
import { ximgproc_createFastLineDetector } from '@banou/opencv-wasm'

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

ARGUMENTSlength_threshold, distance_threshold, canny_th1, canny_th2
FUNCTIONximgproc_createFastLineDetector
RETURN TYPEximgproc_FastLineDetector | null
Call structure. A void return can still write to destination arguments. The parameter descriptions define inputs, outputs and ownership.

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_threshold

Segment shorter than this will be discarded

distance_threshold

A point placed from a hypothesis line segment farther than this will be regarded as an outlier

canny_th1

First threshold for hysteresis procedure in Canny()

canny_th2

Second threshold for hysteresis procedure in Canny()

canny_aperture_size

Aperturesize for the sobel operator in Canny(). If zero, Canny() is not applied and the input image is taken as an edge image.

do_merge

If true, incremental merging of segments will be performed

Returns

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.