Login  Register

Re: How to permanently add selections to images

Posted by Jeremy Adler-2 on Nov 02, 2016; 10:01am
URL: http://imagej.273.s1.nabble.com/How-to-permanently-add-selections-to-images-tp5017523p5017530.html

Select the ROIs you want to combine/show in the ROI Manager
Then from the ROI manager
More/Or(combine)
This creates a single selection that includes the selections you chose.

To make the selection part of the image
Use Overlay
Add the selection as an overlay
Then flatten the image - the selection is now embedded in the pixels.

By adding your initial selections one by one (using Overlay) you could colour them differently

-----Original Message-----
From: ImageJ Interest Group [mailto:[hidden email]] On Behalf Of PEARSON Matthew
Sent: den 2 november 2016 10:34
To: [hidden email]
Subject: How to permanently add selections to images

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

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