<div dir="ltr"><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small">Hi Abdelkhalek,</div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small">depending on the filters in your pipeline (whether all of them support streaming), it might be useful to use <a href="https://itk.org/Doxygen/html/classitk_1_1StreamingImageFilter.html">StreamingImageFilter</a>. If not, you could have all intermediate results deallocated before starting the main (most memory intensive) processing step:</div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small"><br></div><div class="gmail_default" style="font-size:small"><font face="monospace, monospace">ImageType::Pointer intermediate;</font></div><div class="gmail_default" style="font-size:small"><font face="monospace, monospace">//open a block, so that all variables created in it are deallocated at the end of it</font></div><div class="gmail_default" style="font-size:small"><font face="monospace, monospace">{</font></div><div class="gmail_default" style="font-size:small"><font face="monospace, monospace">//read image</font></div><div class="gmail_default" style="font-size:small"><font face="monospace, monospace">//do some processing</font></div><div class="gmail_default" style="font-size:small"><font face="monospace, monospace">lastFilterInThisBlock->Update();<br></font></div><div class="gmail_default" style="font-size:small"><font face="monospace, monospace">intermediate=lastFilterInThisBlock->GetOutput();</font></div><div class="gmail_default" style="font-size:small"><font face="monospace, monospace">}</font></div><div class="gmail_default" style="font-size:small"><font face="monospace, monospace">//everything except intermediate will be deallocated at this point, freeing memory</font></div><div class="gmail_default" style="font-size:small"><font face="monospace, monospace">mainProcessingStep(intermediate);</font></div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small">Regards,</div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small">Dženan</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Nov 13, 2016 at 10:03 AM, Abdelkhalek Bakkari <span dir="ltr"><<a href="mailto:bakkari.abdelkhalek@hotmail.fr" target="_blank">bakkari.abdelkhalek@hotmail.fr</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">
<div id="m_-5463580678136365697divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:'Times New Roman',Times,serif" dir="ltr">
<p>Dear ITK users,</p>
<p><br>
</p>
<p>I am trying to evaluate my region growing ITK code. Unfortunately, for a huge data (more than 100 .dcm images), the application turn blocked and some errors appear (please find it in attachment)</p>
<p><br>
</p>
<p>Do you have any suggestion or help ?</p>
<p><br>
</p>
<p><br>
</p>
<p>Thank you in advance.</p>
<p><br>
</p>
<p>Best regards,</p>
<p><br>
</p>
<p><br>
</p>
<div id="m_-5463580678136365697Signature"><font size="3" face="Garamond">Abdelkhalek Bakkari</font>
<div><span style="line-height:14px"><font size="3" face="Garamond">Ph.D candidate in Computer Science</font></span></div>
<div><span style="line-height:20.82666778564453px;background-color:rgb(255,255,255)"><font face="Garamond" size="3">Institute of Applied Computer Science</font></span></div>
<div><span style="line-height:18.399999618530273px"><font face="Garamond" size="3">Lodz University of Technology, Poland</font></span></div>
<div><span style="line-height:18.399999618530273px"><font face="Garamond" size="3"><br>
</font></span></div>
<div><br>
</div>
</div>
</div>
</div>
<br>______________________________<wbr>_______<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" 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" rel="noreferrer" target="_blank">http://www.kitware.com/<wbr>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" rel="noreferrer" target="_blank">http://www.kitware.com/<wbr>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" rel="noreferrer" target="_blank">http://www.itk.org/Wiki/ITK_<wbr>FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/insight-users" rel="noreferrer" target="_blank">http://public.kitware.com/<wbr>mailman/listinfo/insight-users</a><br>
<br></blockquote></div><br></div>