[Insight-developers] InterpolateImageFunction and Threads
kent williams
norman-k-williams at uiowa.edu
Fri Mar 13 13:13:08 EDT 2009
Hi. I'm working on enhancing the WarpImageFilter to work with
DeformationFields with resolution/spacing different than the output image
size.
To do this I am using itk::VectorLinearInterpolateImageFunction, to get a
deformation field at a particular physical point, rather than simply using
an ImageRegionIterator.
My question is this: The most natural thing to do is to instantiate the
interpolater right before where it's used, in ThreadedGenerateData. But
this means it will get created/destroy for each thread.
Can I create one interpolater in BeforeThreadedGenerateData, and use it in
all threads? It looks like it's thread safe.
Notice: This UI Health Care e-mail (including attachments) is covered by the Electronic Communications Privacy Act, 18 U.S.C. 2510-2521, is confidential and may be legally privileged. If you are not the intended recipient, you are hereby notified that any retention, dissemination, distribution, or copying of this communication is strictly prohibited. Please reply to the sender that you have received the message in error, then delete it. Thank you.
More information about the Insight-developers
mailing list