Skip to content

line_descriptor_LSDDetector

line_descriptorclassOpenCV 5.0.0
import { line_descriptor_LSDDetector } from '@banou/opencv-wasm'

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

ARGUMENTSConstructor or factory
CLASSline_descriptor_LSDDetector
RETURN TYPEOwned native handle
Call structure. A void return can still write to destination arguments. The parameter descriptions define inputs, outputs and ownership.

Native object: release it with using or delete(). Factories can return null; check before calling methods. Inherits Algorithm.

line descriptor lsddetector value in the OpenCV API.

Constructors and members

static new

line_descriptor_LSDDetector.new: constructor

new(_params: line_descriptor_LSDParam): line_descriptor_LSDDetector;
2 available overloads
new(): line_descriptor_LSDDetector;
new(_params: line_descriptor_LSDParam): line_descriptor_LSDDetector;
_params

params argument (line_descriptor_LSDParam).

Returns

The line_descriptor_LSDDetector result.

static createLSDDetector

Creates ad LSDDetector object, using smart pointers.

createLSDDetector(): line_descriptor_LSDDetector | null;
Returns

The line_descriptor_LSDDetector | null result.

static createLSDDetectorWithParams

Creates ad LSDDetector object, using smart pointers.

createLSDDetectorWithParams(params: line_descriptor_LSDParam): line_descriptor_LSDDetector | null;
params

params argument (line_descriptor_LSDParam).

Returns

The line_descriptor_LSDDetector | null result.

clone

Create another handle to the same native object. This retains the object without copying its pixels or algorithm state; dispose both handles separately.

clone(): this;
Returns

The this result.

detect

Detect lines inside an image.

detect(image: Mat, keypoints: line_descriptor__KeyLineVector, scale: number, numOctaves: number, mask: Mat): void;
2 available overloads
detect(image: Mat, keypoints: line_descriptor__KeyLineVector, scale: number, numOctaves: number): void;
detect(image: Mat, keypoints: line_descriptor__KeyLineVector, scale: number, numOctaves: number, mask: Mat): void;
image

input image

keypoints

Output destination, filled by the native operation. vector that will store extracted lines for one or more images

scale

scale factor used in pyramids generation

numOctaves

number of octaves inside pyramid

mask

mask matrix to detect only KeyLines of interest

detect1

Detect lines inside an image.

detect1(images: MatVector, keylines: std__vector_cv__line_descriptor__KeyLineVector, scale: number, numOctaves: number, masks: MatVector): void;
2 available overloads
detect1(images: MatVector, keylines: std__vector_cv__line_descriptor__KeyLineVector, scale: number, numOctaves: number): void;
detect1(images: MatVector, keylines: std__vector_cv__line_descriptor__KeyLineVector, scale: number, numOctaves: number, masks: MatVector): void;
images

input images

keylines

set of vectors that will store extracted lines for one or more images

scale

scale factor used in pyramids generation

numOctaves

number of octaves inside pyramid

masks

vector of mask matrices to detect only KeyLines of interest from each input image

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.