Login  Register

Re: The openImage command displays the image

Posted by Michael Schmid on Nov 24, 2015; 2:28pm
URL: http://imagej.273.s1.nabble.com/The-openImage-command-displays-the-image-tp5015016p5015018.html

Hi Avital,

the source code of IJ.openImage says that some plugins (such as Bio-Formats) open and display the image, instead of silently returning a reference to the ImagePlus.

 https://github.com/imagej/imagej1/blob/master/ij/IJ.java#l1642

Maybe, the images that get displayed are opened by Bio-Formats for some reason?

Michael
________________________________________________________________
On Nov 24, 2015, at 14:09, Avital Steinberg wrote:

> Hi,
> I'm using Javascript, and when I use the IJ.openImage(path+filename)
> command, it occasionally displays the image, even though I would like to
> work in batch mode. I had trouble regenerating the bug in a small script,
> so I'm not posting the code. When I was opening a few images in a row, the
> last image opened by the openImage command is displayed.
>
> Does anyone know how to prevent the openImage command from sometimes
> displaying the image?  I wouldn't like it to display it.
>
> Thanks,
> Avital

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html