Login  Register

Re: Get continuous pixel coordinates from a line ROI

Posted by Gabriel Landini on Jul 13, 2008; 9:40am
URL: http://imagej.273.s1.nabble.com/Get-continuous-pixel-coordinates-from-a-line-ROI-tp3688036p3688045.html

On Saturday 12 July 2008, Christophe Leterrier wrote:

> I modified a macro proposed by Michael Cammer that was quite
> complicated
> (http://www.nabble.com/Re%3A-List-all-pixel-coordinates-in-ROI-p529148.html
>). Thanks to Chris Coulon who proposed a slightly different strategy, that
> is just get the distance between each vertices and increment with subpixel
> distance between these two points, I managed to get a simpler second
> version wich I append here :
>
> https://www.bio.espci.fr/upload/files/All_Coordinates.txt
>
> Hope it will be usefull for others,

I am not sure the reason, but I think this may not be working as intended:
1. the line it gets shorter by 1 each time the macro runs,
2. for diagonal lines, some points are repeated (usually the 2nd point from
the start is 2 points overlapping rather than 1).

Can anybody confirm this? It is easier to try this with short lines and the
image zoomed in).
Cheers

Gabriel