plot_matches(ax, image1, image2, keypoints1, keypoints2, matches, keypoints_color='k', matches_color=None, only_matches=False, alignment='horizontal')
Matches and image are drawn in this ax.
First grayscale or color image.
Second grayscale or color image.
First keypoint coordinates as (row, col)
.
Second keypoint coordinates as (row, col)
.
Indices of corresponding matches in first and second set of descriptors, where matches[:, 0]
denote the indices in the first and matches[:, 1]
the indices in the second set of descriptors.
Color for keypoint locations.
Color for lines which connect keypoint matches. By default the color is chosen randomly.
Whether to only plot matches and not plot the keypoint locations.
Whether to show images side by side, 'horizontal'
, or one above the other, 'vertical'
.
Plot matched features.
Hover to see nodes names; edges to Self not shown, Caped at 50 nodes.
Using a canvas is more power efficient and can get hundred of nodes ; but does not allow hyperlinks; , arrows or text (beyond on hover)
SVG is more flexible but power hungry; and does not scale well to 50 + nodes.
All aboves nodes referred to, (or are referred from) current nodes; Edges from Self to other have been omitted (or all nodes would be connected to the central node "self" which is not useful). Nodes are colored by the library they belong to, and scaled with the number of references pointing them