setBatchMode(true) in java?

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

setBatchMode(true) in java?

donny008
Hello

i am trying to write a java plugin for imagej. and with my previous know how
of working with macros i would like to use setBatchMode(true). but even
inspite of detailed search i was not able to figure how to use setBatchMode
in java. what could be the possibility to avoid displaying the images within
my java plugin. could someone guide on this issue.


thnks


--
Donny George
Reply | Threaded
Open this post in threaded view
|

Re: setBatchMode(true) in java?

dscho
Hi,

On Sun, 1 Aug 2010, Donny George wrote:

> i am trying to write a java plugin for imagej. and with my previous know
> how of working with macros i would like to use setBatchMode(true). but
> even inspite of detailed search i was not able to figure how to use
> setBatchMode in java. what could be the possibility to avoid displaying
> the images within my java plugin. could someone guide on this issue.

If you use the API properly, you do not need to set batch mode. Remember:
batch mode only has effects on macros, and if you set batch mode, it is
set globally, i.e. for _all_ currently-running threads.

What you want to do is probably look at the source code of the many
plugins available, and see how others use the API (avoiding to display the
intermediate images).

Ciao,
Johannes