<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>Shareable test data greatly helps determine the cause and fix these types of issues.</div><div><br></div><div>Got data?</div><div><br></div><div>Brad</div><div><div>On Nov 23, 2014, at 5:40 PM, Gib Bogle <<a href="mailto:g.bogle@auckland.ac.nz">g.bogle@auckland.ac.nz</a>> 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;"><div style="direction: ltr; font-family: Tahoma; font-size: 10pt;">This is reminiscent of the previous problem with big TIFF images, now fixed.<br><br>Gib<br><div style="font-family: 'Times New Roman'; font-size: 16px;"><hr tabindex="-1"><div id="divRpF783081" style="direction: ltr;"><font face="Tahoma" size="2"><b>From:</b><span class="Apple-converted-space"> </span>Insight-users [<a href="mailto:insight-users-bounces@itk.org">insight-users-bounces@itk.org</a>] on behalf of Fotis Drakopoulos [<a href="mailto:fdrakopo@gmail.com">fdrakopo@gmail.com</a>]<br><b>Sent:</b><span class="Apple-converted-space"> </span>Monday, 24 November 2014 10:51 a.m.<br><b>To:</b><span class="Apple-converted-space"> </span><a href="mailto:insight-users@itk.org">insight-users@itk.org</a>;<span class="Apple-converted-space"> </span><a href="mailto:insight-developers@itk.org">insight-developers@itk.org</a><br><b>Subject:</b><span class="Apple-converted-space"> </span>[ITK-users] Problem reading a big nifti volume.<br></font><br></div><div></div><div><div dir="ltr">Hi all,<div><br></div><div>For the last couple of days I have been trying reading (unsuccessfully) a big nifti volume labeled image from my disk.</div><div><br></div><div>The pixel type is unsigned char and the rest specs of the image are:</div><div>Size : [1001, 1001, 8345] (in voxels)<br></div><div><div>Spacing : [0.012, 0.012, 0.012] (in mm)</div><div>Origin : [0, 0, 0]</div><div>Direction : </div><div>1 0 0</div><div>0 1 0</div><div>0 0 1</div></div><div><br></div><div>First I loaded the volume on Slicer-4.4.0 (64 bit-linux) to get an idea how it looks like. Indeed the object in the volume looks as it was expected. So far no problems. The specs of the image on Slicer are the same as above (except the direction which has flipped signs for the first two diagonal entries, as we know ).</div><div><br></div><div>Then I tried to load the image in the memory using the itk::ImageFileReader from ITK4.6.0 (64 bit-linux) version. After loading the image I noticed that there are pixels with zero values instead of non-zero by comparing the same indexes with the loaded image on Slicer.</div><div><br></div><div>Then I decided to write the loaded image on the disk using the itk::ImageFileWriter. </div><div><br></div><div>After opening the (written from ITK) image on Slicer I checked the specks and were the same with the original image as above. However I noticed that a big portion of the image is completely empty (black)!</div><div><br></div><div>My workstation has enough memory to load the image (<span style="font-family: arial, sans-serif; font-size: 13.333333969116211px;">768 GB 1600MHz DDR3L</span>) and is using <span style="font-family: arial, sans-serif; font-size: 13.333333969116211px;">Red Hat Enterprise Linux Server 6.5. </span></div><div><span style="font-family: arial, sans-serif; font-size: 13.333333969116211px;">The size of the original nifti volume is :</span></div><div><ul><li><span style="font-family: arial, sans-serif;">25.7 MB (.nii.gz)</span><br></li><li><font face="arial, sans-serif">8.36 GB (.nii)</font><br></li></ul></div><div>Has anybody experienced similar difficulties trying to load so big volume data?</div><div><br></div><div>Best,</div><div>Fotis Drakopoulos</div><div>CRTC</div><div> </div></div></div></div></div>_____________________________________<br>Powered by<span class="Apple-converted-space"> </span><a href="http://www.kitware.com/">www.kitware.com</a><br><br>Visit other Kitware open-source projects at<br><a href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</a><br><br>Kitware offers ITK Training Courses, for more information visit:<br><a href="http://www.kitware.com/products/protraining.php">http://www.kitware.com/products/protraining.php</a><br><br>Please keep messages on-topic and check the ITK FAQ at:<br><a href="http://www.itk.org/Wiki/ITK_FAQ">http://www.itk.org/Wiki/ITK_FAQ</a><br><br>Follow this link to subscribe/unsubscribe:<br><a href="http://public.kitware.com/mailman/listinfo/insight-users">http://public.kitware.com/mailman/listinfo/insight-users</a></div></blockquote></div><br></body></html>