# Reading and writing a DICOM slice in ITK with GDCM removes tags

**URL:** https://discourse.itk.org/t/reading-and-writing-a-dicom-slice-in-itk-with-gdcm-removes-tags/861
**Category:** Engineering
**Tags:** dicom
**Created:** [April 20, 2018, 3:30pm UTC](https://discourse.itk.org/t/reading-and-writing-a-dicom-slice-in-itk-with-gdcm-removes-tags/861 "2018-04-20T15:30:50Z")
**Posts on this page:** 1
**Showing post:** 3

<div class="post-metadata">

### Author: ![benpresles](https://discourse.itk.org/letter_avatar_proxy/v4/letter/b/cab0a1/32.png) [@benpresles](https://discourse.itk.org/u/benpresles)
#### Post date: [April 23, 2018, 9:47am UTC](https://discourse.itk.org/t/reading-and-writing-a-dicom-slice-in-itk-with-gdcm-removes-tags/861/3 "2018-04-23T09:47:01Z")

</div>

Thanks for your reply. I added in my program gdcmImageIO-\>SetLoadPrivateTags(true); and indeed, the output generated dicom has more tags than before. However, some tags from the input dicom are still missing like 0008,1032 SQ (Sequence with undefined length). In itkGDCMImageIO.h, I only see functions to load sequences for GDCM 1.x. Is there any for GDCM 2.x ?

---

_[View the full topic](https://discourse.itk.org/t/reading-and-writing-a-dicom-slice-in-itk-with-gdcm-removes-tags/861)._
