xfeatures2d_matchLOGOS
import { xfeatures2d_matchLOGOS } from '@banou/opencv-wasm'Use after await initOpenCV(). See the initialization and named imports guide.
LOGOS (Local geometric support for high-outlier spatial verification) feature matching strategy described in [Lowry2018LOGOSLG] .
Note: This matching strategy is suitable for features matching against large scale database. First step consists in constructing the bag-of-words (BoW) from a representative image database. Image descriptors are then represented by their closest codevector (nearest BoW centroid).
xfeatures2d_matchLOGOS(keypoints1: KeyPointVector, keypoints2: KeyPointVector, nn1: IntVector, nn2: IntVector, matches1to2: DMatchVector): void;keypoints1Input keypoints of image1.
keypoints2Input keypoints of image2.
nn1Index to the closest BoW centroid for each descriptors of image1.
nn2Index to the closest BoW centroid for each descriptors of image2.
matches1to2Output destination, filled by the native operation. Matches returned by the LOGOS matching strategy.
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.