Login  Register

Get continuous pixel coordinates from a line ROI

Posted by lechristophe on Jul 12, 2008; 1:52pm
URL: http://imagej.273.s1.nabble.com/Get-continuous-pixel-coordinates-from-a-line-ROI-tp3688036.html

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