[Insight-users] ITK python examples

Jagjeet Nain jagjeet.nain at gmail.com
Tue Sep 24 05:50:29 EDT 2013


Hi,
I am using ITK 4.4 own build on Linux 32. It was compiled with Wrap_ITK and
other related options as "ON". With this build, I am trying to run python
examples.

Some python example runs fine but some don't. There are some example which
import "itk" package as *"import itk"*  and other uses  *"from
InsightToolkit import *"* form(python examples in Filtering directory).
Second form is not working for me since *InsightToolkit.py* tries to import
*ITKMetricsv4Python *but following
#itk_wrap_module(ITKMetricsv4)
#itk_auto_load_submodules()
#itk_end_wrap_module()
is commented out in *Modules/Registration/Metricsv4/wrapping/CMakeLists.txt*.
This kind of indicates that wrapping of ITKMetricsv4 is not available.
My questions are:
1) Which form of import is preferable: import itk or import InsightToolkit?
2) Is No wrapping of ITKMetricsv4 intentional or Is it some wrong setting
of some cmake variable in my build?
Thanks.
BR
Jagjeet
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20130924/918575e1/attachment-0001.htm>


More information about the Insight-users mailing list