# Deformable Registration

**URL:** <https://discourse.itk.org/t/deformable-registration/2955>\
**Category:** Uncategorized\
**Created:** [April 16, 2020, 5:27pm UTC](https://discourse.itk.org/t/deformable-registration/2955 "2020-04-16T17:27:55Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![srbn.ghosh89](https://discourse.itk.org/letter_avatar_proxy/v4/letter/s/3ec8ea/32.png) [@srbn.ghosh89](https://discourse.itk.org/u/srbn.ghosh89)\
**Post date:** [April 16, 2020, 5:27pm UTC](https://discourse.itk.org/t/deformable-registration/2955/1 "2020-04-16T17:27:55Z")

</div>

Hi,

I am trying to do a deformable registration after doing a landmark-based registration between a triangular simplex mesh and CT image.

 ![Capture](https://discourse.itk.org/uploads/default/original/2X/8/855b2d7b52ccc8bd2839c47224a8dbea514d8c0e.jpeg)

In the snapshot, after using a landmark-based registration I got the registered bone mesh(The colored outline) and volume. To do a perfectly aligned registration, I want to do a deformation.  
Is it possible to do a deformable bone mesh registration using ITK?  
I have attached the files in the link.  
[https://drive.google.com/drive/folders/1M4N3zyPowHToFYmzRPkeFAqMK-woe9cv](https://drive.google.com/drive/folders/1M4N3zyPowHToFYmzRPkeFAqMK-woe9cv)

Regards  
Shrabani Ghosh

---

<div class="post-metadata">

**Author:** ![dzenanz](https://discourse.itk.org/user_avatar/discourse.itk.org/dzenanz/32/1093_2.png) [@dzenanz](https://discourse.itk.org/u/dzenanz)\
**Post date:** [April 16, 2020, 5:44pm UTC](https://discourse.itk.org/t/deformable-registration/2955/2 "2020-04-16T17:44:03Z")

</div>

ITK has a lot of deformable registration [examples](https://github.com/InsightSoftwareConsortium/ITK/tree/master/Examples/RegistrationITKv4). Most interesting to you should be these two:  
[ModelToImageRegistration1.cxx](https://github.com/InsightSoftwareConsortium/ITK/blob/master/Examples/RegistrationITKv4/ModelToImageRegistration1.cxx)  
[ModelToImageRegistration2.cxx](https://github.com/InsightSoftwareConsortium/ITK/blob/master/Examples/RegistrationITKv4/ModelToImageRegistration2.cxx)

---

<div class="post-metadata">

**Author:** ![srbn.ghosh89](https://discourse.itk.org/letter_avatar_proxy/v4/letter/s/3ec8ea/32.png) [@srbn.ghosh89](https://discourse.itk.org/u/srbn.ghosh89)\
**Post date:** [April 17, 2020, 2:59pm UTC](https://discourse.itk.org/t/deformable-registration/2955/3 "2020-04-17T14:59:31Z")

</div>

Hi,

In these examples, Can I save the registered object? It only shows the transformation values.

Regards  
Shrabani Ghosh

---

<div class="post-metadata">

**Author:** ![dzenanz](https://discourse.itk.org/user_avatar/discourse.itk.org/dzenanz/32/1093_2.png) [@dzenanz](https://discourse.itk.org/u/dzenanz)\
**Post date:** [April 17, 2020, 3:05pm UTC](https://discourse.itk.org/t/deformable-registration/2955/4 "2020-04-17T15:05:33Z")

</div>

If you want to save the image, use [resample filter](https://itk.org/ITKExamples/src/Filtering/ImageGrid/ResampleAnImage/Documentation.html). If you want to save the mesh, simply update each point’s position by the transform’s [TransformPoint](https://itk.org/Doxygen/html/classitk_1_1Transform.html#a4e2ff88e9abbf728d7320be5df203de0) method, and then save it.
