<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 'itk::VectorContainer< unsigned char, double >' in te<br>mplate 'itk::DataObjectDecorator'<br>Warning: Unknown parameter 'itk::DefaultStaticMeshTraits< float,2,2,float,float<br>
>' in template 'itk::PointSet'<br>Warning: Unknown parameter 'itk::DefaultDynamicMeshTraits< float,2,2,float,float<br> >' in template 'itk::PointSet'<br>Warning: Unknown parameter 'itk::DefaultStaticMeshTraits< float,3,3,float,float<br>
>' in template 'itk::PointSet'<br>Warning: Unknown parameter 'itk::DefaultDynamicMeshTraits< float,3,3,float,float<br> >' in template 'itk::PointSet'<br>Warning: Unknown parameter 'itk::DefaultStaticMeshTraits< double,2,2,double,doub<br>
le,double >' in template 'itk::PointSet'<br>Warning: Unknown parameter 'itk::DefaultStaticMeshTraits< double,3,3,double,doub<br>le,double >' in template 'itk::PointSet'<br>Warning: Unknown parameter 'itk::DefaultStaticMeshTraits< itk::Matrix <double,2,<br>
2>,2,2,float,float,itk::Matrix <double,2,2> >' in template 'itk::PointSet'<br>Warning: Unknown parameter 'itk::DefaultStaticMeshTraits< itk::Matrix <double,3,<br>3>,3,3,float,float,itk::Matrix <double,3,3> >' in template 'itk::PointSet'<br>
Warning: Unknown parameter 'itk::DefaultStaticMeshTraits< float,2,2,float,float<br>>' in template 'itk::Mesh'<br>Warning: Unknown parameter 'itk::DefaultDynamicMeshTraits< float,2,2,float,float<br>
>' in template 'itk::Mesh'<br>Warning: Unknown parameter 'itk::DefaultStaticMeshTraits< float,3,3,float,float<br>>' in template 'itk::Mesh'<br>Warning: Unknown parameter 'itk::DefaultDynamicMeshTraits< float,3,3,float,float<br>
>' in template 'itk::Mesh'<br>Warning: Unknown parameter 'itk::CellInterface< float, itk::CellTraitsInfo< 2,fl<br>oat,float,unsigned long,unsigned long,unsigned long,itk::Point< float,2 >,itk::M<br>
apContainer< unsigned long,itk::Point< float,2 > >, std::set< unsigned long, std<br>::less< unsigned long > > > > *' in template 'itk::MapContainer'<br>Warning: Unknown parameter 'itk::CellInterface< double, itk::CellTraitsInfo< 2,d<br>
ouble,double,unsigned long,unsigned long,unsigned long,itk::Point< double,2 >,it<br>k::MapContainer< unsigned long,itk::Point< double,2 > >, std::set< unsigned long<br>, std::less< unsigned long > > > > *' in template 'itk::MapContainer'<br>
Warning: Unknown parameter 'itk::CellInterface< float, itk::CellTraitsInfo< 3,fl<br>oat,float,unsigned long,unsigned long,unsigned long,itk::Point< float,3 >,itk::M<br>apContainer< unsigned long,itk::Point< float,3 > >, std::set< unsigned long, std<br>
::less< unsigned long > > > > *' in template 'itk::MapContainer'<br>Warning: Unknown parameter 'itk::CellInterface< double, itk::CellTraitsInfo< 3,d<br>ouble,double,unsigned long,unsigned long,unsigned long,itk::Point< double,3 >,it<br>
k::MapContainer< unsigned long,itk::Point< double,3 > >, std::set< unsigned long<br>, std::less< unsigned long > > > > *' in template 'itk::MapContainer'<br>Warning: Unknown parameter 'itk::CellInterface< float, itk::CellTraitsInfo< 2,fl<br>
oat,float,unsigned long,unsigned long,unsigned long,itk::Point< float,2 >,itk::M<br>apContainer< unsigned long,itk::Point< float,2 > >, std::set< unsigned long, std<br>::less< unsigned long > > > > *' in template 'itk::VectorContainer'<br>
Warning: Unknown parameter 'itk::CellInterface< double, itk::CellTraitsInfo< 2,d<br>ouble,double,unsigned long,unsigned long,unsigned long,itk::Point< double,2 >,it<br>k::MapContainer< unsigned long,itk::Point< double,2 > >, std::set< unsigned long<br>
, std::less< unsigned long > > > > *' in template 'itk::VectorContainer'<br>Warning: Unknown parameter 'itk::CellInterface< float, itk::CellTraitsInfo< 3,fl<br>oat,float,unsigned long,unsigned long,unsigned long,itk::Point< float,3 >,itk::M<br>
apContainer< unsigned long,itk::Point< float,3 > >, std::set< unsigned long, std<br>::less< unsigned long > > > > *' in template 'itk::VectorContainer'<br>Warning: Unknown parameter 'itk::CellInterface< double, itk::CellTraitsInfo< 3,d<br>
ouble,double,unsigned long,unsigned long,unsigned long,itk::Point< double,3 >,it<br>k::MapContainer< unsigned long,itk::Point< double,3 > >, std::set< unsigned long<br>, std::less< unsigned long > > > > *' in template 'itk::VectorContainer'<br>
Warning: Unknown parameter 'itk::CellTraitsInfo< 2,float,float,unsigned long,uns<br>igned long,unsigned long,itk::Point< float,2 >,itk::MapContainer< unsigned long,<br>itk::Point< float,2 > >, std::set< unsigned long, std::less< unsigned long > > ><br>
' in template 'itk::CellInterfaceVisitor'<br>Warning: Unknown parameter 'itk::CellTraitsInfo< 2,double,double,unsigned long,u<br>nsigned long,unsigned long,itk::Point< double,2 >,itk::MapContainer< unsigned lo<br>
ng,itk::Point< double,2 > >, std::set< unsigned long, std::less< unsigned long ><br> > >' in template 'itk::CellInterfaceVisitor'<br>Warning: Unknown parameter 'itk::CellTraitsInfo< 3,float,float,unsigned long,uns<br>
igned long,unsigned long,itk::Point< float,3 >,itk::MapContainer< unsigned long,<br>itk::Point< float,3 > >, std::set< unsigned long, std::less< unsigned long > > ><br>' in template 'itk::CellInterfaceVisitor'<br>
Warning: Unknown parameter 'itk::CellTraitsInfo< 3,double,double,unsigned long,u<br>nsigned long,unsigned long,itk::Point< double,3 >,itk::MapContainer< unsigned lo<br>ng,itk::Point< double,3 > >, std::set< unsigned long, std::less< unsigned long ><br>
> >' in template 'itk::CellInterfaceVisitor'<br>Warning: Unknown parameter 'itk::CellTraitsInfo< 2,float,float,unsigned long,uns<br>igned long,unsigned long,itk::Point< float,2 >,itk::MapContainer< unsigned long,<br>
itk::Point< float,2 > >, std::set< unsigned long, std::less< unsigned long > > ><br>' in template 'itk::CellInterface'<br>Warning: Unknown parameter 'itk::CellTraitsInfo< 2,double,double,unsigned long,u<br>
nsigned long,unsigned long,itk::Point< double,2 >,itk::MapContainer< unsigned lo<br>ng,itk::Point< double,2 > >, std::set< unsigned long, std::less< unsigned long ><br> > >' in template 'itk::CellInterface'<br>
Warning: Unknown parameter 'itk::CellTraitsInfo< 3,float,float,unsigned long,uns<br>igned long,unsigned long,itk::Point< float,3 >,itk::MapContainer< unsigned long,<br>itk::Point< float,3 > >, std::set< unsigned long, std::less< unsigned long > > ><br>
' in template 'itk::CellInterface'<br>Warning: Unknown parameter 'itk::CellTraitsInfo< 3,double,double,unsigned long,u<br>nsigned long,unsigned long,itk::Point< double,3 >,itk::MapContainer< unsigned lo<br>
ng,itk::Point< double,3 > >, std::set< unsigned long, std::less< unsigned long ><br> > >' in template 'itk::CellInterface'<br>Warning: Unknown parameter 'itk::Mesh< float,2,itk::DefaultStaticMeshTraits< flo<br>
at,2,2,float > >' in template 'itk::MeshToMeshFilter'<br>Warning: Unknown parameter 'itk::Mesh< float,2,itk::DefaultDynamicMeshTraits< fl<br>oat,2,2,float > >' in template 'itk::MeshToMeshFilter'<br>
Warning: Unknown parameter 'itk::Mesh< float,3,itk::DefaultStaticMeshTraits< flo<br>at,3,3,float > >' in template 'itk::MeshToMeshFilter'<br>Warning: Unknown parameter 'itk::Mesh< float,3,itk::DefaultDynamicMeshTraits< fl<br>
oat,3,3,float > >' in template 'itk::MeshToMeshFilter'<br>WrapITK warning: GetPointer() is now deprecated for 'itkMeanSquaresImageToImageM<br>etricIF2IF2'.<br>WrapITK warning: GetPointer() is now deprecated for 'itkRegularStepGradientDesce<br>
ntBaseOptimizer'.<br>WrapITK warning: GetPointer() is now deprecated for 'itkTranslationTransformD2'.<br><br>WrapITK warning: GetPointer() is now deprecated for 'itkLinearInterpolateImageFu<br>nctionIF2D'.<br>
WrapITK warning: GetPointer() is now deprecated for 'itkPyCommand'.<br>Traceback (most recent call last):<br> File "Registration1.py", line 78, in <module><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'll attach my source code as well.<br>
<br></div>Best,<br><br></div>Sami<br><div><div><br><br></div></div></div>