Login  Register

Re: question about straighten ROI

Posted by Rasband, Wayne (NIH/NIMH) [E] on Nov 15, 2010; 9:57pm
URL: http://imagej.273.s1.nabble.com/question-about-straighten-ROI-tp3686416p3686417.html

On Nov 14, 2010, at 2:20 AM, Aryeh Weiss wrote:

> If I create a segmented line ROI (splined or not) ,and then use
> edit>selection>straighten to obtain a mapping to a straight line,
> how can I map the coordinates of the resulting straight line to the
> segmented ROI from which it was created?
>
> I know that I can get the points that comprise the ROI, and calculate
> the distances, but I was wondering if there is something built in
> already that does this.

You can call

    run("Fit Spline", "straighten");

to convert the line to one that has points spaced one pixel apart. These points map to the columns in the image generated by the Edit>Selection>Straighten command.

-wayne