I have two circular rois in the ROi manager. One is inside the other making a donut.
How can i make a single roi out of these 2 rois which represents the doh (excluding the hole)? I am sure this is easy but i cannot get it to happen Thanks in advance as always. Andy |
Try the roiManager("XOR") command.
Here it is in an example script: roiManager("reset") newImage("Untitled", "8-bit Ramp", 400, 400, 1); makeOval(100, 100, 200, 200); roiManager("Add"); makeOval(175, 175, 50, 50); roiManager("Add"); roiManager("XOR"); run("Clear", "slice"); Regards -- Michael Ellis On 4 May 2011, at 09:30, flettster wrote: > I have two circular rois in the ROi manager. One is inside the other making a > donut. > > How can i make a single roi out of these 2 rois which represents the doh > (excluding the hole)? > > I am sure this is easy but i cannot get it to happen > > Thanks in advance as always. > > Andy > > -- > View this message in context: http://imagej.588099.n2.nabble.com/ROI-in-ROI-tp6330051p6330051.html > Sent from the ImageJ mailing list archive at Nabble.com. --- Important Information---------------------- Our email address has changed. Please update your address books with '[hidden email]' We will be unveiling SmartCapture4 at the International Chromosome Conference. We hope you will be able to join and we're offering a 10% reduction the conference registration fee. Contact us for details. Michael Ellis Managing Director Digital Scientific UK Ltd. http://www.dsuk.biz [hidden email] tel: +44(0)1223 329993 fax: +44(0)1223 370040 Sheraton House Castle Park Cambridge CB3 0AX The contents of this e-mail may be privileged and are confidential. It may not be disclosed to or used by anyone other than the addressee(s), nor copied in any way. If received in error, please advise the sender and delete it from your system. |
In reply to this post by flettster
Andy,
you may consult the ji-manual, section "ROI Manager", subsection "More". >I have two circular rois in the ROi manager. One is inside the other making a >donut. > >How can i make a single roi out of these 2 rois which represents the doh >(excluding the hole)? > >I am sure this is easy but i cannot get it to happen > >Thanks in advance as always. > >Andy > >-- HTH Herbie |
In reply to this post by Michael P Ellis
That is excellent. It works
Now. I have read elsewhere on here that it is not possible to select 2 ROIS in the ROI manager using the shift key down function in a macro I would like to be able to select the first 2 rois and perform the XOR command from within the macro. Is that possible? Andy |
Andy,
nice to hear that it works. >That is excellent. It works > >Now. I have read elsewhere on here that it is not possible to select 2 ROIS >in the ROI manager using the shift key down function in a macro Works here with ij_1-45g.jar. >I would like to be able to select the first 2 rois and perform the XOR >command from within the macro. Is that possible? Yes. roiManager("XOR"); >Andy You may study the macro functions manual at: <http://rsb.info.nih.gov/ij/developer/macro/functions.html> HTH Herbie |
Thanks
I have read the manual. It is very helpful but I still run into problems! I cannot get it to work. here is my code: roiManager("Select", 0); setKeyDown("shift"); roiManager("Select", 1); roiManager("XOR"); i get an error saying that more than one item needs to be selected or none. (ihave updated to latest version of imagej) Thanks Andy |
Hi Andy
Would this solve your problem? roiManager("Select", 0); setKeyDown("alt"); roiManager("Select", 1); Kees Dr Ir K.R. Straatman Senior Experimental Officer Centre for Core Biotechnology Services College of Medicine, Biological Sciences and Psychology http://www.le.ac.uk/biochem/microscopy/home.html ImageJ workshop 21 and 22 July 2011 see: http://www.le.ac.uk/biochem/microscopy/ImageJ2011.html -----Original Message----- From: ImageJ Interest Group [mailto:[hidden email]] On Behalf Of flettster Sent: 04 May 2011 23:33 To: [hidden email] Subject: Re: ROI in ROI? Thanks I have read the manual. It is very helpful but I still run into problems! I cannot get it to work. here is my code: roiManager("Select", 0); setKeyDown("shift"); roiManager("Select", 1); roiManager("XOR"); i get an error saying that more than one item needs to be selected or none. (ihave updated to latest version of imagej) Thanks Andy -- View this message in context: http://imagej.588099.n2.nabble.com/ROI-in-ROI-tp6330051p6332601.html Sent from the ImageJ mailing list archive at Nabble.com. |
Free forum by Nabble | Edit this page |