Re: BatchMode for Plugins ?
Posted by
Gabriel Landini on
URL: http://imagej.273.s1.nabble.com/Specific-color-channel-to-retrieve-from-an-image-in-a-plugin-tp5004950p5005141.html
> The situation is that I'm calling a plugin(2) from a plugin(1).
> Plugin(2) generates a modified image(2) from an input image(1). Then
> plugin(1) does some evaluation on image(2) and closes it.
>
> Is there a way to avoid showing image(2) without modifying plugin(2)?
Hi Herbie
I think this depends on the plugins, some you can and some you cannot.
For example my Domes plugin calls the GreyscaleReconstruct plugin without the
latter showing the result.
If I recall correct it was Albert Cardona who suggested some guidelines to
construct plugins that would allow to do this easily.
You will probably have to modify plugin2 to call the exec method of plugin1
(if this exists) while making sure it returns an object (i.e. an image)
without showing it. The image is showed elsewhere in plugin1 when running on
its own, after the exec method is done.
Here this is explained with an example:
http://fiji.sc/wiki/index.php/PlugIn_Design_GuidelinesThat is the way I have written some of my plugins and I can say that indeed
simplifies things when one starts calling one plugin from another.
Cheers
Gabriel
--
ImageJ mailing list:
http://imagej.nih.gov/ij/list.html