From b54b41bcb245dfa5d0c91ec10cd8465b401c0c44 Mon Sep 17 00:00:00 2001 From: Stefan van der Walt Date: Thu, 20 Mar 2014 18:08:56 +0200 Subject: [PATCH] Use nearest neighbor interpolation and a gray-level color map for plotting feature matches --- skimage/feature/util.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/skimage/feature/util.py b/skimage/feature/util.py index 8ee2baf8..5a3e5687 100644 --- a/skimage/feature/util.py +++ b/skimage/feature/util.py @@ -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]):