[Insight-users] A memory issue
Dženan Zukić
dzenanz at gmail.com
Fri Jan 20 07:57:35 EST 2012
http://forums.techarena.in/tips-tweaks/1177754.htm
On Fri, Jan 20, 2012 at 13:51, Ali Mouizina <ali.mouizina at gmail.com> wrote:
> To Dzenan :
>
> How can I do this ?
>
> To Kevin :
>
> 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 ?
>
> Thank you very much for your help !
>
> Regards,
>
> Ali
>
> Le 20/01/2012 13:09, Kevin Keraudren a écrit :
>
> 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<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<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>
>>> <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>
>>> <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>
>>> <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>
>>> <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<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<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>
>>
>
> --
> Ali Mouizina
> Diplômé en Traitement Numérique du Signal
> Elève-Ingénieur en Traitement d'images
> Mastère Spécialisé Telecom ParisTech : Signal, Images et Reconnaissance de
> formes
> Paris - FRANCE
>
> ------------------------------**------------------------------**
> ---------------------
>
> Ali Mouizina
> Graduated in Digital Signal Processing
> Currently studying Image Processing
> Advanced Masters at Telecom ParisTech : Signal, Images and Pattern
> Recognition
> Paris - FRANCE
>
> ------------------------------**------------------------------**
> ---------------------
>
>
> ______________________________**_______
> Powered by 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>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20120120/b7673a4d/attachment.htm>
More information about the Insight-users
mailing list