<html><head><meta http-equiv="Content-Type" content="text/html charset=iso-8859-1"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hello,<div><br></div><div>The Wrap ITK Insight Journal article is an excellent resource for WrapITK and how do to things:</div><div><br></div><div><a href="http://www.insight-journal.org/browse/publication/85">http://www.insight-journal.org/browse/publication/85</a></div><div><br></div><div>The python examples which contain imports InsightToolkit are legacy from the previous wrapping structure. I believe that WrapITK is some what compatible with that.</div><div><br></div><div>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.</div><div><br></div><div>Brad</div><div><br><div><div>On Sep 24, 2013, at 5:50 AM, Jagjeet Nain &lt;<a href="mailto:jagjeet.nain@gmail.com">jagjeet.nain@gmail.com</a>&gt; wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"><div dir="ltr"><div><div><div><div><div>Hi,<br></div>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.<br>
</div><div><br></div>Some python example runs fine but some don't. There are some example which import "itk" package as <b>"import itk"</b> &nbsp;and other uses&nbsp; <b>"from InsightToolkit import *"</b> form(python examples in Filtering directory).&nbsp;</div>
<div>Second form is not working for me since <b>InsightToolkit.py</b> tries to import <b>ITKMetricsv4Python </b>but following <br>
#itk_wrap_module(ITKMetricsv4)<br>#itk_auto_load_submodules()<br>#itk_end_wrap_module()<br>is commented out in <b>Modules/Registration/Metricsv4/wrapping/CMakeLists.txt</b>. This kind of indicates that wrapping of ITKMetricsv4 is not available.<br>

</div>My questions are:<br></div>1) Which form of import is preferable: import itk or import InsightToolkit?<br></div>2) Is No wrapping of ITKMetricsv4 intentional or Is it some wrong setting of some cmake variable in my build?<div>
Thanks.</div><div>BR</div><div>Jagjeet<br>
<div><br><br></div></div></div>
_____________________________________<br>Powered by <a href="http://www.kitware.com">www.kitware.com</a><br><br>Visit other Kitware open-source projects at<br><a href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</a><br><br>Kitware offers ITK Training Courses, for more information visit:<br>http://www.kitware.com/products/protraining.php<br><br>Please keep messages on-topic and check the ITK FAQ at:<br>http://www.itk.org/Wiki/ITK_FAQ<br><br>Follow this link to subscribe/unsubscribe:<br>http://www.itk.org/mailman/listinfo/insight-users<br></blockquote></div><br></div></body></html>