[Insight-users] multi-threading in ITK

John Jan Drozd john.drozd at gmail.com
Wed Aug 11 21:14:54 EDT 2010


Hi Matt,

Thank you very much. Your advice is a great help.

Take care,
John

Sent from my iPhone

On 2010-08-11, at 5:57 PM, Matt McCormick <matt at mmmccormick.com> wrote:

>> label maps.Would anyone be able to give me some hint of how to get  
>> ITK to
>> recognize the number of processors on a computer and then subdivide  
>> the
>> segmenting of different regions to run on different processors? 
>> Thank you,John
>>
>>
>
> Hi John,
>
> ITK conveniently does all these tasks for you.  The default behavior  
> is to set
> the number of threads in a multi-threaded filter to the number of  
> processors on
> the system.  The splitting of regions is done by itk::ImageSource in  
> the
> SplitRequestedRegion(), which generates the output region for
> ThreadedGenerateData().  Therefore, all you must do is create an
> ImageToImageFilter that performs your seeded work in the  
> ThreadedGenerateData().
> Sewing the seeds back together can be done in  
> AfterThreadedGenerateData().  For
> more information, see section 13.4 Threaded Filter Execution in the  
> ITK Software
> Guide.
>
> Regards,
> Matt
>
> _____________________________________
> 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


More information about the Insight-users mailing list