Login  Register

Re: Interacting with image in BatchMode

Posted by dpoburko on Jun 17, 2010; 12:32am
URL: http://imagej.273.s1.nabble.com/Interacting-with-image-in-BatchMode-tp3687909p3687912.html

setBatchMode(false) won't show any images that were created while in
Batch mode. But setBatchMode("exit and display") will probably let you
do what you want.

Cheers,
Damon

On 6/16/2010 6:38 AM, Thomas P wrote:

> Thanks for the quick response. The reason why I haven't been doing as you
> said is partly that the documentation states that setBatchMode(true) should
> only be called once in each macro, and partly because the instance where
> user interaction is required is inside a function.
>
> When I set BatchMode to false around the part where user interaction is
> required it seems as if all but the selected windows are closed (or removed
> from memory as they have never been open in batch mode) as the subsequent
> calls to other imageID returns an error - any way to fix this?
>
> Thanks for the suggestion for the ROI manager. I will check it out though it
> is outside the scope of my course...
>