Finicky ROI manager

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

Finicky ROI manager

macroexec
I was wondering if anyone else has been having problems with roimanager commands suddenly acting weird. I am using roiManager("Count"), and it gives me 0 even though the manager itself has a number of elements. What is confounding is, this problem came up suddenly. It was working just fine yesterday. On the same token, roiManager("Reset") has stopped working also. These functions are being called from a batchmode program, if it helps debug the issue.

Thank you very much for all the help!
Reply | Threaded
Open this post in threaded view
|

Re: Finicky ROI manager

Wayne Rasband
On May 8, 2009, at 11:45 AM, macroexec wrote:

> I was wondering if anyone else has been having problems with roimanager
> commands suddenly acting weird. I am using roiManager("Count"), and it
> gives
> me 0 even though the manager itself has a number of elements. What is
> confounding is, this problem came up suddenly. It was working just fine
> yesterday. On the same token, roiManager("Reset") has stopped
> working also. These functions are being called from a batchmode
> program, if it helps debug the issue.

The macro needs to make sure the ROI Manager is closed. It runs faster
and more reliably in batch mode macros if it is not displayed. Here are
two macros that demonstrate how to use the ROI Manager in a batch mode
macro:

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

-wayne