[ITK] [ITK-users] Vector image deformable registration

artioml artioml at post.bgu.ac.il
Sat Apr 16 03:40:23 EDT 2016


Hello,

I am trying to do BSplines *Deformable registration* of 2D *vector images* -
each pixel is a vector with a length of 3. There is no *example* to perform
such a thing.

I did find a test named:
*itkMeanSquaresImageToImageMetricv4VectorRegistrationTest*
located at: Modules/Registration/Metricsv4/test

I tried to fuse it with *DeformableRegistration4* example

I have replaced the 'PixelType' from '/float/' to '/itk::Vector<double,
3>/'.
And the metric 
*from:*
/typedef itk::CorrelationImageToImageMetricv4<FixedImageType,
MovingImageType >  MetricType;/
*to:*
/typedef itk::VectorImageToImageMetricTraitsv4< ImageType, ImageType,
ImageType, vectorLength, double > MetricTraitsType;
typedef itk::MeanSquaresImageToImageMetricv4< ImageType, ImageType,
ImageType, double, MetricTraitsType > MetricType;/

When I try to compile it I get long error list. The first error *dump is
here bellow*. Do you have any idea what I did wrong?

/In file included from
/home/art/SourceCode/InsightToolkit-4.8.2/Modules/Core/Common/include/itkLightObject.h:21:0,
                 from
/home/art/SourceCode/InsightToolkit-4.8.2/Modules/Core/Common/include/itkObject.h:31,
                 from
/home/art/SourceCode/InsightToolkit-4.8.2/Modules/Core/Common/include/itkDataObject.h:31,
                 from
/home/art/SourceCode/InsightToolkit-4.8.2/Modules/Core/Common/include/itkProcessObject.h:31,
                 from
/home/art/SourceCode/InsightToolkit-4.8.2/Modules/Registration/RegistrationMethodsv4/include/itkImageRegistrationMethodv4.h:21,
                 from
/home/art/SourceCode/InsightToolkit-4.8.2/Examples/ArtTest/VectorRegistration.cxx:1:
/home/art/SourceCode/InsightToolkit-4.8.2/Modules/Core/Common/include/itkConceptChecking.h:
In instantiation of ‘struct
itk::Concept::IsFloatingPoint<itk::Vector<double, 3u> >’:
/home/art/SourceCode/InsightToolkit-4.8.2/Modules/Registration/Metricsv4/include/itkDefaultImageToImageMetricTraitsv4.h:146:3:  
required from ‘class
itk::DefaultImageToImageMetricTraitsv4<itk::Image<itk::Vector<double,
3u>, 2u>, itk::Image<itk::Vector<double, 3u>, 2u>,
itk::Image<itk::Vector<double, 3u>, 2u>, double>’
/home/art/SourceCode/InsightToolkit-4.8.2/Modules/Registration/Metricsv4/include/itkImageToImageMetricv4.h:291:60:  
required from ‘class
itk::ImageToImageMetricv4<itk::Image<itk::Vector<double, 3u>, 2u>,
itk::Image<itk::Vector<double, 3u>, 2u>,
itk::Image<itk::Vector<double, 3u>, 2u>, double,
itk::DefaultImageToImageMetricTraitsv4<itk::Image<itk::Vector<double,
3u>, 2u>, itk::Image<itk::Vector<double, 3u>, 2u>,
itk::Image<itk::Vector<double, 3u>, 2u>, double> >’
/home/art/SourceCode/InsightToolkit-4.8.2/Modules/Registration/RegistrationMethodsv4/include/itkImageRegistrationMethodv4.h:184:71:  
required from ‘class
itk::ImageRegistrationMethodv4<itk::Image<itk::Vector<double, 3u>,
2u>, itk::Image<itk::Vector<double, 3u>, 2u> >’
/home/art/SourceCode/InsightToolkit-4.8.2/Examples/ArtTest/VectorRegistration.cxx:104:21:  
required from here
/home/art/SourceCode/InsightToolkit-4.8.2/Modules/Core/Common/include/itkMacro.h:699:53:
error: ‘is_integer’ is not a member of
‘itk::NumericTraits<itk::Vector<double, 3u> >’
 #define itkStaticConstMacro(name, type, value) enum { name = value }
                                                     ^
/home/art/SourceCode/InsightToolkit-4.8.2/Modules/Core/Common/include/itkConceptChecking.h:782:3:
note: in expansion of macro ‘itkStaticConstMacro’
   itkStaticConstMacro(Integral, bool, NumericTraits< T >::is_integer);
   ^
/home/art/SourceCode/InsightToolkit-4.8.2/Modules/Core/Common/include/itkMacro.h:699:53:
error: ‘is_exact’ is not a member of
‘itk::NumericTraits<itk::Vector<double, 3u> >’
 #define itkStaticConstMacro(name, type, value) enum { name = value }
                                                     ^
/home/art/SourceCode/InsightToolkit-4.8.2/Modules/Core/Common/include/itkConceptChecking.h:783:3:
note: in expansion of macro ‘itkStaticConstMacro’
   itkStaticConstMacro(IsExact, bool, NumericTraits< T >::is_exact);/



--
View this message in context: http://itk-users.7.n7.nabble.com/Vector-image-deformable-registration-tp37034.html
Sent from the ITK - Users mailing list archive at Nabble.com.
_____________________________________
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://public.kitware.com/mailman/listinfo/insight-users


More information about the Community mailing list