detail_LightGlueFeaturesMatcher
import { detail_LightGlueFeaturesMatcher } from '@banou/opencv-wasm'Use after await initOpenCV(). See the initialization and named imports guide.
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;lgMatcherLightGlueMatcher instance for DNN-based matching
num_matches_thresh1Minimum number of matches required for the 2D projective transform estimation used in the inliers classification step
num_matches_thresh2Minimum number of matches required for the 2D projective transform re-estimation on inliers
matches_confidence_threshMatching confidence threshold to take the match into account.
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;The this result.
setScoreThreshold
Sets the LightGlue confidence threshold for filtering matches.
setScoreThreshold(thresh: number): void;threshthresh 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.