FeatureMatch#
- class FeatureMatch(m, fv1: BaseFeature2D, fv2: BaseFeature2D, inliers=None)[source]#
Create feature match object
- Parameters:
m (list of tuples (int, int, float)) – a list of match tuples (id1, id2, distance)
fv1 (
BaseFeature2D) – first set of featuresfv2 (class:BaseFeature2D) – second set of features
inliers (array_like of bool) – inlier status
A
FeatureMatchobject describes a set of correspondences between two feature sets. The object is constructed from two feature sets and a list of tuples(id1, id2, distance)whereid1andid2are indices into the first and second feature sets.distanceis the distance between the feature’s descriptors.A
FeatureMatchobject:has a length, the number of matches it contains
can be sliced to extract a subset of matches
inlier/outlier status of matches
Note
This constructor would not be called directly, it is used by the
matchmethod of theBaseFeature2Dsubclass.- Seealso:
Methods
by_id1(id)Find match by feature id in first set
by_id2(i)Find match by feature id in second set
Feature correspondences
estimate(func[, method])list()List matches
plot(*pos[, darken, ax, width, block])Plot matches
plot_correspondence(*arg[, offset])subset([N])Select subset of features
table()Print matches in tabular form
Properties
Feature descriptor in first image
Feature descriptor in second image
Distance between corresponding features
Feature id in first image
Feature id in second image
Extract inlier matches
Extract outlier matches
Feature coordinate in first image
Feature coordinate in second image
Inlier status of matches