[Insight-users] how to use multithreading
silentboom
mat_ri at ymail.com
Sat Jul 9 10:11:47 EDT 2011
Hello everyone!
I want to use multi-threading for an complex method.
In order to keep things simple the code below is reduced to a simple and
minimal example.
Lets consider the following code fragment:
...
typedef itk::ImageRegionIterator< ImageType > IteratorType;
IteratorType it(image,image->GetLargestPossibleRegion());
while(!it.IsAtEnd())
{
it.Set(it.Get()+1);
++it;
}
...
One could split the entire region into several parts, and each is then
processed by single thread.
But I have no idea how to do this.
Thanks for interest and any hints in advance.
--
View this message in context: http://itk-insight-users.2283740.n2.nabble.com/how-to-use-multithreading-tp6565802p6565802.html
Sent from the ITK Insight Users mailing list archive at Nabble.com.
More information about the Insight-users
mailing list