Login  Register

Re: Get continuous pixel coordinates from a line ROI

Posted by lechristophe on Jul 13, 2008; 11:25am
URL: http://imagej.273.s1.nabble.com/Get-continuous-pixel-coordinates-from-a-line-ROI-tp3688036p3688046.html

Damn, you're right !
For the shrinking line, the problem was that the macro doesn't handle
the last point (corrected).
For the duplicate points, I had to revert to Michael strategy
(although I'll also try just to add a test for creation of the same
point for Chris strategy). The new version is here :

https://www.bio.espci.fr/upload/files/All_Coordinates2.txt



Christophe


On Sun, Jul 13, 2008 at 11:40, Gabriel Landini <[hidden email]> wrote:

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