[Insight-users] SimpleITK Python parallel processing

Chapman, Brian brchapman at ucsd.edu
Fri Nov 30 12:50:47 EST 2012


I'm using SimpleITK for a script and want to exploit the multiple cores on a computer. I cannot use the Python multiprocessing library because the SimpleITK objects cannot be pickled:

PicklingError: Can't pickle <type 'SwigPyObject'>: attribute lookup __builtin__.SwigPyObject failed.

There doesn't seem to be any Python access to the multithreading features of the C++ class.

Any suggestions for an alternative approach?

Brian
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20121130/9d9a66b2/attachment.htm>


More information about the Insight-users mailing list