# Combining overlapping 3D images

**URL:** https://discourse.itk.org/t/combining-overlapping-3d-images/5059
**Category:** Uncategorized
**Created:** [June 6, 2022, 3:33pm UTC](https://discourse.itk.org/t/combining-overlapping-3d-images/5059 "2022-06-06T15:33:26Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Ale\_Ballester](https://discourse.itk.org/user_avatar/discourse.itk.org/ale_ballester/32/2707_2.png) [@Ale\_Ballester](https://discourse.itk.org/u/Ale_Ballester)
#### Post date: [June 6, 2022, 3:33pm UTC](https://discourse.itk.org/t/combining-overlapping-3d-images/5059/1 "2022-06-06T15:33:27Z")

</div>

Let’s say I have two 3D ultrasound images representing two overlapping regions. How can I combine those images into a single 3D image? I want to preserve spatial information.

---

<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: [June 6, 2022, 4:10pm UTC](https://discourse.itk.org/t/combining-overlapping-3d-images/5059/2 "2022-06-06T16:10:07Z")

</div>

I think that Francois had some code to do that, he has many [public repositories](https://github.com/fbudin69500?tab=repositories&type=source). The repo with that might be called `utilities`, or have that word in the name.

The reason there is no unified tool for that, is that it can be done in many ways. And the most appropriate way depends on the application.

---

<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: [June 6, 2022, 4:38pm UTC](https://discourse.itk.org/t/combining-overlapping-3d-images/5059/3 "2022-06-06T16:38:52Z")

</div>

Hello @Ale_Ballester,

This [jupyter notebook](https://github.com/InsightSoftwareConsortium/SimpleITK-Notebooks/blob/master/Python/69_x-ray-panorama.ipynb) may be of interest. Specifically, the functions `create_images_in_shared_coordinate_system` and `composite_images_alpha_blending`. The former requires adaptation from 2D to 3D, but that is trivial.
