Algorithm to 'walk' along a line from an endpoint by N pixels

Stéfan van der Walt stefan at sun.ac.za
Fri Jun 28 12:51:24 EDT 2013


Hi Robin

On Fri, Jun 28, 2013 at 11:26 AM, Robin Wilson
<r.t.wilson.bak at googlemail.com> wrote:
> Thanks for the really quick reply. I'm not sure how I can use the label
> function to do what I want. I have the image shown in the numpy array below:
>
> array([[0, 0, 1, 1, 0],
>        [0, 0, 1, 0, 0],
>        [0, 1, 1, 0, 0],
>        [0, X, 0, 0, 0],
>        [0, 0, 0, 0, 0]])

Right, so the label function will just identify the pixels, and then
perhaps you can do something like this:

http://stackoverflow.com/questions/8686926/python-image-processing-help-needed-for-corner-detection-in-preferably-pil-or

Stéfan



More information about the scikit-image mailing list