[ITK] [ITK-users] Vector image deformable registration
artioml
artioml at post.bgu.ac.il
Sun Apr 17 00:54:26 EDT 2016
I solved the problem. Because I need to calculate a metric on a Vector image
I have used /MetricTraitsType/.
But the class /ImageRegistrationMethod/ doesn't take /MetricTraitsType/ as
part of its template. It defines an internal /ImageToImageMetric/ without
the trait.
So instead of using the registration method I did it directly with metric
and optimization method - Just as it implemented in the test named
/itkMeanSquaresImageToImageMetricv4RegistrationTest2/.
I think a possible fix for the /ImageRegistrationMethod/ would be to add
/MetricTraitsType/ to its template definition.
*From:*
/template< typename TFixedImage, typename TMovingImage >/
*To:*
/template<typename TFixedImage,typename TMovingImage,typename TVirtualImage
= TFixedImage,
typename TInternalComputationValueType = double,
typename TMetricTraits = DefaultImageToImageMetricTraitsv4<
TFixedImage,TMovingImage,TVirtualImage,TInternalComputationValueType >>/
And then just define the /ImageToImageMetricv4/ with this generics.
--
View this message in context: http://itk-users.7.n7.nabble.com/Vector-image-deformable-registration-tp37034p37035.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