[ITK Community] [Insight-users] ITK 4 Registration examples with Python

Sami Koho sami.koho at gmail.com
Thu Nov 28 03:38:02 EST 2013


Hello,

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:

Warning: Unknown parameter 'itk::VectorContainer< unsigned char, double >'
in te
mplate 'itk::DataObjectDecorator'
Warning: Unknown parameter 'itk::DefaultStaticMeshTraits<
float,2,2,float,float
>' in template 'itk::PointSet'
Warning: Unknown parameter 'itk::DefaultDynamicMeshTraits<
float,2,2,float,float
 >' in template 'itk::PointSet'
Warning: Unknown parameter 'itk::DefaultStaticMeshTraits<
float,3,3,float,float
>' in template 'itk::PointSet'
Warning: Unknown parameter 'itk::DefaultDynamicMeshTraits<
float,3,3,float,float
 >' in template 'itk::PointSet'
Warning: Unknown parameter 'itk::DefaultStaticMeshTraits<
double,2,2,double,doub
le,double >' in template 'itk::PointSet'
Warning: Unknown parameter 'itk::DefaultStaticMeshTraits<
double,3,3,double,doub
le,double >' in template 'itk::PointSet'
Warning: Unknown parameter 'itk::DefaultStaticMeshTraits< itk::Matrix
<double,2,
2>,2,2,float,float,itk::Matrix <double,2,2> >' in template 'itk::PointSet'
Warning: Unknown parameter 'itk::DefaultStaticMeshTraits< itk::Matrix
<double,3,
3>,3,3,float,float,itk::Matrix <double,3,3> >' in template 'itk::PointSet'
Warning: Unknown parameter 'itk::DefaultStaticMeshTraits<
float,2,2,float,float
>' in template 'itk::Mesh'
Warning: Unknown parameter 'itk::DefaultDynamicMeshTraits<
float,2,2,float,float
 >' in template 'itk::Mesh'
Warning: Unknown parameter 'itk::DefaultStaticMeshTraits<
float,3,3,float,float
>' in template 'itk::Mesh'
Warning: Unknown parameter 'itk::DefaultDynamicMeshTraits<
float,3,3,float,float
 >' in template 'itk::Mesh'
Warning: Unknown parameter 'itk::CellInterface< float, itk::CellTraitsInfo<
2,fl
oat,float,unsigned long,unsigned long,unsigned long,itk::Point< float,2
>,itk::M
apContainer< unsigned long,itk::Point< float,2 > >, std::set< unsigned
long, std
::less< unsigned long > > > > *' in template 'itk::MapContainer'
Warning: Unknown parameter 'itk::CellInterface< double,
itk::CellTraitsInfo< 2,d
ouble,double,unsigned long,unsigned long,unsigned long,itk::Point< double,2
>,it
k::MapContainer< unsigned long,itk::Point< double,2 > >, std::set< unsigned
long
, std::less< unsigned long > > > > *' in template 'itk::MapContainer'
Warning: Unknown parameter 'itk::CellInterface< float, itk::CellTraitsInfo<
3,fl
oat,float,unsigned long,unsigned long,unsigned long,itk::Point< float,3
>,itk::M
apContainer< unsigned long,itk::Point< float,3 > >, std::set< unsigned
long, std
::less< unsigned long > > > > *' in template 'itk::MapContainer'
Warning: Unknown parameter 'itk::CellInterface< double,
itk::CellTraitsInfo< 3,d
ouble,double,unsigned long,unsigned long,unsigned long,itk::Point< double,3
>,it
k::MapContainer< unsigned long,itk::Point< double,3 > >, std::set< unsigned
long
, std::less< unsigned long > > > > *' in template 'itk::MapContainer'
Warning: Unknown parameter 'itk::CellInterface< float, itk::CellTraitsInfo<
2,fl
oat,float,unsigned long,unsigned long,unsigned long,itk::Point< float,2
>,itk::M
apContainer< unsigned long,itk::Point< float,2 > >, std::set< unsigned
long, std
::less< unsigned long > > > > *' in template 'itk::VectorContainer'
Warning: Unknown parameter 'itk::CellInterface< double,
itk::CellTraitsInfo< 2,d
ouble,double,unsigned long,unsigned long,unsigned long,itk::Point< double,2
>,it
k::MapContainer< unsigned long,itk::Point< double,2 > >, std::set< unsigned
long
, std::less< unsigned long > > > > *' in template 'itk::VectorContainer'
Warning: Unknown parameter 'itk::CellInterface< float, itk::CellTraitsInfo<
3,fl
oat,float,unsigned long,unsigned long,unsigned long,itk::Point< float,3
>,itk::M
apContainer< unsigned long,itk::Point< float,3 > >, std::set< unsigned
long, std
::less< unsigned long > > > > *' in template 'itk::VectorContainer'
Warning: Unknown parameter 'itk::CellInterface< double,
itk::CellTraitsInfo< 3,d
ouble,double,unsigned long,unsigned long,unsigned long,itk::Point< double,3
>,it
k::MapContainer< unsigned long,itk::Point< double,3 > >, std::set< unsigned
long
, std::less< unsigned long > > > > *' in template 'itk::VectorContainer'
Warning: Unknown parameter 'itk::CellTraitsInfo< 2,float,float,unsigned
long,uns
igned long,unsigned long,itk::Point< float,2 >,itk::MapContainer< unsigned
long,
itk::Point< float,2 > >, std::set< unsigned long, std::less< unsigned long
> > >
' in template 'itk::CellInterfaceVisitor'
Warning: Unknown parameter 'itk::CellTraitsInfo< 2,double,double,unsigned
long,u
nsigned long,unsigned long,itk::Point< double,2 >,itk::MapContainer<
unsigned lo
ng,itk::Point< double,2 > >, std::set< unsigned long, std::less< unsigned
long >
 > >' in template 'itk::CellInterfaceVisitor'
Warning: Unknown parameter 'itk::CellTraitsInfo< 3,float,float,unsigned
long,uns
igned long,unsigned long,itk::Point< float,3 >,itk::MapContainer< unsigned
long,
itk::Point< float,3 > >, std::set< unsigned long, std::less< unsigned long
> > >
' in template 'itk::CellInterfaceVisitor'
Warning: Unknown parameter 'itk::CellTraitsInfo< 3,double,double,unsigned
long,u
nsigned long,unsigned long,itk::Point< double,3 >,itk::MapContainer<
unsigned lo
ng,itk::Point< double,3 > >, std::set< unsigned long, std::less< unsigned
long >
 > >' in template 'itk::CellInterfaceVisitor'
Warning: Unknown parameter 'itk::CellTraitsInfo< 2,float,float,unsigned
long,uns
igned long,unsigned long,itk::Point< float,2 >,itk::MapContainer< unsigned
long,
itk::Point< float,2 > >, std::set< unsigned long, std::less< unsigned long
> > >
' in template 'itk::CellInterface'
Warning: Unknown parameter 'itk::CellTraitsInfo< 2,double,double,unsigned
long,u
nsigned long,unsigned long,itk::Point< double,2 >,itk::MapContainer<
unsigned lo
ng,itk::Point< double,2 > >, std::set< unsigned long, std::less< unsigned
long >
 > >' in template 'itk::CellInterface'
Warning: Unknown parameter 'itk::CellTraitsInfo< 3,float,float,unsigned
long,uns
igned long,unsigned long,itk::Point< float,3 >,itk::MapContainer< unsigned
long,
itk::Point< float,3 > >, std::set< unsigned long, std::less< unsigned long
> > >
' in template 'itk::CellInterface'
Warning: Unknown parameter 'itk::CellTraitsInfo< 3,double,double,unsigned
long,u
nsigned long,unsigned long,itk::Point< double,3 >,itk::MapContainer<
unsigned lo
ng,itk::Point< double,3 > >, std::set< unsigned long, std::less< unsigned
long >
 > >' in template 'itk::CellInterface'
Warning: Unknown parameter 'itk::Mesh<
float,2,itk::DefaultStaticMeshTraits< flo
at,2,2,float > >' in template 'itk::MeshToMeshFilter'
Warning: Unknown parameter 'itk::Mesh<
float,2,itk::DefaultDynamicMeshTraits< fl
oat,2,2,float > >' in template 'itk::MeshToMeshFilter'
Warning: Unknown parameter 'itk::Mesh<
float,3,itk::DefaultStaticMeshTraits< flo
at,3,3,float > >' in template 'itk::MeshToMeshFilter'
Warning: Unknown parameter 'itk::Mesh<
float,3,itk::DefaultDynamicMeshTraits< fl
oat,3,3,float > >' in template 'itk::MeshToMeshFilter'
WrapITK warning: GetPointer() is now deprecated for
'itkMeanSquaresImageToImageM
etricIF2IF2'.
WrapITK warning: GetPointer() is now deprecated for
'itkRegularStepGradientDesce
ntBaseOptimizer'.
WrapITK warning: GetPointer() is now deprecated for
'itkTranslationTransformD2'.

WrapITK warning: GetPointer() is now deprecated for
'itkLinearInterpolateImageFu
nctionIF2D'.
WrapITK warning: GetPointer() is now deprecated for 'itkPyCommand'.
Traceback (most recent call last):
  File "Registration1.py", line 78, in <module>
    registration.Update()
RuntimeError: :0:
This method MUST be overloaded in derived classes

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.

Best,

Sami
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/community/attachments/20131128/fb4b17d7/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Registration1.py
Type: application/octet-stream
Size: 3604 bytes
Desc: not available
URL: <http://public.kitware.com/pipermail/community/attachments/20131128/fb4b17d7/attachment-0002.obj>
-------------- next part --------------
_____________________________________
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


More information about the Community mailing list