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

Matt McCormick matt.mccormick at kitware.com
Mon Apr 18 14:17:18 EDT 2016


Hello,

An example for vector image registration based off
itkMeanSquaresImageToImageMetricv4VectorRegistrationTest is in
progress here:

  http://review.source.kitware.com/#/c/20922/


The itk::VectorImageToImageMetricTraitsv4 only works with the ITKv4
registration framework; the itk::ImageRegistrationMethod class is part
of the ITKv3 registration framework.  Classes that work together with
the ITKv4 framework have "v4" at the end of their name.

Hope this helps,
Matt

On Sun, Apr 17, 2016 at 12:54 AM, artioml <artioml at post.bgu.ac.il> wrote:
> 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
_____________________________________
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