Reading ROI manager

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Reading ROI manager

rabih assaf-2
Hello,
Is there a macro or plugin or.... to read  a list of ROIs one by one from a ROI manager.
Thanks in advance    
--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html
Reply | Threaded
Open this post in threaded view
|

Re: Reading ROI manager

gankaku
Hi rabih,

short option to your question:

//macro start----------------

for(i=0; i<roiManager("count"); i++) {
   roiManager("select", i);
   //add here what should be done after the roi is selected
}
//macro end------------------


if you want to measure the pixels and other parameters inside each ROI the
simple command:

roiManager("Measure");

is normally sufficient to cycle through the ROIS and run a measurement
according to what is set active in >Analyze >Set Measurement.
For images with multiple slices, where each ROI should be measured in each
slice you will need to use the "Multi Measure" command of the ROI Manager
instead.

cheers,
Jan

2015-04-01 11:22 GMT+02:00 rabih assaf <[hidden email]>:

> Hello,
> Is there a macro or plugin or.... to read  a list of ROIs one by one from
> a ROI manager.
> Thanks in advance
> --
> ImageJ mailing list: http://imagej.nih.gov/ij/list.html
>



--

CEO: Dr. rer. nat. Jan Brocher
phone:  +49 (0)6234 917 03 39
mobile: +49 (0)176 705 746 81
e-mail: [hidden email]
info: [hidden email]
inquiries: [hidden email]
web: www.biovoxxel.de

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