<div dir="ltr">Hi Sami,<br><br>Change<br><br>  RegularStepGradientDescentBaseOptimizer<br><br>to <br><br>  RegularStepGradientDescentOptimizer<br><br>The warnings reflect more work that needs to be done in the wrapping code.  However, the &quot;GetPointer()&quot; warnings are from your script -- those calls can be removed.<br>
<br>Hope this helps,<br>Matt<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Nov 28, 2013 at 3:38 AM, Sami Koho <span dir="ltr">&lt;<a href="mailto:sami.koho@gmail.com" target="_blank">sami.koho@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div><div>Hello,<br><br></div>I was trying to recreate the Hello World registration example in Python, using the ImageRegistration3.py and ImageRegistration1.cxx for inspiration. I get the following stream of warnings when I try to run the code:<br>

<br>Warning: Unknown parameter &#39;itk::VectorContainer&lt; unsigned char, double &gt;&#39; in te<br>mplate &#39;itk::DataObjectDecorator&#39;<br>Warning: Unknown parameter &#39;itk::DefaultStaticMeshTraits&lt; float,2,2,float,float<br>

&gt;&#39; in template &#39;itk::PointSet&#39;<br>Warning: Unknown parameter &#39;itk::DefaultDynamicMeshTraits&lt; float,2,2,float,float<br> &gt;&#39; in template &#39;itk::PointSet&#39;<br>Warning: Unknown parameter &#39;itk::DefaultStaticMeshTraits&lt; float,3,3,float,float<br>

&gt;&#39; in template &#39;itk::PointSet&#39;<br>Warning: Unknown parameter &#39;itk::DefaultDynamicMeshTraits&lt; float,3,3,float,float<br> &gt;&#39; in template &#39;itk::PointSet&#39;<br>Warning: Unknown parameter &#39;itk::DefaultStaticMeshTraits&lt; double,2,2,double,doub<br>

le,double &gt;&#39; in template &#39;itk::PointSet&#39;<br>Warning: Unknown parameter &#39;itk::DefaultStaticMeshTraits&lt; double,3,3,double,doub<br>le,double &gt;&#39; in template &#39;itk::PointSet&#39;<br>Warning: Unknown parameter &#39;itk::DefaultStaticMeshTraits&lt; itk::Matrix &lt;double,2,<br>

2&gt;,2,2,float,float,itk::Matrix &lt;double,2,2&gt; &gt;&#39; in template &#39;itk::PointSet&#39;<br>Warning: Unknown parameter &#39;itk::DefaultStaticMeshTraits&lt; itk::Matrix &lt;double,3,<br>3&gt;,3,3,float,float,itk::Matrix &lt;double,3,3&gt; &gt;&#39; in template &#39;itk::PointSet&#39;<br>

Warning: Unknown parameter &#39;itk::DefaultStaticMeshTraits&lt; float,2,2,float,float<br>&gt;&#39; in template &#39;itk::Mesh&#39;<br>Warning: Unknown parameter &#39;itk::DefaultDynamicMeshTraits&lt; float,2,2,float,float<br>

 &gt;&#39; in template &#39;itk::Mesh&#39;<br>Warning: Unknown parameter &#39;itk::DefaultStaticMeshTraits&lt; float,3,3,float,float<br>&gt;&#39; in template &#39;itk::Mesh&#39;<br>Warning: Unknown parameter &#39;itk::DefaultDynamicMeshTraits&lt; float,3,3,float,float<br>

 &gt;&#39; in template &#39;itk::Mesh&#39;<br>Warning: Unknown parameter &#39;itk::CellInterface&lt; float, itk::CellTraitsInfo&lt; 2,fl<br>oat,float,unsigned long,unsigned long,unsigned long,itk::Point&lt; float,2 &gt;,itk::M<br>

apContainer&lt; unsigned long,itk::Point&lt; float,2 &gt; &gt;, std::set&lt; unsigned long, std<br>::less&lt; unsigned long &gt; &gt; &gt; &gt; *&#39; in template &#39;itk::MapContainer&#39;<br>Warning: Unknown parameter &#39;itk::CellInterface&lt; double, itk::CellTraitsInfo&lt; 2,d<br>

ouble,double,unsigned long,unsigned long,unsigned long,itk::Point&lt; double,2 &gt;,it<br>k::MapContainer&lt; unsigned long,itk::Point&lt; double,2 &gt; &gt;, std::set&lt; unsigned long<br>, std::less&lt; unsigned long &gt; &gt; &gt; &gt; *&#39; in template &#39;itk::MapContainer&#39;<br>

Warning: Unknown parameter &#39;itk::CellInterface&lt; float, itk::CellTraitsInfo&lt; 3,fl<br>oat,float,unsigned long,unsigned long,unsigned long,itk::Point&lt; float,3 &gt;,itk::M<br>apContainer&lt; unsigned long,itk::Point&lt; float,3 &gt; &gt;, std::set&lt; unsigned long, std<br>

::less&lt; unsigned long &gt; &gt; &gt; &gt; *&#39; in template &#39;itk::MapContainer&#39;<br>Warning: Unknown parameter &#39;itk::CellInterface&lt; double, itk::CellTraitsInfo&lt; 3,d<br>ouble,double,unsigned long,unsigned long,unsigned long,itk::Point&lt; double,3 &gt;,it<br>

k::MapContainer&lt; unsigned long,itk::Point&lt; double,3 &gt; &gt;, std::set&lt; unsigned long<br>, std::less&lt; unsigned long &gt; &gt; &gt; &gt; *&#39; in template &#39;itk::MapContainer&#39;<br>Warning: Unknown parameter &#39;itk::CellInterface&lt; float, itk::CellTraitsInfo&lt; 2,fl<br>

oat,float,unsigned long,unsigned long,unsigned long,itk::Point&lt; float,2 &gt;,itk::M<br>apContainer&lt; unsigned long,itk::Point&lt; float,2 &gt; &gt;, std::set&lt; unsigned long, std<br>::less&lt; unsigned long &gt; &gt; &gt; &gt; *&#39; in template &#39;itk::VectorContainer&#39;<br>

Warning: Unknown parameter &#39;itk::CellInterface&lt; double, itk::CellTraitsInfo&lt; 2,d<br>ouble,double,unsigned long,unsigned long,unsigned long,itk::Point&lt; double,2 &gt;,it<br>k::MapContainer&lt; unsigned long,itk::Point&lt; double,2 &gt; &gt;, std::set&lt; unsigned long<br>

, std::less&lt; unsigned long &gt; &gt; &gt; &gt; *&#39; in template &#39;itk::VectorContainer&#39;<br>Warning: Unknown parameter &#39;itk::CellInterface&lt; float, itk::CellTraitsInfo&lt; 3,fl<br>oat,float,unsigned long,unsigned long,unsigned long,itk::Point&lt; float,3 &gt;,itk::M<br>

apContainer&lt; unsigned long,itk::Point&lt; float,3 &gt; &gt;, std::set&lt; unsigned long, std<br>::less&lt; unsigned long &gt; &gt; &gt; &gt; *&#39; in template &#39;itk::VectorContainer&#39;<br>Warning: Unknown parameter &#39;itk::CellInterface&lt; double, itk::CellTraitsInfo&lt; 3,d<br>

ouble,double,unsigned long,unsigned long,unsigned long,itk::Point&lt; double,3 &gt;,it<br>k::MapContainer&lt; unsigned long,itk::Point&lt; double,3 &gt; &gt;, std::set&lt; unsigned long<br>, std::less&lt; unsigned long &gt; &gt; &gt; &gt; *&#39; in template &#39;itk::VectorContainer&#39;<br>

Warning: Unknown parameter &#39;itk::CellTraitsInfo&lt; 2,float,float,unsigned long,uns<br>igned long,unsigned long,itk::Point&lt; float,2 &gt;,itk::MapContainer&lt; unsigned long,<br>itk::Point&lt; float,2 &gt; &gt;, std::set&lt; unsigned long, std::less&lt; unsigned long &gt; &gt; &gt;<br>

&#39; in template &#39;itk::CellInterfaceVisitor&#39;<br>Warning: Unknown parameter &#39;itk::CellTraitsInfo&lt; 2,double,double,unsigned long,u<br>nsigned long,unsigned long,itk::Point&lt; double,2 &gt;,itk::MapContainer&lt; unsigned lo<br>

ng,itk::Point&lt; double,2 &gt; &gt;, std::set&lt; unsigned long, std::less&lt; unsigned long &gt;<br> &gt; &gt;&#39; in template &#39;itk::CellInterfaceVisitor&#39;<br>Warning: Unknown parameter &#39;itk::CellTraitsInfo&lt; 3,float,float,unsigned long,uns<br>

igned long,unsigned long,itk::Point&lt; float,3 &gt;,itk::MapContainer&lt; unsigned long,<br>itk::Point&lt; float,3 &gt; &gt;, std::set&lt; unsigned long, std::less&lt; unsigned long &gt; &gt; &gt;<br>&#39; in template &#39;itk::CellInterfaceVisitor&#39;<br>

Warning: Unknown parameter &#39;itk::CellTraitsInfo&lt; 3,double,double,unsigned long,u<br>nsigned long,unsigned long,itk::Point&lt; double,3 &gt;,itk::MapContainer&lt; unsigned lo<br>ng,itk::Point&lt; double,3 &gt; &gt;, std::set&lt; unsigned long, std::less&lt; unsigned long &gt;<br>

 &gt; &gt;&#39; in template &#39;itk::CellInterfaceVisitor&#39;<br>Warning: Unknown parameter &#39;itk::CellTraitsInfo&lt; 2,float,float,unsigned long,uns<br>igned long,unsigned long,itk::Point&lt; float,2 &gt;,itk::MapContainer&lt; unsigned long,<br>

itk::Point&lt; float,2 &gt; &gt;, std::set&lt; unsigned long, std::less&lt; unsigned long &gt; &gt; &gt;<br>&#39; in template &#39;itk::CellInterface&#39;<br>Warning: Unknown parameter &#39;itk::CellTraitsInfo&lt; 2,double,double,unsigned long,u<br>

nsigned long,unsigned long,itk::Point&lt; double,2 &gt;,itk::MapContainer&lt; unsigned lo<br>ng,itk::Point&lt; double,2 &gt; &gt;, std::set&lt; unsigned long, std::less&lt; unsigned long &gt;<br> &gt; &gt;&#39; in template &#39;itk::CellInterface&#39;<br>

Warning: Unknown parameter &#39;itk::CellTraitsInfo&lt; 3,float,float,unsigned long,uns<br>igned long,unsigned long,itk::Point&lt; float,3 &gt;,itk::MapContainer&lt; unsigned long,<br>itk::Point&lt; float,3 &gt; &gt;, std::set&lt; unsigned long, std::less&lt; unsigned long &gt; &gt; &gt;<br>

&#39; in template &#39;itk::CellInterface&#39;<br>Warning: Unknown parameter &#39;itk::CellTraitsInfo&lt; 3,double,double,unsigned long,u<br>nsigned long,unsigned long,itk::Point&lt; double,3 &gt;,itk::MapContainer&lt; unsigned lo<br>

ng,itk::Point&lt; double,3 &gt; &gt;, std::set&lt; unsigned long, std::less&lt; unsigned long &gt;<br> &gt; &gt;&#39; in template &#39;itk::CellInterface&#39;<br>Warning: Unknown parameter &#39;itk::Mesh&lt; float,2,itk::DefaultStaticMeshTraits&lt; flo<br>

at,2,2,float &gt; &gt;&#39; in template &#39;itk::MeshToMeshFilter&#39;<br>Warning: Unknown parameter &#39;itk::Mesh&lt; float,2,itk::DefaultDynamicMeshTraits&lt; fl<br>oat,2,2,float &gt; &gt;&#39; in template &#39;itk::MeshToMeshFilter&#39;<br>

Warning: Unknown parameter &#39;itk::Mesh&lt; float,3,itk::DefaultStaticMeshTraits&lt; flo<br>at,3,3,float &gt; &gt;&#39; in template &#39;itk::MeshToMeshFilter&#39;<br>Warning: Unknown parameter &#39;itk::Mesh&lt; float,3,itk::DefaultDynamicMeshTraits&lt; fl<br>

oat,3,3,float &gt; &gt;&#39; in template &#39;itk::MeshToMeshFilter&#39;<br>WrapITK warning: GetPointer() is now deprecated for &#39;itkMeanSquaresImageToImageM<br>etricIF2IF2&#39;.<br>WrapITK warning: GetPointer() is now deprecated for &#39;itkRegularStepGradientDesce<br>

ntBaseOptimizer&#39;.<br>WrapITK warning: GetPointer() is now deprecated for &#39;itkTranslationTransformD2&#39;.<br><br>WrapITK warning: GetPointer() is now deprecated for &#39;itkLinearInterpolateImageFu<br>nctionIF2D&#39;.<br>

WrapITK warning: GetPointer() is now deprecated for &#39;itkPyCommand&#39;.<br>Traceback (most recent call last):<br>  File &quot;Registration1.py&quot;, line 78, in &lt;module&gt;<br>    registration.Update()<br>RuntimeError: :0:<br>

This method MUST be overloaded in derived classes<br><br></div>I tried this with a Windows 7 computer, with ITK inside the pythonxy package and on a Ubuntu computer with ITK cloned from GIT (last week). Both give the same results. Any idea what is happening here? I&#39;ll attach my source code as well.<br>

<br></div>Best,<br><br></div>Sami<br><div><div><br><br></div></div></div>
<br>_____________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at<br>
<a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Kitware offers ITK Training Courses, for more information visit:<br>
<a href="http://www.kitware.com/products/protraining.php" target="_blank">http://www.kitware.com/products/protraining.php</a><br>
<br>
Please keep messages on-topic and check the ITK FAQ at:<br>
<a href="http://www.itk.org/Wiki/ITK_FAQ" target="_blank">http://www.itk.org/Wiki/ITK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.itk.org/mailman/listinfo/insight-users" target="_blank">http://www.itk.org/mailman/listinfo/insight-users</a><br>
<br>_______________________________________________<br>
Community mailing list<br>
<a href="mailto:Community@itk.org">Community@itk.org</a><br>
<a href="http://public.kitware.com/cgi-bin/mailman/listinfo/community" target="_blank">http://public.kitware.com/cgi-bin/mailman/listinfo/community</a><br>
<br></blockquote></div><br></div>