Skip to content

detail_MatchesInfo

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

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

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

Structure containing information about matches between two images.

It's assumed that there is a transformation between those images. Transformation may be homography or affine transformation based on selected matcher.

See: detail::FeaturesMatcher

Constructors and members

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.

src_img_idx

src img idx value for detail_MatchesInfo.

src_img_idx: number;

dst_img_idx

Images indices (optional)

dst_img_idx: number;

matches

Images indices (optional)

matches: DMatchVector;

inliers_mask

Geometrically consistent matches mask

inliers_mask: ucharVector;

num_inliers

Number of geometrically consistent matches

num_inliers: number;

H

Estimated transformation

H: Mat;

confidence

Confidence two images are from the same panorama

confidence: number;

getMatches

Confidence two images are from the same panorama

getMatches(): DMatchVector;
Returns

The DMatchVector result. Release returned native handles with using or delete(), including handles nested in results.

getInliers

Return the inliers configured on this detail_MatchesInfo object.

getInliers(): ucharVector;
Returns

The ucharVector result. Release returned native handles with using or delete(), including handles nested in results.

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.