# Rt structure aide

**URL:** <https://discourse.slicer.org/t/rt-structure-aide/29271>\
**Category:** Support\
**Created:** [May 3, 2023, 3:32pm UTC](https://discourse.slicer.org/t/rt-structure-aide/29271 "2023-05-03T15:32:34Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![Assia\_Benhamla](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/assia_benhamla/32/55133_2.png) [@Assia\_Benhamla](https://discourse.slicer.org/u/Assia_Benhamla)\
**Post date:** [May 3, 2023, 3:32pm UTC](https://discourse.slicer.org/t/rt-structure-aide/29271/1 "2023-05-03T15:32:34Z")

</div>

Bjr  
j’ai des contours en format Dicom réalisé sur des images SPECT, maintenant je veux utiliser ces segments sur des images TEP/CT afin de calculer la concentration radioactives de chaque segment, je n’arrive pas à réaliser ça  
pouvez vous m’aider svp!

---

<div class="post-metadata">

**Author:** ![gcsharp](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/gcsharp/32/863_2.png) [@gcsharp](https://discourse.slicer.org/u/gcsharp)\
**Post date:** [May 3, 2023, 8:56pm UTC](https://discourse.slicer.org/t/rt-structure-aide/29271/2 "2023-05-03T20:56:55Z")

</div>

Hi, You will need to install the SlicerRT extension to load the RTSTRUCT. I suspect that you could use the segment statistics module to calculate the average activity from the PET image, but have never tried that myself.

---

<div class="post-metadata">

**Author:** ![Assia\_Benhamla](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/assia_benhamla/32/55133_2.png) [@Assia\_Benhamla](https://discourse.slicer.org/u/Assia_Benhamla)\
**Post date:** [May 4, 2023, 9:40am UTC](https://discourse.slicer.org/t/rt-structure-aide/29271/3 "2023-05-04T09:40:27Z")

</div>

hi  
The RT structure is already in place, the statistics don’t work, I have a table with the segment names as results only  
I exported RT structure to labelmap, I got SUV values with pet SUV computation as result, however, the stats to predict volumes and other parameters still don’t work  
thanks

---

<div class="post-metadata">

**Author:** ![gcsharp](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/gcsharp/32/863_2.png) [@gcsharp](https://discourse.slicer.org/u/gcsharp)\
**Post date:** [May 8, 2023, 1:56pm UTC](https://discourse.slicer.org/t/rt-structure-aide/29271/4 "2023-05-08T13:56:45Z")

</div>

Hi Assia, Unfortunately I also was not successful. It seems the segment statistics does not provide average intensity within a segment. You might need to write a python script.

---

<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:** [May 11, 2023, 10:52am UTC](https://discourse.slicer.org/t/rt-structure-aide/29271/6 "2023-05-11T10:52:31Z")

</div>

Please use the English language in the forums for better understanding for the community. If you do not speak the language feel free to use Google Translate or any other similar service (as I suppose Greg did with your French message). 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:** [May 11, 2023, 10:54am UTC](https://discourse.slicer.org/t/rt-structure-aide/29271/7 "2023-05-11T10:54:32Z")

</div>

I believe it does, assuming that average and mean are the same. Here is a very recent output from the Segment Statistics module

 ![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/c/c/cc9633e6dd0b30b5f2f87b6be613ba0948208837.png)

---

<div class="post-metadata">

**Author:** ![gcsharp](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/gcsharp/32/863_2.png) [@gcsharp](https://discourse.slicer.org/u/gcsharp)\
**Post date:** [May 11, 2023, 2:31pm UTC](https://discourse.slicer.org/t/rt-structure-aide/29271/8 "2023-05-11T14:31:47Z")

</div>

I only get 4 columns: Segment, Surface Area, Volume (mm), Volume (cm). This is on linux. I tried 5.2.2 and 5.3.0, same result.

 ![2023-05-11_10-30](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/8/c/8c5d9cb1bb459e9c984d0b89dbbb507da0ccd2cb.png)

---

<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:** [May 11, 2023, 2:35pm UTC](https://discourse.slicer.org/t/rt-structure-aide/29271/9 "2023-05-11T14:35:23Z")

</div>

Interesting. It seems that you only get the statistics from the Labelmap Statistics plugin, and although all the metrics of the Scalar Volume Statistics plugin are enabled as you show in the screenshot, they are not computed. Is there any error in the console or the log? I’ll try this on Linux too when I work on that computer.

---

<div class="post-metadata">

**Author:** ![gcsharp](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/gcsharp/32/863_2.png) [@gcsharp](https://discourse.slicer.org/u/gcsharp)\
**Post date:** [May 11, 2023, 2:40pm UTC](https://discourse.slicer.org/t/rt-structure-aide/29271/10 "2023-05-11T14:40:16Z")

</div>

Error log completely empty when computing statistics. There were some warnings/errors on the structure import, but it seems to have loaded.

```auto
Warning: In /work/Preview/S-0-E-b/SlicerRT/DicomRtImportExport/ConversionRules/vtkPlanarContourToClosedSurfaceConversionRule.cxx, line 1258
vtkPlanarContourToClosedSurfaceConversionRule (0x116841d0): GetSpacingBetweenLines: Contour spacing is not consistent.

Warning: In /work/Preview/S-0-E-b/SlicerRT/DicomRtImportExport/ConversionRules/vtkPlanarContourToClosedSurfaceConversionRule.cxx, line 1258
vtkPlanarContourToClosedSurfaceConversionRule (0x116841d0): GetSpacingBetweenLines: Contour spacing is not consistent.

Warning: In /work/Preview/S-0-E-b/SlicerRT/DicomRtImportExport/ConversionRules/vtkPlanarContourToClosedSurfaceConversionRule.cxx, line 1258
vtkPlanarContourToClosedSurfaceConversionRule (0x116841d0): GetSpacingBetweenLines: Contour spacing is not consistent.

Warning: In /work/Preview/S-0-E-b/SlicerRT/DicomRtImportExport/ConversionRules/vtkPlanarContourToClosedSurfaceConversionRule.cxx, line 1258
vtkPlanarContourToClosedSurfaceConversionRule (0x116841d0): GetSpacingBetweenLines: Contour spacing is not consistent.

No input data

No input data

No input data

No input data

No input data

No input data

No input data

No input data

No input data

No input data

No input data

No input data

No input data

No input data

No input data

No input data

No input data

No input data

```

---

<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:** [May 11, 2023, 2:55pm UTC](https://discourse.slicer.org/t/rt-structure-aide/29271/11 "2023-05-11T14:55:12Z")

</div>

Yes these seem “normal”. Thanks!

---

<div class="post-metadata">

**Author:** ![Assia\_Benhamla](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/assia_benhamla/32/55133_2.png) [@Assia\_Benhamla](https://discourse.slicer.org/u/Assia_Benhamla)\
**Post date:** [May 11, 2023, 3:08pm UTC](https://discourse.slicer.org/t/rt-structure-aide/29271/12 "2023-05-11T15:08:02Z")

</div>

I solved the problem by creating binarylabelmap in SEGMENTATION and doing an alignment between CT’s images
