How can i copy a ROI and use it in the same image for different locations. Also, is it possible to have the ROI saved in the image as points? For ex: i have marked 12 ROI of same dimensions and i also want to save the location markups.
|
Dear Chinmaya,
I'm not really sure whether I understand correctly your problem and request. Nevertheless if I'm not mistaken you can find all what you are looking for within the RoiManager functionalities. And you can add a single ROI to the RoiManager with Ctrl + T. My best regards, Philippe Philippe CARL Laboratoire de Biophotonique et Pharmacologie UMR 7213 CNRS - Université de Strasbourg Faculté de Pharmacie 74 route du Rhin 67401 ILLKIRCH Tel : +33(0)3 68 85 41 84 -----Message d'origine----- De : ImageJ Interest Group [mailto:[hidden email]] De la part de csadangi Envoyé : lundi 20 octobre 2014 15:53 À : [hidden email] Objet : How can i copy ROI in imagej? How can i copy a ROI and use it in the same image for different locations. Also, is it possible to have the ROI saved in the image as points? For ex: i have marked 12 ROI of same dimensions and i also want to save the location markups. ----- ---- Chinmaya Medical University Innsbruck Innsbruck Austria -- View this message in context: http://imagej.1557.x6.nabble.com/How-can-i-copy-ROI-in-imagej-tp5010118.html Sent from the ImageJ mailing list archive at Nabble.com. -- ImageJ mailing list: http://imagej.nih.gov/ij/list.html -- ImageJ mailing list: http://imagej.nih.gov/ij/list.html |
In reply to this post by csadangi
Hi Chinmaya,
you can save a ROI to the ROI manager using the 't' key (or CTRL-t; on the Mac use CMD-t where CMD is the cloverleaf key). Then drag the ROI to another location: Move the cursor over the ROI area, the cursor becomes an arrow when it can drag a ROI. Then add the ROI at the new location to the ROI Manager, etc. With "Show all" in the ROI manager selected, if you save the image as TIFF or ZIP, it can store all the ROIs as an overlay. After loading the image from disk, Image>Overlay>To ROI Manager converts them into individual ROIs again. Michael ________________________________________________________________ On Oct 20, 2014, at 15:52, csadangi wrote: > How can i copy a ROI and use it in the same image for different locations. > Also, is it possible to have the ROI saved in the image as points? For ex: i > have marked 12 ROI of same dimensions and i also want to save the location > markups. > > > > > > ----- > ---- > Chinmaya > Medical University Innsbruck > Innsbruck > Austria > -- > View this message in context: http://imagej.1557.x6.nabble.com/How-can-i-copy-ROI-in-imagej-tp5010118.html > Sent from the ImageJ mailing list archive at Nabble.com. > > -- > ImageJ mailing list: http://imagej.nih.gov/ij/list.html -- ImageJ mailing list: http://imagej.nih.gov/ij/list.html |
In reply to this post by CARL Philippe (LBP)
Dear Phillipe
Thanks a lot for your message. I still couldn't find how to copy a ROI and use it in different images or the same image (but different locations). |
Hi Chinmaya,
Copy a ROI from one image to another: activate the image with the desired ROI, then the image you want to put that ROI into, and hit Ctrl+Shift+E. This triggers the Edit>Selection>Restore Selection that puts the selection into the second image. To automate this, switch on macro recording: selectWindow("image1.tif"); makeRectangle(132, 128, 384, 220); selectWindow("image2.tif"); run("Restore Selection"); As you probably know, you can use the ROI manager to store ROIs, e.g., makeRectangle(244, 200, 476, 308); // or makeOval(x-radius, y-radius, X, Y); roiManager("Add"); run("Add to Manager"); // resize selection: makeRectangle(640, 348, 604, 508); roiManager("Add"); run("Add to Manager"); // move selection: makeRectangle(844, 1704, 604, 508); Of course, you have to provide the new coordinates/dimensions. Hope this helps. Mark Mark Chopping, Ph.D. Montclair State University ----- �> Date: Mon, 20 Oct 2014 07:29:50 -0700 > From: csadangi <[hidden email]> > Reply-To: [hidden email] > To: [hidden email] > Subject: Re: How can i copy ROI in imagej? > > Dear Phillipe > > Thanks a lot for your message. > > I still couldn't find how to copy a ROI and use it in different images or > the same image (but different locations). > > > > ----- > ---- > Chinmaya > Medical University Innsbruck > Innsbruck > Austria > -- > View this message in context: http://imagej.1557.x6.nabble.com/How-can-i-copy-ROI-in-imagej-tp5010118p5010122.html > Sent from the ImageJ mailing list archive at Nabble.com. > > -- > ImageJ mailing list: http://imagej.nih.gov/ij/list.html > ImageJ mailing list: http://imagej.nih.gov/ij/list.html |
Free forum by Nabble | Edit this page |