Posted by
Herbie-3 on
URL: http://imagej.273.s1.nabble.com/Specific-color-channel-to-retrieve-from-an-image-in-a-plugin-tp5004950p5005143.html
Thanks Gabriel!
The link contains interesting hints.
It seems as if a modification of the called plugin(2) is necessary.
I really wonder how the macro-BatchMode does the trick. I didn't find
the relevant Java source code yet...
If it is possible with a macro, it should be possible with a plugin but
perhaps I'm unaware of some crucial obstacles!
Thanks again and have a nice weekend
Herbie
__________________________________________
On 11.10.13 21:54, Gabriel Landini wrote:
>> 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_Guidelines>
> That 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>
--
ImageJ mailing list:
http://imagej.nih.gov/ij/list.html