Re: Macro Language | select all masks from ROI Manager
Posted by
gankaku on
Aug 06, 2013; 3:26pm
URL: http://imagej.273.s1.nabble.com/Macro-Language-select-all-masks-from-ROI-Manager-tp5004323p5004328.html
Hi Rainer,
This might be the answer to your question:
count=roiManager("count");
array=newArray(count);
for(i=0; i<count;i++) {
array[i] = i;
}
roiManager("Select", array);
-----------------------------------------------------------------
A further possibility to do operations on consecutive selections using the ROI manager would be:
{
counts=roiManager("count");
for(i=0; i<counts; i++) {
roiManager("Select", i);
run("....whatever you want to do with the selected item....");
}
}
Hope this addresses your question and helps,
Kind regards,
Jan
P.S. if my last mail reached you forget about it, I didn't read your headline properly.
--
ImageJ mailing list:
http://imagej.nih.gov/ij/list.html