Dear all,
Within a plugin, I would like to use something similar to the macro "setBatchMode(true)" feature. So when within this plugin I dont 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 |
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 |
In reply to this post by CARL Philippe (LBP)
Dear Jan and Jérôme,
Thanks a lot for your suggestions. Following them, I will create new methods within the "second" plugins returning back the needed ImagePlus and that I will be calling directly.Have a nice week-end, Philippe Le Vendredi 16 Février 2018 17:08 CET, BioVoxxel <[hidden email]> a écrit: > 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 -- ImageJ mailing list: http://imagej.nih.gov/ij/list.html |
Free forum by Nabble | Edit this page |