http://imagej.273.s1.nabble.com/How-to-permanently-add-selections-to-images-tp5017523p5017526.html
I think overlays are made for this.
I you save the image as .tif, the overlay is saved with it.
flattening it.
> Hi all,
>
> I'm having some issues making selections permanent on images. The
> idea is that the macro makes various selections, then at the end an
> image should be produced that has those selections "flattened" on.
> This image is purely to show the user where the selections are and
> what has been measured, it doesn't have to be the raw image its
> merely representative.
>
> I have tried using the run("Draw") option but the lines are quite
> thick & blocky and don't seem to be able to make them thinner. I
> have also tried roiManager("deselect") which is equivalent to
> selecting all ROI's in the manager then using run("Flatten"); i get a
> flattened image but the ROI's are not present on it. This is what i
> tried:
>
> roiManager("show all without labels"); roiManager("deselect");
> run("From ROI Manager"); run("Flatten");
>
> Is there an alternative? It would be nice if you could simply show
> all ROI's and then if there was a function to create an image as it
> is currently displayed-like a screenshot. I assumed this is what
> run("Flatten") does?
>
> Thanks for the help,
>
> Matt
>
>
> -- Matt Pearson Microscopy Facility MRC Human Genetics Unit Institute
> of Genetics and Molecular Medicine (IGMM) University of Edinburgh
> Crewe Road EH4 2XU
>
>
>
>
>
> -- ImageJ mailing list:
http://imagej.nih.gov/ij/list.html>
>
>
> The University of Edinburgh is a charitable body, registered in
> Scotland, with registration number SC005336.
>
> -- ImageJ mailing list:
http://imagej.nih.gov/ij/list.html>