<div dir="ltr">Yago,<div><br></div><div>Regarding your second question:</div><div><br></div><div>You can generate a deformation field from the BSpline by using the method shown </div><div>in the deformable registration example.</div>
<div><br></div><div>See for example:</div><div><a href="https://github.com/InsightSoftwareConsortium/ITK/blob/master/Examples/Registration/DeformableRegistration8.cxx#L506">https://github.com/InsightSoftwareConsortium/ITK/blob/master/Examples/Registration/DeformableRegistration8.cxx#L506</a><br>
</div><div><br></div><div>Then you could use one of these filters:</div><div><br></div><div><div>Filtering/DisplacementField/include/itkInverseDisplacementFieldImageFilter.h</div><div><br></div><div>Filtering/DisplacementField/include/itkInvertDisplacementFieldImageFilter.h</div>
<div><br></div><div>Filtering/DisplacementField/include/itkIterativeInverseDisplacementFieldImageFilter.h</div><div><br></div></div><div><br></div><div><br></div><div> Thanks</div><div><br></div><div> Luis</div>
<div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Dec 10, 2013 at 3:07 PM, Yago Diez <span dir="ltr"><<a href="mailto:yagodiezdonoso@gmail.com" target="_blank">yagodiezdonoso@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><br></div>Hi, <br><div><br></div><div>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 <br>
<br>typedef itk::BSplineDeformableTransform< double, 3, 3 > DeformableTransformType;<br></div><div><br><br></div><div>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?<br>
<br></div><div>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?<br><br></div>
<div>Thank you all once more for all your help <br></div><span class="HOEnZb"><font color="#888888"><div>Yago<br></div><br></font></span></div>
<br>_____________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at<br>
<a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Kitware offers ITK Training Courses, for more information visit:<br>
<a href="http://www.kitware.com/products/protraining.php" target="_blank">http://www.kitware.com/products/protraining.php</a><br>
<br>
Please keep messages on-topic and check the ITK FAQ at:<br>
<a href="http://www.itk.org/Wiki/ITK_FAQ" target="_blank">http://www.itk.org/Wiki/ITK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.itk.org/mailman/listinfo/insight-users" target="_blank">http://www.itk.org/mailman/listinfo/insight-users</a><br>
<br>_______________________________________________<br>
Community mailing list<br>
<a href="mailto:Community@itk.org">Community@itk.org</a><br>
<a href="http://public.kitware.com/cgi-bin/mailman/listinfo/community" target="_blank">http://public.kitware.com/cgi-bin/mailman/listinfo/community</a><br>
<br></blockquote></div><br></div>