<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style id="owaParaStyle" type="text/css">P {margin-top:0;margin-bottom:0;}</style>
</head>
<body ocsi="0" fpstyle="1">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;">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:<br>
|| this->m_compression == COMPRESSION_DEFLATE<br>
and now the read proceeds successfully, as far as I can tell, and my program creates an uncompressed 4.5GB file.   This is progress!<br>
<br>
Unfortunately the file that is created does not identify itself as a valid TIFF. 
<br>
Irfanview says: Decode error!  Invalid or unsupported TIF file.  <br>
When I try to read it with ITK, the message is:<br>
File: ...itkImageFileReader.hxx<br>
Line: 143<br>
Description: Could not create IO object for file preeq_u.tif<br>
Tried to create one of the following:<br>
JPEGImageIO<br>
...<br>
TIFFImageIO<br>
...<br>
You probably failed to set a file suffix, or set the suffix to an unsupported type.<br>
<br>
Well, the suffix is obviously correct, so there is another problem with the file.<br>
<br>
The saga continues...<br>
<br>
Gib<br>
<br>
<div style="font-family: Times New Roman; color: #000000; font-size: 16px">
<hr tabindex="-1">
<div style="direction: ltr;" id="divRpF203697"><font color="#000000" face="Tahoma" size="2"><b>From:</b> Brian Helba [brian.helba@kitware.com]<br>
<b>Sent:</b> Friday, 7 March 2014 3:36 p.m.<br>
<b>To:</b> Gib Bogle<br>
<b>Cc:</b> community@itk.org<br>
<b>Subject:</b> Re: [ITK Community] Windows TIFF size limit<br>
</font><br>
</div>
<div></div>
<div>
<div dir="ltr">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.<br>
</div>
<div class="gmail_extra"><br>
<br>
<div class="gmail_quote">On Thu, Mar 6, 2014 at 9:13 PM, Gib Bogle <span dir="ltr">
<<a href="mailto:g.bogle@auckland.ac.nz" target="_blank">g.bogle@auckland.ac.nz</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex; border-left:1px #ccc solid; padding-left:1ex">
<div>
<div style="direction:ltr; font-size:10pt; font-family:Tahoma">Hello,<br>
<br>
Can someone tell me whether the tiff size limit on Windows is 2GB, as a message from Luis Ibanez in 2010 said:<br>
<a href="http://itk-insight-users.2283740.n2.nabble.com/Memory-limits-of-ITKImage-object-td5670422.html#a5670535" target="_blank">http://itk-insight-users.2283740.n2.nabble.com/Memory-limits-of-ITKImage-object-td5670422.html#a5670535</a><br>
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.<br>
<br>
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.<br>
<br>
Thanks<span class="HOEnZb"><font color="#888888"><br>
Gib<br>
</font></span></div>
</div>
<br>
_______________________________________________<br>
Community mailing list<br>
<a href="mailto:Community@itk.org" target="_blank">Community@itk.org</a><br>
<a href="http://public.kitware.com/cgi-bin/mailman/listinfo/community" target="_blank">http://public.kitware.com/cgi-bin/mailman/listinfo/community</a><br>
<br>
</blockquote>
</div>
<br>
<br clear="all">
<br>
-- <br>
Brian Helba<br>
Medical Imaging<br>
Kitware, Inc.<br>
</div>
</div>
</div>
</div>
</body>
</html>