class kptmatch – Keypoint match object

The kptmatch object is an attrtuple returned by image.match_descriptor() for keypoint matches with the fields:

class image.kptmatch

Please call image.match_descriptor() to create this object. It has no public constructor.

x() int

Bounding box x coordinate of the matched keypoints. Index [0].

y() int

Bounding box y coordinate of the matched keypoints. Index [1].

w() int

Bounding box width of the matched keypoints. Index [2].

h() int

Bounding box height of the matched keypoints. Index [3].

cx() int

Centroid x position of the matched keypoints. Index [4].

cy() int

Centroid y position of the matched keypoints. Index [5].

count() int

Number of keypoints matched. Index [6].

theta() int

Estimated angle of rotation of the match. Index [7].

match() List[Tuple[int, int]]

List of (x, y) tuples of the matching keypoints. Index [8].

rect() Tuple[int, int, int, int]

Bounding box (x, y, w, h) of the matched keypoints, suitable for passing to methods like Image.draw_rectangle(). Index [9].