[Insight-users] How does ITK divide image when multithreading?

Matt McCormick matt at mmmccormick.com
Wed Aug 11 10:30:55 EDT 2010


> 
>             std::cerr << "numberOfThreads is " << numberOfThreads <<
std::endl;And my image is 100 by 100 in pixel, then will these 8 threads divide
the image into 8 pieces or patches?If so, for my 100 by 100 image, every patch
contains 1250 pixels, but now it is not a square image anymore. Does ITK put
this 1250 pixels into vectors to manipulate?Thanks very much!Aaron
> 
>

Hi Aaron,

ThreadedGenerateData() must only work to generate the region passed to it.  You
can see how these regions are split by looking at SplitRequestedRegion in
itk::ImageSource.

It is important to use the itk iterator api to transverse these regions.

Regards,
Matt






More information about the Insight-users mailing list