[Insight-users] Multithreading

Dženan Zukić dzenanz at gmail.com
Fri Oct 14 03:42:40 EDT 2011


Here is an example when you implement your own multi-threaded
filter<http://www.itk.org/Wiki/ITK/Examples/Developer/OilPaintingImageFilter>.
More examples <http://www.itk.org/Wiki/ITK/Examples>.

Multithreaded filters are called the usual way: filter->update(), but they
make use of all the processor cores (unlike the single-threaded ones). On
top of that you can make your own application parallel (for example, have
one thread read images from disk while the main thread handles user
interaction).

HTH

On Thu, Oct 13, 2011 at 07:23, Sergio Aguirre <sergio.aguirre at gmail.com>wrote:

> Hi everyone,
>
> I am interested in understanding a bit more about implementing Multithreading
> in ITK - specially on using the tools already implemented in ITK.
>
> So as I understand it, multithreading IS supported by ITK and some filters
> are already implemented to generate multilpe threads and are listed here
> http://www.itk.org/Doxygen/html/group__MultiThreaded.html
>
> However, I am confused as another presentation states that you need to
> implement your own multithreaded filters using a callback structure *
> http://www.na-mic.org/Wiki/images/2/24/Insight-MultiThreading.ppt*
> *
> *
> My questions are:
>
> 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???
> 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?
> 3 - Is there an example code that shows how to try out multithreading?
>
> Any help in pointing me in the right direction to get clarity is
> appreciated.
> Thank you,
> Sergio
>
> _____________________________________
> 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.html
>
> 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://www.itk.org/pipermail/insight-users/attachments/20111014/77d10309/attachment.htm>


More information about the Insight-users mailing list