detail_BestOf2NearestMatcher
import { detail_BestOf2NearestMatcher } 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 which finds two best matches for each feature and leaves the best one only if the ratio between descriptor distances is greater than the threshold match_conf
See: detail::FeaturesMatcher
Constructors and members
static new
Constructs a "best of 2 nearest" matcher.
new(try_use_gpu: boolean, match_conf: number, num_matches_thresh1: number, num_matches_thresh2: number, matches_confidence_thresh: number): detail_BestOf2NearestMatcher;6 available overloads
new(): detail_BestOf2NearestMatcher;new(try_use_gpu: boolean): detail_BestOf2NearestMatcher;new(try_use_gpu: boolean, match_conf: number): detail_BestOf2NearestMatcher;new(try_use_gpu: boolean, match_conf: number, num_matches_thresh1: number): detail_BestOf2NearestMatcher;new(try_use_gpu: boolean, match_conf: number, num_matches_thresh1: number, num_matches_thresh2: number): detail_BestOf2NearestMatcher;new(try_use_gpu: boolean, match_conf: number, num_matches_thresh1: number, num_matches_thresh2: number, matches_confidence_thresh: number): detail_BestOf2NearestMatcher;try_use_gpuShould try to use GPU or not
match_confMatch distances ration threshold
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 threshold was determined experimentally and set to 3 by default.
The detail_BestOf2NearestMatcher result.
static create
Create an owned detail_BestOf2NearestMatcher instance with the supplied configuration.
Features matcher which finds two best matches for each feature and leaves the best one only if the ratio between descriptor distances is greater than the threshold match_conf
create(try_use_gpu: boolean, match_conf: number, num_matches_thresh1: number, num_matches_thresh2: number, matches_confidence_thresh: number): detail_BestOf2NearestMatcher | null;6 available overloads
create(): detail_BestOf2NearestMatcher | null;create(try_use_gpu: boolean): detail_BestOf2NearestMatcher | null;create(try_use_gpu: boolean, match_conf: number): detail_BestOf2NearestMatcher | null;create(try_use_gpu: boolean, match_conf: number, num_matches_thresh1: number): detail_BestOf2NearestMatcher | null;create(try_use_gpu: boolean, match_conf: number, num_matches_thresh1: number, num_matches_thresh2: number): detail_BestOf2NearestMatcher | null;create(try_use_gpu: boolean, match_conf: number, num_matches_thresh1: number, num_matches_thresh2: number, matches_confidence_thresh: number): detail_BestOf2NearestMatcher | null;try_use_gputry use gpu argument (boolean).
match_confmatch conf argument (number).
num_matches_thresh1num matches thresh1 argument (number).
num_matches_thresh2num matches thresh2 argument (number).
matches_confidence_threshmatches confidence thresh argument (number).
The detail_BestOf2NearestMatcher | 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;The this result.
collectGarbage
Release temporary buffers retained by this feature matcher.
collectGarbage(): void;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.