<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
<div class="">Hello,</div>
<div class=""><br class="">
</div>
<div class="">Unfortunately, the region growing algorithms do not support streaming to my knowledge. But this certainly could help other parts of the pipeline, along with releasing unneeded data.</div>
<div class=""><br class="">
</div>
<div class="">Firstly, what OS and architecture are you compiling for? Did you choose Win64 or ensure your using 64-bits architecture?</div>
<div class=""><br class="">
</div>
<div class="">Next, many region grown algorithms are equivalent to running a binary threshold then a connected components algorithm these choosing the correct label(s). I have found for large data this is frequently more computational and memory efficient than
the region growing methods. In addition, the BinaryThesholdImageFilter can be run “InPlace”, and the BinaryImageToLabelMapFilter is an implementation of the connected components algorithm to RLE labels is memory efficient as well.</div>
<div class=""><br class="">
</div>
<div class="">HTH,</div>
<div class="">Brad</div>
<div class=""><br class="">
</div>
<br class="">
<div>
<blockquote type="cite" class="">
<div class="">On Nov 14, 2016, at 9:29 AM, Dženan Zukić <<a href="mailto:dzenanz@gmail.com" class="">dzenanz@gmail.com</a>> wrote:</div>
<br class="Apple-interchange-newline">
<div class="">
<div dir="ltr" class="">
<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 class="">
</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" class="">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 class="">
</div>
<div class="gmail_default" style="font-size:small"><font face="monospace, monospace" class="">ImageType::Pointer intermediate;</font></div>
<div class="gmail_default" style="font-size:small"><font face="monospace, monospace" class="">//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" class="">{</font></div>
<div class="gmail_default" style="font-size:small"><font face="monospace, monospace" class="">//read image</font></div>
<div class="gmail_default" style="font-size:small"><font face="monospace, monospace" class="">//do some processing</font></div>
<div class="gmail_default" style="font-size:small"><font face="monospace, monospace" class="">lastFilterInThisBlock->Update();<br class="">
</font></div>
<div class="gmail_default" style="font-size:small"><font face="monospace, monospace" class="">intermediate=lastFilterInThisBlock->GetOutput();</font></div>
<div class="gmail_default" style="font-size:small"><font face="monospace, monospace" class="">}</font></div>
<div class="gmail_default" style="font-size:small"><font face="monospace, monospace" class="">//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" class="">mainProcessingStep(intermediate);</font></div>
<div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small">
<br class="">
</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 class="">
<div class="gmail_quote">On Sun, Nov 13, 2016 at 10:03 AM, Abdelkhalek Bakkari <span dir="ltr" class="">
<<a href="mailto:bakkari.abdelkhalek@hotmail.fr" target="_blank" class="">bakkari.abdelkhalek@hotmail.fr</a>></span> wrote:<br class="">
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr" class="">
<div id="m_-5463580678136365697divtagdefaultwrapper" style="font-size: 12pt; font-family: 'Times New Roman', Times, serif;" dir="ltr" class="">
<p class="">Dear ITK users,</p>
<p class=""><br class="">
</p>
<p class="">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 class=""><br class="">
</p>
<p class="">Do you have any suggestion or help ?</p>
<p class=""><br class="">
</p>
<p class=""><br class="">
</p>
<p class="">Thank you in advance.</p>
<p class=""><br class="">
</p>
<p class="">Best regards,</p>
<p class=""><br class="">
</p>
<p class=""><br class="">
</p>
<div id="m_-5463580678136365697Signature" class=""><font size="3" face="Garamond" class="">Abdelkhalek Bakkari</font>
<div class=""><span style="line-height:14px" class=""><font size="3" face="Garamond" class="">Ph.D candidate in Computer Science</font></span></div>
<div class=""><span style="line-height:20.82666778564453px;background-color:rgb(255,255,255)" class=""><font face="Garamond" size="3" class="">Institute of Applied Computer Science</font></span></div>
<div class=""><span style="line-height:18.399999618530273px" class=""><font face="Garamond" size="3" class="">Lodz University of Technology, Poland</font></span></div>
<div class=""><span style="line-height:18.399999618530273px" class=""><font face="Garamond" size="3" class=""><br class="">
</font></span></div>
<div class=""><br class="">
</div>
</div>
</div>
</div>
<br class="">
______________________________<wbr class="">_______<br class="">
Powered by <a href="http://www.kitware.com/" rel="noreferrer" target="_blank" class="">
www.kitware.com</a><br class="">
<br class="">
Visit other Kitware open-source projects at<br class="">
<a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank" class="">http://www.kitware.com/<wbr class="">opensource/opensource.html</a><br class="">
<br class="">
Kitware offers ITK Training Courses, for more information visit:<br class="">
<a href="http://www.kitware.com/products/protraining.php" rel="noreferrer" target="_blank" class="">http://www.kitware.com/<wbr class="">products/protraining.php</a><br class="">
<br class="">
Please keep messages on-topic and check the ITK FAQ at:<br class="">
<a href="http://www.itk.org/Wiki/ITK_FAQ" rel="noreferrer" target="_blank" class="">http://www.itk.org/Wiki/ITK_<wbr class="">FAQ</a><br class="">
<br class="">
Follow this link to subscribe/unsubscribe:<br class="">
<a href="http://public.kitware.com/mailman/listinfo/insight-users" rel="noreferrer" target="_blank" class="">http://public.kitware.com/<wbr class="">mailman/listinfo/insight-users</a><br class="">
<br class="">
</blockquote>
</div>
<br class="">
</div>
_____________________________________<br class="">
Powered by <a href="http://www.kitware.com" class="">www.kitware.com</a><br class="">
<br class="">
Visit other Kitware open-source projects at<br class="">
<a href="http://www.kitware.com/opensource/opensource.html" class="">http://www.kitware.com/opensource/opensource.html</a><br class="">
<br class="">
Kitware offers ITK Training Courses, for more information visit:<br class="">
http://www.kitware.com/products/protraining.php<br class="">
<br class="">
Please keep messages on-topic and check the ITK FAQ at:<br class="">
http://www.itk.org/Wiki/ITK_FAQ<br class="">
<br class="">
Follow this link to subscribe/unsubscribe:<br class="">
http://public.kitware.com/mailman/listinfo/insight-users<br class="">
_______________________________________________<br class="">
Community mailing list<br class="">
Community@itk.org<br class="">
http://public.kitware.com/mailman/listinfo/community<br class="">
</div>
</blockquote>
</div>
<br class="">
</body>
</html>