[ITK-users] SimpleITK: Pass Image from C++ to Python

Klaus drechsler at gmx.net
Sat Jun 27 09:24:37 EDT 2015


Hi,

I have a C++ application which I use to do all major image processing
stuff, UI and so on.  I embedded python as scripting language to quickly
test new ideas. Currently I am using temporary files and pass file paths
back and forth as a quick and dirty solution to pass images from one
language to the other.  However, I would like to directly pass a sitk
(or itk) image from c++ as parameter to a python method/function call.

Is there a straight forward (and efficient) way to achieve this?

Thank you!

Klaus


More information about the Insight-users mailing list