Always open TIFF with Virtual Stack

fiji
scifio
Tags: #<Tag:0x00007fa306d81958> #<Tag:0x00007fa306d81818>

#1

Hi,

I have been using SCIFIO to open my images lately and I find that sometimes a TIFF will open as a virtual stack and sometimes it does not. ImageJ will usually stick to one of the two methods until something “fixes” it. I have not been able to recognize any patterns here, but perhaps a setting is getting reset and ImageJ isn’t using SCIFIO temporarily?

I would really like ImageJ to always use a virtual stack because its faster and prevents out of memory situations. Is there any way to make ImageJ always default to opening the TIFF as a virtual stack?

Thanks.


#2

Just to clarify, which flavor of ImageJ are you using? I am assuming it is either ImageJ2 or Fiji. In that case, have you tried checking the setting mentioned here? If you are using ImageJ1, you can just drag’n’drop it on the “More Tools” menu to open it as a virtual stack.


#3

I should have been more clear. I am using FIJI and it is fully updated and I am using Linux. After looking at the issue more carefully I think that the problem lies in the single instance listener. When I click on a TIFF in my file browser it opens FIJI and opens as a virtual stack. If I then drag and drop another TIFF onto the main FIJI window it again opens as a virtual stack, but when I click on another TIFF in my browser it actually opens twice, once as a regular stack (not virtual) in the same FIJI instance and once more as a regular stack in a new FIJI instance. Strangely the second FIJI instance does not show the main window. I have verified the second stack opens in a separate instance by closing the original FIJI main window and it only closes one of the images. Also I notices the window icon of the first image is FIJI’s, but the window icon of the second image is the standard Java icon.


#4

That is definitely an interesting situation. Have you tried drag and drop the third image?


#5

I just tested with a third image. Dragging and Dropping opens it as a virtual stack. Opening it from the browser repeats the same behavior (two images open, one in same FIJI instance, one in a totally new Java instance).

The previously described behavior is for TIFF stacks of multiple images. If the TIFF file contains just one image when opening multiple files from the browser it opens the first image as a virtual image (shows (V) in titlebar), and the second and onwards as regular images, but unlike in the TIFF stack case it doesn’t open the image twice in a separate java instance.

I have also checked that in the separate java instance the typical FIJI keyboard shortcuts do not work (like Ctrl+Shift+C for brightness and contrast).


#6

Maybe @Wayne or @Herbie have an idea of what is going on.