[Insight-users] ITK python examples
Bradley Lowekamp
blowekamp at mail.nih.gov
Tue Sep 24 08:27:11 EDT 2013
Hello,
The Wrap ITK Insight Journal article is an excellent resource for WrapITK and how do to things:
http://www.insight-journal.org/browse/publication/85
The python examples which contain imports InsightToolkit are legacy from the previous wrapping structure. I believe that WrapITK is some what compatible with that.
These legacy python example should be update, but they are still useful with a few modifications to get working with WrapITK. Contribution to update these are very much welcome.
Brad
On Sep 24, 2013, at 5:50 AM, Jagjeet Nain <jagjeet.nain at gmail.com> wrote:
> 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
>
>
> _____________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Kitware offers ITK Training Courses, for more information visit:
> http://www.kitware.com/products/protraining.php
>
> Please keep messages on-topic and check the ITK FAQ at:
> http://www.itk.org/Wiki/ITK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.itk.org/mailman/listinfo/insight-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20130924/e4da0acb/attachment.htm>
More information about the Insight-users
mailing list