On Mar 26, 2014, at 6:47 AM, maupertius wrote:
> I've made a macro that saves the coordinates of a freeform that was drawn by
> the user on a given image. To do that, I use the command:
>
> Roi.getCoordinates(x, y);
>
> I then save my coordinates on a text file. Is there a way to restore my
> freeform by looking at the coordinates on this text file?
It is easier to restore a selection that has been saved as a .roi file. For example, use
path = getDirectory("home")+"test.roi";
saveAs("Selection", path);
to save the current selection in your home directory and use open(path) to restore it.
-wayne
--
> View this message in context:
http://imagej.1557.x6.nabble.com/Restore-a-ROI-from-coordinate-data-tp5007086.html> Sent from the ImageJ mailing list archive at Nabble.com.
--
ImageJ mailing list:
http://imagej.nih.gov/ij/list.html