Login  Register

Re: ROI questions...

Posted by Wayne Rasband on Jun 23, 2006; 3:16pm
URL: http://imagej.273.s1.nabble.com/Basic-ROI-questions-tp3702395p3702403.html

> In essence, at each 'processing' point in my macro I want to store
> (not necessarily save) the result (ROI, image, etc) which can be
> called when ANDing, etc later in my macro. So for example, if I:
>
> doWand(getResult("XStart",index), getResult("YStart",index));
>
> I want to store that ROI as a variable which can be called later
> in my macro for subsequent processing/saving. I've searched
> the archives for an answer to no avail...

Save the ROIs in the ROI Manager. Here are some example macros that do
this:

       http://rsb.info.nih.gov/ij/macros/RoiManagerMacros.txt
       http://rsb.info.nih.gov/ij/macros/ROI_Manager_Stack_Demo.txt
       http://rsb.info.nih.gov/ij/macros/RoiManagerAddParticles.txt

The ROI Manager macro functions are described at:

     
http://rsb.info.nih.gov/ij/developer/macro/functions.html#roiManager

-wayne