Login  Register

Suggestion: Get Spline anchors

Posted by vischer on Jan 28, 2015; 11:40am
URL: http://imagej.273.s1.nabble.com/Suggestion-Get-Spline-anchors-tp5011346.html

The macro below creates a smoothed segmented line, using the 4 points as anchors (or handles).

        makeLine(76,222,150,70,357,179,419,146);
        run("Fit Spline");

After editing the anchor points, I cannot retrieve them anymore.
As there is no "Unspline" command, it would be useful if there were commands like:

        Roi.getAnchors(xx, yy)
        Roi.setAnchors(xx, yy)

Then not only the mouse, but also a macro could read and move the handles. And the path could be stored in a much shorter array.

Norbert
--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html