Posted by
lechristophe on
Jul 12, 2008; 4:41pm
URL: http://imagej.273.s1.nabble.com/Get-continuous-pixel-coordinates-from-a-line-ROI-tp3688036p3688044.html
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.txtHope it will be usefull for others,
Christophe Leterrier
On Sat, Jul 12, 2008 at 15:52, Christophe Leterrier
<
[hidden email]> wrote:
> Dear all,
>
> I know this subject has been discussed before, but I couldn't find a
> good answer to this problem. I'm working on a macro tool that will
> replicate the "Straigthen" plugin
> (
http://rsbweb.nih.gov/ij/plugins/straighten.html). The macro starts
> with a spline fitting of the line ROI, then retrieve all the ROI
> coordinates using getSelectionCoordinates(). Unfortunately, this
> function only returns vertices, and not all pixel coordinates
> (continuous) along the ROI. Before implementing a loop to interpolate
> the missing points between vertices, I wanted to ask if someone has a
> more elegant solution...
>
> Thanks a lot,
>
> Christophe
>