# Reading DICOM-RT tags

**URL:** <https://discourse.itk.org/t/reading-dicom-rt-tags/2038>\
**Category:** Beginner Questions\
**Created:** [July 12, 2019, 9:51am UTC](https://discourse.itk.org/t/reading-dicom-rt-tags/2038 "2019-07-12T09:51:51Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gabriele\_Belotti](https://discourse.itk.org/user_avatar/discourse.itk.org/gabriele_belotti/32/825_2.png) [@Gabriele\_Belotti](https://discourse.itk.org/u/Gabriele_Belotti)\
**Post date:** [July 12, 2019, 9:51am UTC](https://discourse.itk.org/t/reading-dicom-rt-tags/2038/1 "2019-07-12T09:51:51Z")

</div>

Hi everyone,

I am trying to automatically extract tags from an RT file, however ITK doesn’t directly support this kind of format.  
I really don’t need to extract/use the contours, I just need to find the information contained in certain tags.  
What would be the best approach? I know that DCMTK supports such format, and that there is a third party module dedicated to this library but I also read on [Discourse](https://discourse.itk.org/t/dcmtk-dicom-tags-metadatadictionary/1036) that it may not work properly…

---

<div class="post-metadata">

**Author:** ![mattias](https://discourse.itk.org/letter_avatar_proxy/v4/letter/m/cab0a1/32.png) [@mattias](https://discourse.itk.org/u/mattias)\
**Post date:** [July 12, 2019, 9:58am UTC](https://discourse.itk.org/t/reading-dicom-rt-tags/2038/2 "2019-07-12T09:58:55Z")

</div>

Is that an RT-STRUCT file? There are several libraries that support reading and tag extraction of DICOM tags (Pydicom, Matlab etc), or are you looking for an application?

---

<div class="post-metadata">

**Author:** ![Gabriele\_Belotti](https://discourse.itk.org/user_avatar/discourse.itk.org/gabriele_belotti/32/825_2.png) [@Gabriele\_Belotti](https://discourse.itk.org/u/Gabriele_Belotti)\
**Post date:** [July 12, 2019, 11:09am UTC](https://discourse.itk.org/t/reading-dicom-rt-tags/2038/3 "2019-07-12T11:09:07Z")

</div>

I would like to obtain this inside of a C++ application that also uses ITK

---

<div class="post-metadata">

**Author:** ![tim-evain](https://discourse.itk.org/user_avatar/discourse.itk.org/tim-evain/32/220_2.png) [@tim-evain](https://discourse.itk.org/u/tim-evain)\
**Post date:** [July 12, 2019, 11:14am UTC](https://discourse.itk.org/t/reading-dicom-rt-tags/2038/4 "2019-07-12T11:14:09Z")

</div>

As I’ve said in the linked post, the binding of DCMTK to the usual reader/io pipeline is broken. But you can use the ITK-built DCMTK directly, with its own syntax. I don’t know how it behaves with RT-struct though, I’ve only used it for images.

---

<div class="post-metadata">

**Author:** ![Gabriele\_Belotti](https://discourse.itk.org/user_avatar/discourse.itk.org/gabriele_belotti/32/825_2.png) [@Gabriele\_Belotti](https://discourse.itk.org/u/Gabriele_Belotti)\
**Post date:** [July 12, 2019, 11:18am UTC](https://discourse.itk.org/t/reading-dicom-rt-tags/2038/5 "2019-07-12T11:18:12Z")

</div>

Ok, I will try to rebuild ITK with DCMTK and use its syntax directly.  
I will let you know if this works, thanks

---

<div class="post-metadata">

**Author:** ![mattias](https://discourse.itk.org/letter_avatar_proxy/v4/letter/m/cab0a1/32.png) [@mattias](https://discourse.itk.org/u/mattias)\
**Post date:** [July 12, 2019, 12:25pm UTC](https://discourse.itk.org/t/reading-dicom-rt-tags/2038/6 "2019-07-12T12:25:44Z")

</div>

This one might be an option [https://imebra.com/](https://imebra.com/)
