Skip to content

detail_BestOf2NearestMatcher_create

stitchingfunctionOpenCV 5.0.0
import { detail_BestOf2NearestMatcher_create } from '@banou/opencv-wasm'

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

ARGUMENTStry_use_gpu, match_conf, num_matches_thresh1, num_matches_thresh2
FUNCTIONdetail_BestOf2NearestMatcher_create
RETURN TYPEdetail_BestOf2NearestMatcher | null
Call structure. A void return can still write to destination arguments. The parameter descriptions define inputs, outputs and ownership.

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

detail_BestOf2NearestMatcher_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
detail_BestOf2NearestMatcher_create(): detail_BestOf2NearestMatcher | null;
detail_BestOf2NearestMatcher_create(try_use_gpu: boolean): detail_BestOf2NearestMatcher | null;
detail_BestOf2NearestMatcher_create(try_use_gpu: boolean, match_conf: number): detail_BestOf2NearestMatcher | null;
detail_BestOf2NearestMatcher_create(try_use_gpu: boolean, match_conf: number, num_matches_thresh1: number): detail_BestOf2NearestMatcher | null;
detail_BestOf2NearestMatcher_create(try_use_gpu: boolean, match_conf: number, num_matches_thresh1: number, num_matches_thresh2: number): detail_BestOf2NearestMatcher | null;
detail_BestOf2NearestMatcher_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_gpu

try use gpu argument (boolean).

match_conf

match conf argument (number).

num_matches_thresh1

num matches thresh1 argument (number).

num_matches_thresh2

num matches thresh2 argument (number).

matches_confidence_thresh

matches confidence thresh argument (number).

Returns

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