The openImage command displays the image

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

The openImage command displays the image

Avital Steinberg
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
Reply | Threaded
Open this post in threaded view
|

Re: The openImage command displays the image

Michael Schmid
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
Reply | Threaded
Open this post in threaded view
|

Re: The openImage command displays the image

Avital Steinberg
Hi Michael,
I kept rearranging my code in order to understand which image is displayed,
and it's always the last image. Only the last image is displayed, and
scrambling the images doesn't change this fact. So it's probably not
related to the image format.

Thanks,
Avital

On Tue, Nov 24, 2015 at 4:35 PM, Michael Schmid <[hidden email]>
wrote:

> 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
>

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html
Reply | Threaded
Open this post in threaded view
|

Re: The openImage command displays the image

Herbie
Avital,

"Bio-Formats" is a plugin.

<http://www.openmicroscopy.org/site/support/bio-formats5.1/>

One may use "Bio-Formats" instead of ImageJ's proper i/o-mechanism.

HTH

Herbie

::::::::::::::::::::::::::::::::::::::::::::::
Am 24.11.15 um 15:42 schrieb Avital Steinberg:

> Hi Michael,
> I kept rearranging my code in order to understand which image is displayed,
> and it's always the last image. Only the last image is displayed, and
> scrambling the images doesn't change this fact. So it's probably not
> related to the image format.
>
> Thanks,
> Avital
>
> On Tue, Nov 24, 2015 at 4:35 PM, Michael Schmid <[hidden email]>
> wrote:
>
>> 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
>>
>
> --
> ImageJ mailing list: http://imagej.nih.gov/ij/list.html
>

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