template matching - ValueError: image must be 2d / 3d array

Anurag anurag.phadke at gmail.com
Sat Jan 23 20:06:37 EST 2016


Hello,
I am trying to run Template Matching code as mentioned in
http://scikit-image.org/docs/dev/auto_examples/plot_template.html, however,
on trying to read an image from file, it returns the following error:
ValueError: The parameter `image` must be a 2-or-3-dimensional array

full gist and Traceback at:
https://gist.github.com/anuragphadke/48b8565a6bcaa477daa5

Any tips on what I might be doing wrong here? tried converting image to
grayscale etc.


-- 
Twitter: @anuragphadke (https://twitter.com/#!/anuragphadke)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/scikit-image/attachments/20160123/bc1db7e5/attachment.html>


More information about the scikit-image mailing list