[ITK Community] [Insight-users] Inverting a Bsplines transform (or making a deformation field from a bsplines transform)

Luis Ibanez luis.ibanez at kitware.com
Fri Dec 13 09:20:51 EST 2013


Yago,

Regarding your second question:

You can generate a deformation field from the BSpline by using the method
shown
in the deformable registration example.

See for example:
https://github.com/InsightSoftwareConsortium/ITK/blob/master/Examples/Registration/DeformableRegistration8.cxx#L506

Then you could use one of these filters:

Filtering/DisplacementField/include/itkInverseDisplacementFieldImageFilter.h

Filtering/DisplacementField/include/itkInvertDisplacementFieldImageFilter.h

Filtering/DisplacementField/include/itkIterativeInverseDisplacementFieldImageFilter.h



    Thanks

        Luis



On Tue, Dec 10, 2013 at 3:07 PM, Yago Diez <yagodiezdonoso at gmail.com> wrote:

>
> Hi,
>
> In one application I am needing to deform points instead of images, so I
> mainly have the opposites of all the deformations I need. So far, and
> thanks to a lot of help received here, I managed to invert deformation
> fields and several kinds of Rigid and Affine deformations, but so far I
> have had no luck with
>
> typedef itk::BSplineDeformableTransform< double, 3, 3 >
> DeformableTransformType;
>
>
> I have tried to use the GetInverseTransform() method (which worked for
> rigid and affine transformations), I can compile it but I get a
> segmentation fault whenever I try to use my inverted bsplines transform
> (the output of the deformation is NULL). I assume this comes from the fact
> that inverting a Bsplines transform is pretty difficult. My first question
> is: Is there a "quick" way to invert a Bsplines transform?
>
> If the answer is no, I can also invert a deformation field if I can get
> one from the bspline tranform, so the second question is: How can I
> generate a deformation field from a Bsplines transform?
>
> Thank you all once more for all your help
> Yago
>
>
> _____________________________________
> 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://public.kitware.com/pipermail/community/attachments/20131213/39519a29/attachment.html>
-------------- 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