[ITK Community] Windows TIFF size limit
Gib Bogle
g.bogle at auckland.ac.nz
Thu Mar 6 22:25:42 EST 2014
Thanks. I have tracked down the reason for the crash reading this compressed tiff in Windows. The compression is DEFLATE (AKA ZIP). The function TIFFReaderInternal::CanRead() in itkTIFFImageIO.cxx checks for COMPRESSION_NONE, COMPRESSION_PACKBITS and COMPRESSION_LZW, although COMPRESSION_DEFLATE is covered elsewhere in the code. I added this line:
|| this->m_compression == COMPRESSION_DEFLATE
and now the read proceeds successfully, as far as I can tell, and my program creates an uncompressed 4.5GB file. This is progress!
Unfortunately the file that is created does not identify itself as a valid TIFF.
Irfanview says: Decode error! Invalid or unsupported TIF file.
When I try to read it with ITK, the message is:
File: ...itkImageFileReader.hxx
Line: 143
Description: Could not create IO object for file preeq_u.tif
Tried to create one of the following:
JPEGImageIO
...
TIFFImageIO
...
You probably failed to set a file suffix, or set the suffix to an unsupported type.
Well, the suffix is obviously correct, so there is another problem with the file.
The saga continues...
Gib
________________________________
From: Brian Helba [brian.helba at kitware.com]
Sent: Friday, 7 March 2014 3:36 p.m.
To: Gib Bogle
Cc: community at itk.org
Subject: Re: [ITK Community] Windows TIFF size limit
FYI, ITK_COMPUTER_MEMORY_SIZE is only used to determine if certain tests will be added, and has no impact on how the toolkit is built.
On Thu, Mar 6, 2014 at 9:13 PM, Gib Bogle <g.bogle at auckland.ac.nz<mailto:g.bogle at auckland.ac.nz>> wrote:
Hello,
Can someone tell me whether the tiff size limit on Windows is 2GB, as a message from Luis Ibanez in 2010 said:
http://itk-insight-users.2283740.n2.nabble.com/Memory-limits-of-ITKImage-object-td5670422.html#a5670535
or unlimited as Brad Lowekamp recently wrote. I followed (I think) Brad's advice, and rebuilt my ITK libraries on Windows with ITK_USE_64BITS_IDS selected, and providing ITK_COMPUTER_MEMORY_SIZE = 12 GB. When I attempt to read the compressed version of a 4.5 GB tiff with ImageFileReader, the program crashes silently (no error is caught by 'catch'). I need to know whether or not this is the expected behaviour.
I am committed to processing some big multi-image tiffs, but I am having no luck with either Windows or Linux. Help would be greatly appreciated.
Thanks
Gib
_______________________________________________
Community mailing list
Community at itk.org<mailto:Community at itk.org>
http://public.kitware.com/cgi-bin/mailman/listinfo/community
--
Brian Helba
Medical Imaging
Kitware, Inc.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/community/attachments/20140307/2ac5e85d/attachment-0002.html>
More information about the Community
mailing list