Login  Register

Re: How to permanently add selections to images

Posted by Herbie on Nov 02, 2016; 9:57am
URL: http://imagej.273.s1.nabble.com/How-to-permanently-add-selections-to-images-tp5017523p5017526.html

Good day Matt,

I think overlays are made for this.

If you have your ROIs in the ROI-manager, you may use
Image > Overlay > From ROI Manager

I you save the image as .tif, the overlay is saved with it.

You may show or hide the overlay but you may also make it permanent by
flattening it.

HTH

Herbie

:::::::::::::::::::::::::::::::::::::::::::::
Am 02.11.16 um 10:33 schrieb PEARSON Matthew:

> 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
>

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