# vtkimageViewer2 can't Render the DicomSeries

**URL:** https://discourse.vtk.org/t/vtkimageviewer2-cant-render-the-dicomseries/3171
**Category:** Support
**Created:** [April 28, 2020, 3:49pm UTC](https://discourse.vtk.org/t/vtkimageviewer2-cant-render-the-dicomseries/3171 "2020-04-28T15:49:49Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Amnesie](https://discourse.vtk.org/user_avatar/discourse.vtk.org/amnesie/32/1673_2.png) [@Amnesie](https://discourse.vtk.org/u/Amnesie)
#### Post date: [April 28, 2020, 3:49pm UTC](https://discourse.vtk.org/t/vtkimageviewer2-cant-render-the-dicomseries/3171/1 "2020-04-28T15:49:49Z")

</div>

Hello everyone ,  
I used ITK to create a Dicomseries from a Raw Volumen pure .raw data not include mhd or any header i just add some tags by manual ,so the Dicomseries dont have much Dicom-Tags.  
Then i try to render them into a vtkViewer2 , they can be read ,but nothing on the widgets.I try to use imageJ read them ,then it works. or I input some nomal dicom into vtkviewer2,it also works. My vtk version is 8.20  
I think there must be some Dicom-Tags need to add . here is the dicomtag of one Dicom which i did.

 ![dicom](https://discourse.vtk.org/uploads/default/original/2X/d/d7953735d9e4d2ad84860dbb05aace07e29062bc.png)

---

<div class="post-metadata">

### Author: ![lassoan](https://discourse.vtk.org/user_avatar/discourse.vtk.org/lassoan/32/50_2.png) [@lassoan](https://discourse.vtk.org/u/lassoan)
#### Post date: [April 29, 2020, 8:24pm UTC](https://discourse.vtk.org/t/vtkimageviewer2-cant-render-the-dicomseries/3171/2 "2020-04-29T20:24:21Z")

</div>

I would not recommend to implement DICOM file writer from scratch. Instead vtkDICOM library or use other image file formats (that VTK has built-in writers for).

---

<div class="post-metadata">

### Author: ![Amnesie](https://discourse.vtk.org/user_avatar/discourse.vtk.org/amnesie/32/1673_2.png) [@Amnesie](https://discourse.vtk.org/u/Amnesie)
#### Post date: [April 30, 2020, 4:54pm UTC](https://discourse.vtk.org/t/vtkimageviewer2-cant-render-the-dicomseries/3171/4 "2020-04-30T16:54:26Z")

</div>

I found the solution for my strange question XD.

The imageJ screenshot above contains a lot of Dicomtags. And I know ImageJ can read my dicom and display.  
**That means those Tags are necessary，Instead, something is missing.**  
Then I noticed that there were some Tags that I hadn’t set, but were assigned in imageJ.  
That means ImageJ set his default value ,therefore my dicom can be read and display.  
so mission is to find them and set them in code manually.

Then everything will be fine.

---

<div class="post-metadata">

### Author: ![Amnesie](https://discourse.vtk.org/user_avatar/discourse.vtk.org/amnesie/32/1673_2.png) [@Amnesie](https://discourse.vtk.org/u/Amnesie)
#### Post date: [April 30, 2020, 5:00pm UTC](https://discourse.vtk.org/t/vtkimageviewer2-cant-render-the-dicomseries/3171/5 "2020-04-30T17:00:43Z")

</div>

I found the solution by myself . And shared as a reply above. and this [example](https://simpleitk.readthedocs.io/en/master/link_DicomSeriesFromArray_docs.html#) inspired me.  
also Thank you so much for your reply ,Sir. 😀 😀
