# combine two volumes into one using python

**URL:** <https://discourse.slicer.org/t/combine-two-volumes-into-one-using-python/23152>\
**Category:** Support\
**Tags:** python, cropping, roi\
**Created:** [April 27, 2022, 3:05pm UTC](https://discourse.slicer.org/t/combine-two-volumes-into-one-using-python/23152 "2022-04-27T15:05:41Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![mikebind](https://avatars.discourse-cdn.com/v4/letter/m/71e660/32.png) [@mikebind](https://discourse.slicer.org/u/mikebind)\
**Post date:** [April 28, 2022, 4:41pm UTC](https://discourse.slicer.org/t/combine-two-volumes-into-one-using-python/23152/5 "2022-04-28T16:41:36Z")

</div>

Here is a link to a module I created to do this: [GitHub - mikebind/SlicerStitchImageVolumes: A 3D Slicer (slicer.org) module for stitching together multiple image volumes into a single larger image volume.](https://github.com/mikebind/SlicerStitchImageVolumes) The ROI still needs to be created manually because for my workflows it was helpful to be able to cut out large regions of non-patient present in the full scans, but I think this will do everything else you want.

Let me know if you run into problems. It was created a while back, so it initially was set up to use the legacy AnnotationROI objects for the ROI, but I believe it has been updated to work equally well with the newer MarkupsROI objects.

---

_[View the full topic](https://discourse.slicer.org/t/combine-two-volumes-into-one-using-python/23152)._
