<div dir="ltr"><div><div>I solved the problem writing the output as a series of dicom images, by doing this I don't have problems with memory management.<br><br></div>Thank you guys<br><br></div>Elena<br></div><div class="gmail_extra">
<br><br><div class="gmail_quote">2014-05-13 22:36 GMT+02:00 Jean-Pierre Roux <span dir="ltr"><<a href="mailto:jpr@creatis.univ-lyon1.fr" target="_blank">jpr@creatis.univ-lyon1.fr</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="">Hi!<br>
<br>
According the the small piece of code you sent, and specially :<br>
<br>
typedef signed short InputPixelType;<br>
<br>
You'll use 2 bytes per pixel, and your image 1700 x 960 x 2300 will require 7.5GB.<br>
Make sure the main memory is large enough to hold everything you need.<br>
<br>
Jean-Pierre<br>
<br>
<br>
On 05/13/2014 05:08 PM, John Drescher wrote:<br>
</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Ok but, like doing what?<br>
</blockquote>
Rebuild itk and your application for 64bit if you want to use an image<br>
that is this large.<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
(sorry but I'm not really a coding expert)<br>
</blockquote>
1700 x 960 x 2300 will require 3.75GB of address space alone provided<br>
you are using 1 byte per pixel.<br>
<br>
John<br></div></div><div class="">
______________________________<u></u>_______<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at<br>
<a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/<u></u>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" target="_blank">http://www.kitware.com/<u></u>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" target="_blank">http://www.itk.org/Wiki/ITK_<u></u>FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.itk.org/mailman/listinfo/insight-users" target="_blank">http://www.itk.org/mailman/<u></u>listinfo/insight-users</a><br>
</div></blockquote><div class="HOEnZb"><div class="h5">
<br>
<br>
-- <br>
Jean-Pierre Roux<br>
CNRS UMR 5220, INSERM U 1044<br>
<a href="http://www.creatis.univ-lyon1.fr" target="_blank">http://www.creatis.univ-lyon1.<u></u>fr</a><br>
</div></div></blockquote></div><br></div>