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: