NOTICE! This is a static HTML version of a legacy Fiji BugZilla bug.

The Fiji project now uses GitHub Issues for issue tracking.

Please file all new issues there.

Bug 1033 - Issue with opening 14 bit images
Issue with opening 14 bit images
Status: RESOLVED FIXED
Product: Fiji
Classification: Unclassified
Component: Plugins
unspecified
PC Windows
: P4 normal
Assigned To: ImageJ Bugs Mailing List
Depends on:
Blocks:
 
Reported: 2015-03-23 10:17 CDT by Ann Wheeler
Modified: 2015-04-23 15:20 CDT
5 users (show)

See Also:

Description Ann Wheeler 2015-03-23 10:17:54 CDT
Pretty much all of the images we acquire are 14 bit. However Fiji is opening them as 16 bit unsigned images and autoscaling. The issue is when we are quantifying it is automatically rescaling the images. Seems like Fiji thinks it is very helpful if it re- autoscales the image we just unscaled. 

The workaround is frustrating, in the Brightness and Contrast - Set display range I would like to have an option in the Unsigned 16 bit option for 14 bit images. There appear to be 8, 12, 15 and 16 bit options here but not 14 bit and all of our Coolsnap HQ2's and our Andor xIon EMCCD cameras acquire in the 14 bit range (For the EMCCD cameras this is to do with how NIS handles them). What I have to do is select 16 bit unsigned and then in the 'set option' enter the 14 bit range. EVERY TIME!!! Since I manage a facility of 200 users I'm sure the reader can imagine how popular this is. If this pretty simple tweak could be supported I would be most grateful.

Information about your version of Java:

  os.arch => amd64
  os.name => Windows 7
  os.version => 6.1
  java.version => 1.6.0_24
  java.vendor => Sun Microsystems Inc.
  java.runtime.name => Java(TM) SE Runtime Environment
  java.runtime.version => 1.6.0_24-b07
  java.vm.name => Java HotSpot(TM) 64-Bit Server VM
  java.vm.version => 19.1-b02
  java.vm.vendor => Sun Microsystems Inc.
  java.vm.info => mixed mode
  java.awt.graphicsenv => sun.awt.Win32GraphicsEnvironment
  java.specification.name => Java Platform API Specification
  java.specification.version => 1.6
  sun.cpu.endian => little
  sun.desktop => windows
  file.separator => \

The up-to-date check says: REMIND_LATER

Information relevant to JAVA_HOME related problems:

  JAVA_HOME is set to: \\Mvm-igmm-h213\z$\FIJI-W~1\FIJI-W~1\Fiji.app/java/win64/jdk1.6.0_24//jre
  imagej.dir => \\Mvm-igmm-h213\z$\FIJI-W~1\FIJI-W~1\Fiji.app

Information about the version of each plugin:

Activated update sites:
ImageJ: http://update.imagej.net/ (last check:20150319171059)
Fiji: http://fiji.sc/update/ (last check:20150319202456)
Cookbook: http://sites.imagej.net/Cookbook/ (last check:20150302220629)

Files not up-to-date:
  c3f8675e (OBSOLETE_UNINSTALLED) 20141216163551 jars/Jama.jar
  b6bf3817 (OBSOLETE_UNINSTALLED) 20141216163611 jars/edu_mines_jtk.jar
  986cfcf5 (OBSOLETE_UNINSTALLED) 20141216163621 jars/imglib2-algorithms-2.0.0-beta-26.jar
  ce6460d3 (OBSOLETE_UNINSTALLED) 20141216163621 jars/imglib2-algorithms-gpl-2.0.0-beta-26.jar
  673fae25 (OBSOLETE_UNINSTALLED) 20141216163621 jars/imglib2-algorithms-legacy-2.0.0-beta-26.jar
  51eadb2a (OBSOLETE_UNINSTALLED) 20141216163621 jars/imglib2-meta-2.0.0-beta-26.jar
  25895ad6 (OBSOLETE_UNINSTALLED) 20141216163622 jars/imglib2-ops-2.0.0-beta-26.jar
  8c636e50 (OBSOLETE_UNINSTALLED) 20141216163624 jars/jai_codec.jar
  717dd8e0 (OBSOLETE_UNINSTALLED) 20141216163625 jars/jai_core.jar
  1ad3be0d (LOCAL_ONLY) 20141216163637 jars/jpedalSTD.jar
  f416387c (LOCAL_ONLY) 20150223132413 plugins/SIMcheck-0.9.5.jar
Comment 1 Jan Eglinger 2015-03-23 10:27:46 CDT
Hi Ann,

as a workaround, you can use a one-line macro to prevent you from manually typing the numbers:

  setMinAndMax(0, 16384);

See also the macro functions documentation:
http://rsbweb.nih.gov/ij/developer/macro/functions.html#setMinAndMax

Hope that helps,
Jan
Comment 2 Ann Wheeler 2015-03-23 10:35:05 CDT
Dear Jan

Thanks for the quick response

End users don’t like macro languages in Cell biology imaging facilities. This isn’t a problem I personally have, it is a problem 200 of my end users have that I am raising on their behalf. 

Really we would like the 14 bit option implemented in the dropdown menu for 16 bit unsigned tiffs. Since I’m aware of several facilities worldwide which use Coolsnap HQ2 and other cameras that acquire in 14 bit I’m not sure why this isn’t implemented in the GUI. Particularly as 15 bit, which is a workaround for fixed pattern noise of Flash4 sCMOS cameras, is.

Regards

Ann
Dr Ann Wheeler
Head of Advanced Imaging Resource 
MRC Institute of Genetics and Molecular Medicine
University of Edinburgh
Western General Hospital
Crewe Road
Edinburgh EH4 2XU
E: ann.wheeler@igmm.ed.ac.uk
T: 0131 4678425
W: www.igmm.ac.uk
Comment 3 Mark Hiner 2015-03-23 11:48:23 CDT
Hi Ann,

 If you're comfortable with macros, you may want to incorporate Jan's workaround into a plugin that you could then distribute[1] to your users. This could also be helpful if there are additional pre-processing steps that should always be taken when opening this data, and would allow you to shield your users from writing macro code on their own.

 Also, are you opening your data with File > Open? If you run "Edit > Options > ImageJ2" and check or un-check those boxes is there any difference in how your datasets open?

 Finally, if you use the Bio-Formats importer (File > Open > Bio-Formats) with the "Autoscale" box unchecked, does your data still need to be scaled?

Thanks,
Mark


[1] http://imagej.net/Distribution
Comment 4 Wayne Rasband 2015-03-23 12:08:21 CDT
Here is a way to permanently set the range to 14-bits:

  1. Open the Edit>Options>Startup dialog.
  2. Select "12-bit (0-4095) range" from the drop down menu.
  3. Change "12" to "14" in the code that was added to the text box.
  4. Click "OK"
Comment 5 Ann Wheeler 2015-03-23 12:31:50 CDT
Hi

Thanks everyone so such a prompt response. I think we have a new research group converted to quantitative image analysis at the IGMM!

Its great to have easy to use workarounds for newbies. The adjustment of startup code and bioformats import can be used on any computer too, whereas the macro I would more likely put on the 6 image analysis computers.

BTW if you know of anyone looking for an image informaticist job we're hiring.

>>> Dr Ann Wheeler
>>> Head of Advanced Imaging Resource
>>> MRC Institute of Genetics and Molecular Medicine University of 
>>> Edinburgh Western General Hospital Crewe Road Edinburgh EH4 2XU
>>> E: ann.wheeler@igmm.ed.ac.uk
>>> T: 0131 4678425
>>> W: www.igmm.ac.uk
Comment 6 Wayne Rasband 2015-03-23 23:29:58 CDT
It turns out that my proposed method for setting the display range to 14-bits by adding "call("ij.ImagePlus.setDefault16bitRange",14)" to the Edit>Options>Startup dialog did not work. For it to work, you will need to upgrade to the latest ImageJ daily build, which you can do by using the Help>Update ImageJ command and selecting "daily build" from the drop down menu. The daily build also fixes a bug the caused "14-bit (0-16383)" to be missing from the "16-bit range" drop down menus in Edit>Options>Appearance and in the "Set" dialog of the "B&C" window.
Comment 7 Ann Wheeler 2015-03-24 05:55:46 CDT
Hi Wayne

Many thanks for fixing the bug in the daily build so quickly, it works really well and the IGMM users I'm sure will be very pleased.

Ann