# VTK merge to create 3D image

**URL:** <https://discourse.slicer.org/t/vtk-merge-to-create-3d-image/2876>\
**Category:** Support\
**Created:** [May 22, 2018, 2:21pm UTC](https://discourse.slicer.org/t/vtk-merge-to-create-3d-image/2876 "2018-05-22T14:21:32Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alex\_Wiley](https://avatars.discourse-cdn.com/v4/letter/a/ccd318/32.png) [@Alex\_Wiley](https://discourse.slicer.org/u/Alex_Wiley)\
**Post date:** [May 22, 2018, 2:21pm UTC](https://discourse.slicer.org/t/vtk-merge-to-create-3d-image/2876/1 "2018-05-22T14:21:32Z")

</div>

Operating system:  
Slicer version: 4.3.1  
Expected behavior:  
Actual behaviour:

I am trying to merge VTK files to stitch together a 3D image.

---

<div class="post-metadata">

**Author:** ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)\
**Post date:** [May 22, 2018, 6:25pm UTC](https://discourse.slicer.org/t/vtk-merge-to-create-3d-image/2876/2 "2018-05-22T18:25:04Z")

</div>

Does this post answer your question? [How to stitch together two sets of CT slices to make one file](https://discourse.slicer.org/t/how-to-stitch-together-two-sets-of-ct-slices-to-make-one-file/1197/4?u=lassoan)

Important: use latest stable version of Slicer (or even latest nightly version). You miss out on years of fixes and improvements if you still use Slicer-4.3.1.

---

<div class="post-metadata">

**Author:** ![Alex\_Wiley](https://avatars.discourse-cdn.com/v4/letter/a/ccd318/32.png) [@Alex\_Wiley](https://discourse.slicer.org/u/Alex_Wiley)\
**Post date:** [May 24, 2018, 12:36pm UTC](https://discourse.slicer.org/t/vtk-merge-to-create-3d-image/2876/3 "2018-05-24T12:36:36Z")

</div>

No it does not. I am using VTK 3D image files. They all contain about 250 slices. I need to stitch multiple together.

Alex

---

<div class="post-metadata">

**Author:** ![Alex\_Wiley](https://avatars.discourse-cdn.com/v4/letter/a/ccd318/32.png) [@Alex\_Wiley](https://discourse.slicer.org/u/Alex_Wiley)\
**Post date:** [May 24, 2018, 1:36pm UTC](https://discourse.slicer.org/t/vtk-merge-to-create-3d-image/2876/4 "2018-05-24T13:36:56Z")

</div>

The error isL

slicer:000007FEE58BD840: exception caught!

itk:: MemoryAllocationError (00000000046699E8)  
location: “unknown”

---

<div class="post-metadata">

**Author:** ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)\
**Post date:** [May 24, 2018, 5:51pm UTC](https://discourse.slicer.org/t/vtk-merge-to-create-3d-image/2876/5 "2018-05-24T17:51:20Z")

</div>

If you use legacy “.vtk” files then in “Add data” dialog you need select “Volume” in the description column (since .vtk files can contain meshes, volumes, etc.).

---

<div class="post-metadata">

**Author:** ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)\
**Post date:** [May 24, 2018, 5:55pm UTC](https://discourse.slicer.org/t/vtk-merge-to-create-3d-image/2876/6 "2018-05-24T17:55:01Z")

</div>

> [@Alex\_Wiley](#):
>
> No it does not. I am using VTK 3D image files. They all contain about 250 slices. I need to stitch multiple together.

The link that I’ve posted above explains exactly this. Follow the steps described and if you get stuck at any point then let us know.
