# vtkDICOMCTGenerator in vtkjs?

**URL:** https://discourse.vtk.org/t/vtkdicomctgenerator-in-vtkjs/7110
**Category:** Web
**Created:** [November 8, 2021, 4:21pm UTC](https://discourse.vtk.org/t/vtkdicomctgenerator-in-vtkjs/7110 "2021-11-08T16:21:10Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![shanebenlolo](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/s/3da27b/32.png) [@shanebenlolo](https://discourse.vtk.org/u/shanebenlolo)
#### Post date: [November 8, 2021, 4:21pm UTC](https://discourse.vtk.org/t/vtkdicomctgenerator-in-vtkjs/7110/1 "2021-11-08T16:21:10Z")

</div>

Hello,

I have 2 vtkjs image data objects: a CT scan, and a corresponding segmentation labelmap. I’m trying to take these two objects and write them to a DICOM file.

I was looking through vtk’s API and saw that there is a vtkDICOMCTGenerator method, found here: [vtk-dicom: vtkDICOMCTGenerator Class Reference](https://dgobbi.github.io/vtk-dicom/doc/api/classvtk_d_i_c_o_m_c_t_generator.html).

Does anything like this exist for vtkjs?

I would also be okay with having a way to append my vtk labelmap obj to a pre-existing CT Dicom file.

---

<div class="post-metadata">

### Author: ![Forrest](https://discourse.vtk.org/user_avatar/discourse.vtk.org/forrest/32/300_2.png) [@Forrest](https://discourse.vtk.org/u/Forrest)
#### Post date: [November 9, 2021, 6:31pm UTC](https://discourse.vtk.org/t/vtkdicomctgenerator-in-vtkjs/7110/2 "2021-11-09T18:31:03Z")

</div>

There currently is no vtkDICOMCTGenerator for vtk.js. You will have to use a different dicom library for doing that for now.
