[Insight-users] A memory issue

Kevin Keraudren kevin.keraudren10 at imperial.ac.uk
Fri Jan 20 07:09:23 EST 2012


Also, changing PixelType and using a smaller type would save memory. Of
course, not all algorithms can live with unsigned char.

unsigned char: 512*512*156*125/1024/1024/1024 ~ 4.8 GB
double:        512*512*156*125*8/1024/1024/1024 ~ 38.1 GB


On 20/01/12 11:26, Dženan Zukić wrote:
> Have you tried increasing virtual memory/swap file size? That should do
> it, I think. But it would be slower, of course.
> 
> On Fri, Jan 20, 2012 at 11:31, Ali Mouizina <ali.mouizina at gmail.com
> <mailto:ali.mouizina at gmail.com>> wrote:
> 
>     Hi all,
> 
>     I'm currently trying to allocate a 4-D vector whose size is
>     512*512*156*125 to store the results of  some computations i do on a
>     3D image. As expected, I don't have enough memory, is there any
>     trick to get round this problem ?
> 
>     The results I get at each iteration of the computation process is
>     stored into a slice of the 4D vector, so I thought I can process
>     each slice separately. Any suggestions on how to do that or any
>     other ideas ?
> 
>     Regards,
> 
>     Ali
> 
>     ------------------------------__-----------------------
> 
>     _______________________________________
>     Powered by www.kitware.com <http://www.kitware.com>
> 
>     Visit other Kitware open-source projects at
>     http://www.kitware.com/__opensource/opensource.html
>     <http://www.kitware.com/opensource/opensource.html>
> 
>     Kitware offers ITK Training Courses, for more information visit:
>     http://www.kitware.com/__products/protraining.html
>     <http://www.kitware.com/products/protraining.html>
> 
>     Please keep messages on-topic and check the ITK FAQ at:
>     http://www.itk.org/Wiki/ITK___FAQ <http://www.itk.org/Wiki/ITK_FAQ>
> 
>     Follow this link to subscribe/unsubscribe:
>     http://www.itk.org/mailman/__listinfo/insight-users
>     <http://www.itk.org/mailman/listinfo/insight-users>
> 
> 
> 
> 
> _____________________________________
> Powered by www.kitware.com
> 
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
> 
> Kitware offers ITK Training Courses, for more information visit:
> http://www.kitware.com/products/protraining.html
> 
> Please keep messages on-topic and check the ITK FAQ at:
> http://www.itk.org/Wiki/ITK_FAQ
> 
> Follow this link to subscribe/unsubscribe:
> http://www.itk.org/mailman/listinfo/insight-users




More information about the Insight-users mailing list