Skip to content

detail_LightGlueFeaturesMatcher

stitchingclassOpenCV 5.0.0
import { detail_LightGlueFeaturesMatcher } from '@banou/opencv-wasm'

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

ARGUMENTSConstructor or factory
CLASSdetail_LightGlueFeaturesMatcher
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 detail_FeaturesMatcher.

Features matcher that adapts LightGlueMatcher (DescriptorMatcher) to the stitching pipeline's FeaturesMatcher interface.

This matcher uses DNN-based LightGlue for feature matching, requiring ALIKED-style keypoints with spatial context for positional encoding.

See: cv::detail::FeaturesMatcher cv::LightGlueMatcher

Constructors and members

static new

Constructs a LightGlue features matcher.

new(lgMatcher: LightGlueMatcher | null, num_matches_thresh1: number, num_matches_thresh2: number, matches_confidence_thresh: number): detail_LightGlueFeaturesMatcher;
4 available overloads
new(lgMatcher: LightGlueMatcher | null): detail_LightGlueFeaturesMatcher;
new(lgMatcher: LightGlueMatcher | null, num_matches_thresh1: number): detail_LightGlueFeaturesMatcher;
new(lgMatcher: LightGlueMatcher | null, num_matches_thresh1: number, num_matches_thresh2: number): detail_LightGlueFeaturesMatcher;
new(lgMatcher: LightGlueMatcher | null, num_matches_thresh1: number, num_matches_thresh2: number, matches_confidence_thresh: number): detail_LightGlueFeaturesMatcher;
lgMatcher

LightGlueMatcher instance for DNN-based matching

num_matches_thresh1

Minimum number of matches required for the 2D projective transform estimation used in the inliers classification step

num_matches_thresh2

Minimum number of matches required for the 2D projective transform re-estimation on inliers

matches_confidence_thresh

Matching confidence threshold to take the match into account.

Returns

The detail_LightGlueFeaturesMatcher 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.

setScoreThreshold

Sets the LightGlue confidence threshold for filtering matches.

setScoreThreshold(thresh: number): void;
thresh

thresh argument (number).

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.