[Insight-users] [ITK Community] ITK 4 Registration examples with Python
Matt McCormick
matt.mccormick at kitware.com
Sun Dec 1 19:52:59 EST 2013
Hi Sami,
Change
RegularStepGradientDescentBaseOptimizer
to
RegularStepGradientDescentOptimizer
The warnings reflect more work that needs to be done in the wrapping code.
However, the "GetPointer()" warnings are from your script -- those calls
can be removed.
Hope this helps,
Matt
On Thu, Nov 28, 2013 at 3:38 AM, Sami Koho <sami.koho at gmail.com> wrote:
> 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
>
>
>
> _____________________________________
> 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
>
> _______________________________________________
> Community mailing list
> Community at itk.org
> http://public.kitware.com/cgi-bin/mailman/listinfo/community
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20131201/b49b2421/attachment.htm>
More information about the Insight-users
mailing list