# Two 2D/3D image registration

**URL:** https://discourse.itk.org/t/two-2d-3d-image-registration/1771
**Category:** Uncategorized
**Created:** [April 10, 2019, 10:18am UTC](https://discourse.itk.org/t/two-2d-3d-image-registration/1771 "2019-04-10T10:18:58Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Mary1](https://discourse.itk.org/letter_avatar_proxy/v4/letter/m/f07891/32.png) [@Mary1](https://discourse.itk.org/u/Mary1)
#### Post date: [April 10, 2019, 10:18am UTC](https://discourse.itk.org/t/two-2d-3d-image-registration/1771/1 "2019-04-10T10:18:58Z")

</div>

Hi everyone,  
How can i use ITK framework to register two 2D- fixed images to one 3D moving image?  
I tried to edit the source code of itk “itkimageregistration.hxx” and “itkimage registration.h” by adding another fixed image and another metric and give the sum of the cost of these two metrics to the optimizer but I always get errors. Can you please help me?

---

<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 10, 2019, 2:20pm UTC](https://discourse.itk.org/t/two-2d-3d-image-registration/1771/2 "2019-04-10T14:20:41Z")

</div>

There is a remote module [TwoProjectionRegistration](https://github.com/InsightSoftwareConsortium/ITKTwoProjectionRegistration), which might do what you want. You can enable `Module_TwoProjectionRegistration` when configuring ITK to build it. More detailed description is in [https://www.insight-journal.org/browse/publication/784](https://www.insight-journal.org/browse/publication/784).

---

<div class="post-metadata">

### Author: ![Mary1](https://discourse.itk.org/letter_avatar_proxy/v4/letter/m/f07891/32.png) [@Mary1](https://discourse.itk.org/u/Mary1)
#### Post date: [April 11, 2019, 7:02am UTC](https://discourse.itk.org/t/two-2d-3d-image-registration/1771/3 "2019-04-11T07:02:59Z")

</div>

Thank you dzenanz,  
I have already seen that module, but i don’t think that it will works in my case. I want to do slicer extraction instead of projection, the idea is every iteration I want to extract 2d slices from 3d volume and register it with the 2d fixed using one transform, I will going to extract the slices by resample the 3d image into the two fixed images.  
I think it’s different from projection.

---

<div class="post-metadata">

### Author: ![kayarre](https://discourse.itk.org/user_avatar/discourse.itk.org/kayarre/32/669_2.png) [@kayarre](https://discourse.itk.org/u/kayarre)
#### Post date: [September 27, 2019, 4:06am UTC](https://discourse.itk.org/t/two-2d-3d-image-registration/1771/4 "2019-09-27T04:06:15Z")

</div>

Were you able to come up with a good solutiion. I am interested in 2d-3d registration for some research I am doing.
