[ITK-users] Output to DICOM: bad_alloc

elena bresciani elena.bresciani87 at gmail.com
Wed May 14 05:22:16 EDT 2014


I solved the problem writing the output as a series of dicom images, by
doing this I don't have problems with memory management.

Thank you guys

Elena


2014-05-13 22:36 GMT+02:00 Jean-Pierre Roux <jpr at creatis.univ-lyon1.fr>:

> Hi!
>
> According the the small piece of code you sent, and specially :
>
>   typedef signed short InputPixelType;
>
> You'll use 2 bytes per pixel, and your image 1700 x 960 x 2300 will
> require 7.5GB.
> Make sure the main memory is large enough to hold everything you need.
>
> Jean-Pierre
>
>
> On 05/13/2014 05:08 PM, John Drescher wrote:
>
>> Ok but, like doing what?
>>>
>> Rebuild itk and your application for 64bit if you want to use an image
>> that is this large.
>>
>>  (sorry but I'm not really a coding expert)
>>>
>> 1700 x 960 x 2300 will require 3.75GB of address space alone provided
>> you are using 1 byte per pixel.
>>
>> John
>> _____________________________________
>> 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.php
>>
>> 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
>>
>
>
> --
> Jean-Pierre Roux
> CNRS UMR 5220, INSERM U 1044
> http://www.creatis.univ-lyon1.fr
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20140514/395ed29f/attachment.html>


More information about the Insight-users mailing list