Login  Register

Error in 16 bit grayscale multipage TIFF file handling from ImageJ?

Posted by Carsten Pahl on Feb 14, 2006; 11:04am
URL: http://imagej.273.s1.nabble.com/Error-in-16-bit-grayscale-multipage-TIFF-file-handling-from-ImageJ-tp3703739.html

Hello everybody,
I'm just developing a program in CVI (it is an ANSI C windows compiler from
National Instruments) which writes and reads 16 bit grayscale TIFF multipage
files, using IrfanVIEW and ImageJ as viewer, and I believe I have found an
error in the way ImageJ reads multipage files:

Normally, the TIFF 6 standard defines that it makes no difference in which
sequence the IFDs and the image data are saved in the tiff file.
If I produce a 16 bit TIFF multipage file with the sequence IFD0 - Image0 -
IFD1 - Image1 a.s.o, other programs like IrfanView can read the file without
problems; but ImageJ moves each image after the first one about 100 pixels
to the right with some garbage in the image data. Analyzing this I found out
that ImageJ strictly estimates the sequence IFD0 - Image0 - Image1 - ... -
ImageN - IFD1 - ... - IFDN; the garbage data I've seen were my IFDs. I think
that this behaviour of ImageJ is not TIFF 6 compliant.

Can anybody of you confirm this behaviour ?

By the way: 8 bit grayscale multipage files and 16 bit grayscale singlepage
files are handled correctly!

With kindest regards

Carsten Pahl