<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>