<div dir="ltr"><div><div>Dear zhq,<br>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.<br><br>
</div>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).<br><br></div>HTH,<br>JON HAITZ<br><br>
<div><div><br><div><div class="gmail_extra"><br><div class="gmail_quote">On 10 January 2014 03:26, zhq <span dir="ltr"><<a href="mailto:15891495523@126.com" target="_blank">15891495523@126.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div style="line-height:1.7;font-size:14px;font-family:arial">Dear all :<div><br></div><div>        Using the FastMarchingImageFilter to segment a vessel , I meet a error : Failed to allocate memory for image</div>
<div>        <img src="http://mail.126.com/js5/s?func=mbox:getMessageData&sid=*&mid=206:1tbizgUKSEq90PSB1QABsP&part=3" style="border: 0px none; line-height: 1.7;"></div><div>        I find the wrong place using try-catch :</div>
<div><span style="white-space:pre-wrap">  </span>When the sentence : gradientMagnitude->Update(); is run , the error happens !</div><div>        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 . </div>
<div>        Could somebody give me some advices ? Thanks vary much in advance !</div><div>zhq</div></div><br><br><span title="neteasefooter"><span><div><div style="border-top:1px solid rgb(204,204,204);padding:10px 5px;font-size:12px;color:rgb(102,102,102);line-height:22px">
来自网易手机号码邮箱<a href="http://shouji.163.com" style="color:rgb(0,0,255)" target="_blank">了解更多</a></div></div>
</span></span><br>_____________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at<br>
<a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Kitware offers ITK Training Courses, for more information visit:<br>
<a href="http://www.kitware.com/products/protraining.php" target="_blank">http://www.kitware.com/products/protraining.php</a><br>
<br>
Please keep messages on-topic and check the ITK FAQ at:<br>
<a href="http://www.itk.org/Wiki/ITK_FAQ" target="_blank">http://www.itk.org/Wiki/ITK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.itk.org/mailman/listinfo/insight-users" target="_blank">http://www.itk.org/mailman/listinfo/insight-users</a><br>
<br></blockquote></div><br></div></div></div></div></div>