Re: [scikit-image] plot_matches() error?
Hi Riley On Thu, Aug 3, 2017, at 14:31, Riley Myers wrote:
commit dcec9cdfd630f555216eb4105652fceb0f943dac Author: Gregory R. Lee <grlee77@gmail.com> Date: Fri May 5 08:53:30 2017 -0400 BUG: make the color array in plot_matches 1D Using a 2D array is unecessary and causes a crash for Matplotlib 2.0.1 diff --git a/skimage/feature/util.py b/skimage/feature/util.py index b0c66986..fdb1b67e 100644 --- a/skimage/feature/util.py +++ b/skimage/feature/util.py @@ -114,7 +114,7 @@ def plot_matches(ax, image1, image2, keypoints1, keypoints2, matches, idx2 = matches[i, 1] if matches_color is None: - color = np.random.rand(3, 1) + color = np.random.rand(3) else: color = matches_color Your options are: 1. Use the attached version of plot_matches or 2. to upgrade to the source version of scikit-image Best regards Stéfan
participants (1)
-
Stefan van der Walt