Use nearest neighbor interpolation and a gray-level color map for plotting feature matches

This commit is contained in:
Stefan van der Walt
2014-03-20 18:08:56 +02:00
parent 5db5b1899c
commit b54b41bcb2
+1 -1
View File
@@ -105,7 +105,7 @@ def plot_matches(ax, image1, image2, keypoints1, keypoints2, matches,
ax.scatter(keypoints2[:, 1] + offset[1], keypoints2[:, 0],
facecolors='none', edgecolors=keypoints_color)
ax.imshow(image)
ax.imshow(image, interpolation='nearest', cmap='gray')
ax.axis((0, 2 * offset[1], offset[0], 0))
for i in range(matches.shape[0]):