Error executing plot_circular_hough_transform.py

Tony Yu tsyu80 at gmail.com
Fri Jul 26 20:40:50 EDT 2013


On Jul 26, 2013 8:52 AM, "Stéfan van der Walt" <stefan at sun.ac.za> wrote:
>
> Hi Ravi
>
> On Fri, Jul 26, 2013 at 3:13 PM, Ravi Prakash <praks.putchala at gmail.com>
wrote:
> > Traceback (most recent call last):
> >   File "plot_circular_hough_transform.py", line 69, in <module>
> >     image[cy, cx] = (220, 20, 20)
> > IndexError: index 102 is out of bounds for axis 0 with size 95
> >
> > I am at version skimage 0.8.2, Python 2.7.2+,  os: Linux Mint 12 Lisa.
>
> Could you try with the latest version from GitHub?  It might have been
> a bug in 0.8.2.
>
> Stéfan
>
> --

Just to expand on Stefan's reply: the old implementation (0.8) searched for
any part of the circle in the image, so the center could as much as "r"
outside the image. You can convert the 0.8 result to the 0.9 result with

hough_result = hough_result[r:-r, r:-r]

Best,
Tony

> You received this message because you are subscribed to the Google Groups
"scikit-image" group.
> To unsubscribe from this group and stop receiving emails from it, send an
email to scikit-image+unsubscribe at googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/scikit-image/attachments/20130726/6e5fb6b8/attachment.html>


More information about the scikit-image mailing list