Hi everyone, <div><br></div><div>I am interested in understanding a bit more about implementing <span class="Apple-style-span" style="background-color: rgb(255, 255, 255); "><font class="Apple-style-span" face="'Lucida Grande', Verdana, Geneva, Arial, sans-serif"><span class="Apple-style-span" style="font-size: 12px;">Multithreading in ITK - specially on using the tools already implemented in ITK.</span></font></span></div>
<div><span class="Apple-style-span" style="background-color: rgb(255, 255, 255); "><font class="Apple-style-span" face="'Lucida Grande', Verdana, Geneva, Arial, sans-serif"><span class="Apple-style-span" style="font-size: 12px;"><br>
</span></font></span></div><div><span class="Apple-style-span" style="background-color: rgb(255, 255, 255); "><font class="Apple-style-span" face="'Lucida Grande', Verdana, Geneva, Arial, sans-serif"><span class="Apple-style-span" style="font-size: 12px;">So as I understand it, multithreading IS supported by ITK and some filters are already implemented to generate multilpe threads and are listed here </span></font></span><a href="http://www.itk.org/Doxygen/html/group__MultiThreaded.html">http://www.itk.org/Doxygen/html/group__MultiThreaded.html</a> </div>
<div><br></div><div>However, I am confused as another presentation states that you need to implement your own multithreaded filters using a callback structure <font class="Apple-style-span" color="#0000ee"><u><a href="http://www.na-mic.org/Wiki/images/2/24/Insight-MultiThreading.ppt">http://www.na-mic.org/Wiki/images/2/24/Insight-MultiThreading.ppt</a></u></font></div>
<div><font class="Apple-style-span" color="#0000ee"><u><br></u></font></div><div>My questions are: </div><div><br></div><div>1 - What is the way to implement multithreading on ITK? through a callback function? is multithreading something that you can activate on an ITK filter by calling a member function (say ThreadedGenerateData() ) or both??? </div>
<div>2 - I was planning on trying to speedup my large DICOM series reads (1200+ slices) using ITKImageSeriesReader's memberfunctions e.g. ThreadedGenerateData() - can readers be implemented in multithreading?</div><div>
3 - Is there an example code that shows how to try out multithreading? </div><div><br></div><div>Any help in pointing me in the right direction to get clarity is appreciated. </div><div>Thank you, </div><div>Sergio </div>