[ITK Community] [Insight-users] Some error happens : Failed to allocate memory for image

Jon Haitz Legarreta jhlegarreta at vicomtech.org
Fri Jan 10 04:19:26 EST 2014


Dear zhq,
I'd dare to say that evein if your image fits into your memory, you may
have multiple copies already in memory that prevent your last filter to
have enough room for it to run.

You may want to check the available meory before that step, or you may try
releasing the upstream filters' allocated memory turning on the
ReleaseDataFlag (ReleaseDataFlagOn).

HTH,
JON HAITZ



On 10 January 2014 03:26, zhq <15891495523 at 126.com> wrote:

> Dear all :
>
>         Using the FastMarchingImageFilter to segment a vessel , I meet a
> error : Failed to allocate memory for image
>
>         I find the wrong place using try-catch :
> When the sentence : gradientMagnitude->Update(); is run , the error
> happens !
>         My computer's memory is 12G , and the volume data is : 512*512*390
>  . I believe the memory is enough ! And the code has successfully been run
> once using the other data .
>         Could somebody give me some advices ? Thanks vary much in advance !
> zhq
>
>
> 来自网易手机号码邮箱了解更多 <http://shouji.163.com>
>
> _____________________________________
> 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
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/community/attachments/20140110/1c8f36a9/attachment.html>
-------------- next part --------------
_____________________________________
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


More information about the Community mailing list