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

Anurag anurag.phadke at gmail.com
Sat Jan 23 20:22:34 EST 2016


turns out, it was bug in my code, the following snippet works:

https://gist.github.com/anuragphadke/56a3be21128852f69031

-anurag


On Sat, Jan 23, 2016 at 5:06 PM, Anurag <anurag.phadke at gmail.com> wrote:

> 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)
>



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


More information about the scikit-image mailing list