Posted by
gankaku on
URL: http://imagej.273.s1.nabble.com/setBatchMode-true-within-a-plugin-tp5020119p5020125.html
Dear Philippe,
I assume you still want to work with the image opened just in a hidden way.
So, you could include the following:
ImagePlus impToHide = WindowManager.getCurrentImage();
impToHide.getWindow().setVisible(false);
potentially not very elegant but works.
Or you can look into the code for the function you want to use and check if
you can avoid the GUI bound IJ.run(...); command by directly calling the
methods.
regards,
Jan
2018-02-16 11:44 GMT+01:00 Philippe CARL <
[hidden email]>:
> Dear all,
>
> Within a plugin, I would like to use something similar to the macro
> "setBatchMode(true)" feature.
>
> So when within this plugin I don’t want to show a given picture, I just
> need
> to not write imp.show() for this given picture (with imp being the
> ImagePlus
> corresponding to the given picture).
>
> But how could I prevent to show a picture when it is displayed as a result
> by another plugin (i.e. a second plugin) which has been launched by an
> "IJ.run" (from the first plugin)?
>
> I thank you very much in advance for your help and thoughts on this issue.
>
> My best regards,
>
> Philippe
>
>
>
> Philippe CARL
>
> Laboratoire de Bioimagerie et Pathologies
>
> UMR 7021 CNRS - Université de Strasbourg
>
> Faculté de Pharmacie
>
> 74 route du Rhin
>
> 67401 ILLKIRCH
>
> Tel : +33(0)3 68 85 41 84
>
>
> --
> ImageJ mailing list:
http://imagej.nih.gov/ij/list.html>
--
CEO: Dr. Jan Brocher
phone: +49 (0)176 705 746 81
e-mail:
[hidden email]
info:
[hidden email]
inquiries:
[hidden email]
web: www.biovoxxel.de
--
ImageJ mailing list:
http://imagej.nih.gov/ij/list.html