Re: xy-coordinates for freehand selection
Posted by Gabriel Landini on Aug 02, 2006; 5:28pm
URL: http://imagej.273.s1.nabble.com/xy-coordinates-for-freehand-selection-tp3701932p3701934.html
On Wednesday 02 August 2006 16:43, Rune Jakobsen wrote:
> Another question - is there a way to save selections onto the image
> (merge the selection into the image) - so that when opened again the
> selection will be visible.
The following is is very ugly :-) and non-standard, but it is better than
nothing:
You can decode the ROI into a string and insert it as metadata of a tiff file.
You then will need another macro that reads the metadata and creates the ROI.
I used a similar method to store LUTs in a stack (so each image has a LUT
associated).
Perhaps the easiest is to save the ROI via the ROI manager with a same name as
the image, so you can process any image and you can derive the name of the
roi straightforwardly.
Cheers
Gabriel