# How can i reconstruct series or sequence of 2D DICOM images into 3D reconstruction?

**URL:** <https://discourse.itk.org/t/how-can-i-reconstruct-series-or-sequence-of-2d-dicom-images-into-3d-reconstruction/3495>\
**Category:** Beginner Questions\
**Tags:** dicom, python\
**Created:** [September 30, 2020, 2:23pm UTC](https://discourse.itk.org/t/how-can-i-reconstruct-series-or-sequence-of-2d-dicom-images-into-3d-reconstruction/3495 "2020-09-30T14:23:58Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Yuvi-416](https://discourse.itk.org/user_avatar/discourse.itk.org/yuvi-416/32/2279_2.png) [@Yuvi-416](https://discourse.itk.org/u/Yuvi-416)\
**Post date:** [September 30, 2020, 2:23pm UTC](https://discourse.itk.org/t/how-can-i-reconstruct-series-or-sequence-of-2d-dicom-images-into-3d-reconstruction/3495/1 "2020-09-30T14:23:58Z")

</div>

Hello there,  
I had a bunch of microscopy image in a .tif or a .czi extension but I manage to convert it into Dicom standard format using pydicom. Moreover, after conversion now I have a sequence of Dicom image like from (0-119, each subject has 1316x1316x120 (x,y,z)) for one subject. My goal is to transform this sequence of 2D .dcm image into 3D using ITK and VTK.

So, my question is: **Is it possible to perform 3D reconstruction using ITK and VTK for this kind of image, if yes then how can I perform it?**

I read some topic related to my query like 1. [Display 3D image using ITK and VTK](https://discourse.itk.org/t/display-3d-image-using-itk-and-vtk/897)  
2. [import 3D volume from itk to vtk](https://discourse.itk.org/t/import-3d-volume-from-itk-to-vtk/1673)  
But I didn´t understand it completely. I think these are done in window OS.

I am using macOS and I want to perform all these operations of python if possible.

It would be great if anyone suggests me some steps related to it or suggest me some better idea to perform 3D reconstruction.

---

<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:** [September 30, 2020, 2:28pm UTC](https://discourse.itk.org/t/how-can-i-reconstruct-series-or-sequence-of-2d-dicom-images-into-3d-reconstruction/3495/2 "2020-09-30T14:28:33Z")

</div>

Are you aware of this [example](https://itk.org/ITKExamples/src/IO/GDCM/ReadDICOMSeriesAndWrite3DImage/Documentation.html)? I think it does what you want. You might also want to try reading the TIFF images directly using [this example](https://github.com/InsightSoftwareConsortium/ITK/blob/master/Examples/IO/ImageSeriesReadWrite.cxx) or another one from [IO group](https://github.com/InsightSoftwareConsortium/ITK/tree/master/Examples/IO).

---

<div class="post-metadata">

**Author:** ![Yuvi-416](https://discourse.itk.org/user_avatar/discourse.itk.org/yuvi-416/32/2279_2.png) [@Yuvi-416](https://discourse.itk.org/u/Yuvi-416)\
**Post date:** [September 30, 2020, 3:26pm UTC](https://discourse.itk.org/t/how-can-i-reconstruct-series-or-sequence-of-2d-dicom-images-into-3d-reconstruction/3495/3 "2020-09-30T15:26:59Z")

</div>

Hello,  
Thanks for your reply.  
I have gone through your suggestion but I guess these suggestion are to create a 3D volume in a .nrrd format.  
But my goal is to perform 3D reconstruction using a series of 2D Dicom image.  
Any suggestion for 3D reconstruction and visualizing it after that.  
Thanks

---

<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:** [September 30, 2020, 4:51pm UTC](https://discourse.itk.org/t/how-can-i-reconstruct-series-or-sequence-of-2d-dicom-images-into-3d-reconstruction/3495/4 "2020-09-30T16:51:18Z")

</div>

If you just need to visualize the 3D image instead of writing to disk, try [itk::ViewImage](https://itk.org/Doxygen/html/classitk_1_1ViewImage.html) class. You will need to enable `Module_ITKVtkGlue` during CMake configuration step.
