Hi list,
Is there any way to automatically delete with a MACRO multiple ROIs from ROI manager based on the data of the Results table (like area or levels of gray)? I've been looking for a function for MACRO that does that but I can't find anything. Thanks in advance! |
We have done something similar by measuring each ROI, getting the results, testing the relevant results with if statements, and then renaming the ROIs (you could delete).
You can measure all the ROIs and the iterate through them and the results table or you can measure and judge in one step. _________________________________________ Michael Cammer, Optical Microscopy Specialist http://ocs.med.nyu.edu/microscopy http://microscopynotes.com/ Cell: (914) 309-3270 ________________________________________ From: ImageJ Interest Group [[hidden email]] on behalf of MichBLOSUM [[hidden email]] Sent: Wednesday, May 11, 2016 6:13 PM To: [hidden email] Subject: Delete ROIs from ROI manager based on measurement results Hi list, Is there any way to automatically delete with a MACRO multiple ROIs from ROI manager based on the data of the Results table (like area or levels of gray)? I've been looking for a function for MACRO that does that but I can't find anything. Thanks in advance! -- View this message in context: https://urldefense.proofpoint.com/v2/url?u=http-3A__imagej.1557.x6.nabble.com_Delete-2DROIs-2Dfrom-2DROI-2Dmanager-2Dbased-2Don-2Dmeasurement-2Dresults-2Dtp5016408.html&d=CwICAg&c=j5oPpO0eBH1iio48DtsedbOBGmuw5jHLjgvtN2r4ehE&r=oU_05LztNstAydlbm5L5GDu_vAdjXk3frDLx_CqKkuo&m=UxdOcVk-NaLA9TKetLRk3KQVBRX-jO--gGTy2cnZCL8&s=xpMvflSx5oM1bMSbJUhW_LapFAvNtmkFnkmGxYdPT00&e= Sent from the ImageJ mailing list archive at Nabble.com. -- ImageJ mailing list: https://urldefense.proofpoint.com/v2/url?u=http-3A__imagej.nih.gov_ij_list.html&d=CwICAg&c=j5oPpO0eBH1iio48DtsedbOBGmuw5jHLjgvtN2r4ehE&r=oU_05LztNstAydlbm5L5GDu_vAdjXk3frDLx_CqKkuo&m=UxdOcVk-NaLA9TKetLRk3KQVBRX-jO--gGTy2cnZCL8&s=1MY7Zz_bdHSublku952IWMLWRYTRWV13kJQo2FFAwhs&e= ------------------------------------------------------------ This email message, including any attachments, is for the sole use of the intended recipient(s) and may contain information that is proprietary, confidential, and exempt from disclosure under applicable law. Any unauthorized review, use, disclosure, or distribution is prohibited. If you have received this email in error please notify the sender by return email and delete the original message. Please note, the recipient should check this email and any attachments for the presence of viruses. The organization accepts no liability for any damage caused by any virus transmitted by this email. ================================= -- ImageJ mailing list: http://imagej.nih.gov/ij/list.html |
That sounds pretty much like what I want to do :)
Can you show me how to do it and how do I have to write it in a MACRO? Thank you. -- View this message in context: http://imagej.1557.x6.nabble.com/Delete-ROIs-from-ROI-manager-based-on-measurement-results-tp5016408p5016410.html Sent from the ImageJ mailing list archive at Nabble.com. -- ImageJ mailing list: http://imagej.nih.gov/ij/list.html |
In reply to this post by Cammer, Michael
I have some code on my website (http://www2.le.ac.uk/colleges/medbiopsych/facilities-and-services/cbs/lite/aif/software-1/imagej-macros) that deletes ROIs from the image, the ROI manager and results table when the user left mouse-click on a ROI name in the image. I have not recently checked if everything still works and have no time at the moent to look at it but I would think it should be possible to adapt this code to use data from the results table instead of the mouse-click.
Kees Dr Ir K.R. Straatman Senior Experimental Officer Advanced Imaging Facility Centre for Core Biotechnology Services University of Leicester http://www2.le.ac.uk/colleges/medbiopsych/facilities-and-services/cbs/lite/aif -----Original Message----- From: ImageJ Interest Group [mailto:[hidden email]] On Behalf Of Cammer, Michael Sent: 12 May 2016 00:20 To: [hidden email] Subject: Re: Delete ROIs from ROI manager based on measurement results We have done something similar by measuring each ROI, getting the results, testing the relevant results with if statements, and then renaming the ROIs (you could delete). You can measure all the ROIs and the iterate through them and the results table or you can measure and judge in one step. _________________________________________ Michael Cammer, Optical Microscopy Specialist http://ocs.med.nyu.edu/microscopy http://microscopynotes.com/ Cell: (914) 309-3270 ________________________________________ From: ImageJ Interest Group [[hidden email]] on behalf of MichBLOSUM [[hidden email]] Sent: Wednesday, May 11, 2016 6:13 PM To: [hidden email] Subject: Delete ROIs from ROI manager based on measurement results Hi list, Is there any way to automatically delete with a MACRO multiple ROIs from ROI manager based on the data of the Results table (like area or levels of gray)? I've been looking for a function for MACRO that does that but I can't find anything. Thanks in advance! -- ImageJ mailing list: http://imagej.nih.gov/ij/list.html |
Thanks!
I'll try to fix it to make it work as I want. But if I can't it makes things easier anyways. :) |
Free forum by Nabble | Edit this page |