<font><font face="verdana,sans-serif"><a href="http://forums.techarena.in/tips-tweaks/1177754.htm">http://forums.techarena.in/tips-tweaks/1177754.htm</a><br></font></font><br><div class="gmail_quote">On Fri, Jan 20, 2012 at 13:51, Ali Mouizina <span dir="ltr"><<a href="mailto:ali.mouizina@gmail.com">ali.mouizina@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">To Dzenan :<br>
<br>
How can I do this ?<br>
<br>
To Kevin :<br>
<br>
All my values are within 0 and 1 but I think I can quantisize those values between 0 and 255. I tried your suggestion on a smaller image (and hence a smaller vector 512*512*22*125 <=> 671 MB with unsigned char) but it crashes when I instantiate 2 vectors (it works with 1). By the way I have a 8 GB of RAM and windows 7 64 bits. How can I fix this ?<br>
<br>
Thank you very much for your help !<br>
<br>
Regards,<br>
<br>
Ali<br>
<br>
Le 20/01/2012 13:09, Kevin Keraudren a écrit :<div><div class="h5"><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Also, changing PixelType and using a smaller type would save memory. Of<br>
course, not all algorithms can live with unsigned char.<br>
<br>
unsigned char: 512*512*156*125/1024/1024/1024 ~ 4.8 GB<br>
double: 512*512*156*125*8/1024/1024/<u></u>1024 ~ 38.1 GB<br>
<br>
<br>
On 20/01/12 11:26, Dženan Zukić wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Have you tried increasing virtual memory/swap file size? That should do<br>
it, I think. But it would be slower, of course.<br>
<br>
On Fri, Jan 20, 2012 at 11:31, Ali Mouizina<<a href="mailto:ali.mouizina@gmail.com" target="_blank">ali.mouizina@gmail.<u></u>com</a><br>
<mailto:<a href="mailto:ali.mouizina@gmail.com" target="_blank">ali.mouizina@gmail.com</a><u></u>>> wrote:<br>
<br>
Hi all,<br>
<br>
I'm currently trying to allocate a 4-D vector whose size is<br>
512*512*156*125 to store the results of some computations i do on a<br>
3D image. As expected, I don't have enough memory, is there any<br>
trick to get round this problem ?<br>
<br>
The results I get at each iteration of the computation process is<br>
stored into a slice of the 4D vector, so I thought I can process<br>
each slice separately. Any suggestions on how to do that or any<br>
other ideas ?<br>
<br>
Regards,<br>
<br>
Ali<br>
<br>
------------------------------<u></u>__-----------------------<br>
<br>
______________________________<u></u>_________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><<a href="http://www.kitware.com" target="_blank">http://www.<u></u>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>
<<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.html" target="_blank">http://www.kitware.com/__<u></u>products/protraining.html</a><br>
<<a href="http://www.kitware.com/products/protraining.html" target="_blank">http://www.kitware.com/<u></u>products/protraining.html</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><<a href="http://www.itk.org/Wiki/ITK_FAQ" target="_blank">http://www.itk.org/Wiki/<u></u>ITK_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>
<<a href="http://www.itk.org/mailman/listinfo/insight-users" target="_blank">http://www.itk.org/mailman/<u></u>listinfo/insight-users</a>><br>
<br>
<br>
<br>
<br>
______________________________<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.html" target="_blank">http://www.kitware.com/<u></u>products/protraining.html</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>
</blockquote>
<br>
______________________________<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.html" target="_blank">http://www.kitware.com/<u></u>products/protraining.html</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>
</blockquote>
<br></div></div>
-- <br>
Ali Mouizina<br>
Diplômé en Traitement Numérique du Signal<br>
Elève-Ingénieur en Traitement d'images<br>
Mastère Spécialisé Telecom ParisTech : Signal, Images et Reconnaissance de formes<br>
Paris - FRANCE<br>
<br>
------------------------------<u></u>------------------------------<u></u>---------------------<span class="HOEnZb"><font color="#888888"><br>
<br>
Ali Mouizina<br>
Graduated in Digital Signal Processing<br>
Currently studying Image Processing<br>
Advanced Masters at Telecom ParisTech : Signal, Images and Pattern Recognition<br>
Paris - FRANCE<br>
<br>
------------------------------<u></u>------------------------------<u></u>---------------------</font></span><div class="HOEnZb"><div class="h5"><br>
<br>
______________________________<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.html" target="_blank">http://www.kitware.com/<u></u>products/protraining.html</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></div></blockquote></div><br>