# Codes for registration framework for fast alignment of 2D and 3D

**URL:** https://discourse.itk.org/t/codes-for-registration-framework-for-fast-alignment-of-2d-and-3d/4144
**Category:** Uncategorized
**Tags:** registration, python, simpleitk
**Created:** [May 20, 2021, 10:30am UTC](https://discourse.itk.org/t/codes-for-registration-framework-for-fast-alignment-of-2d-and-3d/4144 "2021-05-20T10:30:29Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![amitjaiswal](https://discourse.itk.org/user_avatar/discourse.itk.org/amitjaiswal/32/2089_2.png) [@amitjaiswal](https://discourse.itk.org/u/amitjaiswal)
#### Post date: [May 20, 2021, 10:30am UTC](https://discourse.itk.org/t/codes-for-registration-framework-for-fast-alignment-of-2d-and-3d/4144/1 "2021-05-20T10:30:29Z")

</div>

**Registration framework for fast alignment of 2D and 3D** intra and inter-modality images using rigid or deformable transformations.  
Is the code available for the second example (animation) given at [https://simpleitk.org/](https://simpleitk.org/) for registration?  
Thanks in advance.  
 ![image](https://discourse.itk.org/uploads/default/original/2X/e/e5f550371e06d79338cae9a3a0dac6839e6df805.png)

---

<div class="post-metadata">

### Author: ![zivy](https://discourse.itk.org/user_avatar/discourse.itk.org/zivy/32/1726_2.png) [@zivy](https://discourse.itk.org/u/zivy)
#### Post date: [May 20, 2021, 12:44pm UTC](https://discourse.itk.org/t/codes-for-registration-framework-for-fast-alignment-of-2d-and-3d/4144/2 "2021-05-20T12:44:09Z")

</div>

Hello @amitjaiswal,

Code that generates a [similar animation](https://github.com/InsightSoftwareConsortium/SimpleITK-Notebooks/blob/master/registration_visualization.gif) is available from the SimpleITK [Jupyter notebooks repository](https://github.com/InsightSoftwareConsortium/SimpleITK-Notebooks), see [here](https://github.com/InsightSoftwareConsortium/SimpleITK-Notebooks/blob/master/Utilities/intro_animation.py).

This specific animation extended that code. Don’t remember if the 3D was a fully custom solution or based on VTK . @dchen is your code available online?

---

<div class="post-metadata">

### Author: ![dchen](https://discourse.itk.org/user_avatar/discourse.itk.org/dchen/32/34_2.png) [@dchen](https://discourse.itk.org/u/dchen)
#### Post date: [May 20, 2021, 1:21pm UTC](https://discourse.itk.org/t/codes-for-registration-framework-for-fast-alignment-of-2d-and-3d/4144/3 "2021-05-20T13:21:33Z")

</div>

I haven’t put it online, but I can dig it up and see. IIRC, I did the actual rendering of the volumes using Slicer.

---

<div class="post-metadata">

### Author: ![amitjaiswal](https://discourse.itk.org/user_avatar/discourse.itk.org/amitjaiswal/32/2089_2.png) [@amitjaiswal](https://discourse.itk.org/u/amitjaiswal)
#### Post date: [May 22, 2021, 10:39am UTC](https://discourse.itk.org/t/codes-for-registration-framework-for-fast-alignment-of-2d-and-3d/4144/4 "2021-05-22T10:39:25Z")

</div>

@zivy, thank you very much.  
I’ll go through the codes and see how helpful it is.

---

<div class="post-metadata">

### Author: ![amitjaiswal](https://discourse.itk.org/user_avatar/discourse.itk.org/amitjaiswal/32/2089_2.png) [@amitjaiswal](https://discourse.itk.org/u/amitjaiswal)
#### Post date: [May 22, 2021, 10:41am UTC](https://discourse.itk.org/t/codes-for-registration-framework-for-fast-alignment-of-2d-and-3d/4144/5 "2021-05-22T10:41:37Z")

</div>

@dchen, thank you.  
I would really appreciate if you find and share the codes.
