<html><head><meta http-equiv="Content-Type" content="text/html charset=iso-8859-1"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div>Hello,</div><div><br></div><div>There are some large TIFF IO tests. We should check to see if they are passing on your system.</div><div><br></div><div>They are defined here:</div><div><br></div><a href="https://github.com/InsightSoftwareConsortium/ITK/blob/master/Modules/IO/TIFF/test/CMakeLists.txt#L146-L192">https://github.com/InsightSoftwareConsortium/ITK/blob/master/Modules/IO/TIFF/test/CMakeLists.txt#L146-L192</a><div><br></div><div>To enable them you need to define in CMake ITK_COMPUTER_MEMORY_SIZE to be sufficiently large.</div><div><br></div><div>Then you are run just these tests labeled with "BigIO":</div><div><br></div><div>$ ctest -L BigIO -R TIFF</div><div><br></div><div>These tests are slow and not run on many systems on the dashboard ( actually I can't find them any where, they were all passing last I checked). If you are trying out different TIFF libraries, it'd may be good to verify that these test pass.</div><div><br></div><div>They test on my Redhat 6 system with the current version of ITK libtiff. At this point it's not clear to me if this less that 1GB failure is related it ITK, ITK hacked for 4.0.2 libtiff, or your version of libtiff.</div><div><br></div><div>Brad</div><div><br></div><div><br></div><div><div><br></div><div><div><div>On Mar 5, 2014, at 1:26 PM, Gib Bogle <g.bogle@auckland.ac.nz> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div ocsi="0" fpstyle="1" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word;"><div style="direction: ltr; font-family: Tahoma; font-size: 10pt;">Hi Brad,<br><br>Thanks for your bug fix enabling ITK to build on ubuntu!<br><br>The only info I managed to locate about large tiffs was a note from Luis Ibanez that referred to a Windows limit of 2GB. I guess that was before the ITK_USE_64BITS_IDS option was implemented. I'll give Windows a try again.<br><br>The odd thing is that my truncation problem on Linux is occurring with a file that is not so big - 601*1380*693, i.e. less than 1GB.<br><br>Best<br>Gib<br><div style="font-family: 'Times New Roman'; font-size: 16px;"><hr tabindex="-1"><div id="divRpF235582" style="direction: ltr;"><font face="Tahoma" size="2"><b>From:</b><span class="Apple-converted-space"> </span>Bradley Lowekamp [<a href="mailto:blowekamp@mail.nih.gov">blowekamp@mail.nih.gov</a>]<br><b>Sent:</b><span class="Apple-converted-space"> </span>Thursday, 6 March 2014 2:55 a.m.<br><b>To:</b><span class="Apple-converted-space"> </span>Gib Bogle<br><b>Cc:</b><span class="Apple-converted-space"> </span><a href="mailto:community@itk.org">community@itk.org</a><br><b>Subject:</b><span class="Apple-converted-space"> </span>Re: [ITK Community] Problem with multi-image tiff on Linux (ubuntu)<br></font><br></div><div></div><div>Hello,<div><br></div><div>For windows to handle larger than 4GB image the CMake option ITK_USE_64BITS_IDS needs to be turned on. ( In this day and age it really should be turned on by default now. )</div><div><br></div><div>I have had similar problems trying to convert large image to tiffs too. Specifically, I recall getting the same type of truncation when trying to convert the Visible Human cyro-slices to big tiff.</div><div><br></div><div>I think some serious time needs to be spend looking at itkTIFFImageIO for 64-bit issues, as my casual looks have not turned up anything.</div><div><br></div><div>Brad</div><div><br><div><div>On Mar 5, 2014, at 3:28 AM, Gib Bogle <<a href="mailto:g.bogle@auckland.ac.nz" target="_blank">g.bogle@auckland.ac.nz</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;"><div style="direction: ltr; font-family: Tahoma; font-size: 10pt;">I have recently started having to work with big multi-image tiff files, e.g. 4.5 GB. I discovered that ITK on Windows cannot handle such large images, so I am trying to use Linux (64-bit ubuntu 12.10). I managed to build ITK with libtiff5 (actually 4.0.2 I think) which does have bigtiff support, after downloading the latest source code with git, which contains a patch fix for a bug that prevented building. The patch was applied yesterday, so that was a bit of luck.<br><br>But there is something screwy happening when I read my multi-image tiff with ITK. After reading the image (which is compressed with Deflate) I look at each z-frame and compute the sum of pixel intensities. After z=346 all the intensities are 0, but I know this is not correct. I can view the frames with Imagemagick's display program, and those at z>346 are not qualitatively different from the earlier ones.<br><br>After reading the image in I am using a pointer to the buffer to access the data:<br><br>p = (unsigned char *)(im->GetBufferPointer());<br><br>then I access the voxel value at (x,y,z) as p[z*xysize+y*width+x]<br><br>I have declared x, y, z, width and xysize = width*height all as long int.<br><br>Another way to show the problem: When the compressed tiff that looks correct when viewed with Imagemagick-display is read with ITK and then written without compression, the uncompressed version has blank frames for z>346. This tiff has 693 frames, each 601x1380. Exactly the same thing is seen with another tiff that has 693 frames each 779x1380 - again the uncompressed version is blank after frame 346.<br><br>I'd be interested to know if anyone else is reading big tiffs with ITK, on Linux.<br><br>Thanks<br>Gib</div>_______________________________________________<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></div></blockquote></div></div></div></div></div></div></blockquote></div><br></div></div></body></html>