# Cannot visualize dicom-rt ROIs

**URL:** https://discourse.slicer.org/t/cannot-visualize-dicom-rt-rois/26964
**Category:** Support
**Created:** [December 28, 2022, 10:39pm UTC](https://discourse.slicer.org/t/cannot-visualize-dicom-rt-rois/26964 "2022-12-28T22:39:09Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![kaizhao](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/kaizhao/32/15623_2.png) [@kaizhao](https://discourse.slicer.org/u/kaizhao)
#### Post date: [December 28, 2022, 10:39pm UTC](https://discourse.slicer.org/t/cannot-visualize-dicom-rt-rois/26964/1 "2022-12-28T22:39:09Z")

</div>

I’m trying to convert some of our own annotations (closed polygons) into dicom-rt format.

I created some dicom files with ROIs of random coordinates from scratch using pydicom. I can visualize the ROIs of created dicom files in Matlab.

Matlab code:

```auto
info = dicominfo("example/slice-01.dcm");
% info = dicominfo("rtstruct.dcm");
contour = dicomContours(info);
figure
plotContour(contour)

```

Results:

 ![Matlab plot ROIs](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/e/d/ed3ab7ebd378e20e173834101f07adf8ce043731.jpeg)

However, I cannot visualize the ROIs with Slicer. I have installed the `SlicerRT` extension and there is no error log when I load the dicom files.

System information:

```auto
Ubuntu: 22.04 + MacOS Ventura 13.0.1
Slicer: 5.2.1 r31317 / 77da381

```

Examplar generated dicom files can be downloaded from [https://kaizhao.net/dicoms.zip](https://kaizhao.net/dicoms.zip).  
Any help will be appreciated!

Thank you!

---

<div class="post-metadata">

### Author: ![cpinter](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/cpinter/32/7995_2.png) [@cpinter](https://discourse.slicer.org/u/cpinter)
#### Post date: [January 4, 2023, 11:14am UTC](https://discourse.slicer.org/t/cannot-visualize-dicom-rt-rois/26964/2 "2023-01-04T11:14:06Z")

</div>

SlicerRT can process input that is similar to clinical RT data. Arbitrary polygon ROIs are not like this. An RT Structure Set (RTSTRUCT) references a CT image, and it defines closed polygons on slices of the CT image. If your RTSTRUCT is like that, then SlicerRT can probably load it.

> [@kaizhao](#):
>
> I have installed the `SlicerRT` extension and there is no error log when I load the dicom files.

It is strange that there were no errors. It could be helpful if you showed us the DICOM file you wanted to load and explain exactly how you tried to load it.
