[Insight-users] A memory issue
alex Dowson
alexdowson at hotmail.com
Fri Jan 20 07:59:12 EST 2012
Hi
Can you show your code that we can understand little what you trying to do
?
Alex
-----Original Message-----
From: Ali Mouizina
Sent: Friday, January 20, 2012 6:21 PM
To: insight-users at itk.org
Subject: Re: [Insight-users] A memory issue
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
>> <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
>
> _____________________________________
> 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
--
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
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