[Insight-users] Streaming and multi-threading
Jack Lee
jack.lee at kcl.ac.uk
Tue Nov 27 13:41:48 EST 2012
Dear all,
I have some general questions regarding streaming and multi-threading in
itk that I couldn't easily figure out from the web searches:
- If threadedGenerateData() implemented for a filter, does it mean it's
both streamable & multithreaded? Or is there another independent
mechanism for a filter to be streamable?
- Generally itk will try to use all available cores, but it appears that
the number of streams has to be manually set. Does this mean that each
stream will be multi-threaded?
- In a pipeline, if just one filter isn't streamable, would that mean
the whole pipeline isn't streamable? Will such a pipeline simply cause
an error, or does itk have some mechanism for detecting and warning
these cases?
- To enable streaming in practice, is using the StreamingImageFilter
necessary? or can I just modify one of the filters in the pipeline, e.g.
by calling the ImageFileWriter -> SetNumerOfStreamDivision(n) with n>1 ?
Many thanks,
Jack
More information about the Insight-users
mailing list