# Markup contours to labelmaps conversion

**URL:** <https://discourse.slicer.org/t/markup-contours-to-labelmaps-conversion/31263>\
**Category:** Support\
**Tags:** dicom, slicerrt\
**Created:** [August 21, 2023, 2:44pm UTC](https://discourse.slicer.org/t/markup-contours-to-labelmaps-conversion/31263 "2023-08-21T14:44:45Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![alireza](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/alireza/32/67173_2.png) [@alireza](https://discourse.slicer.org/u/alireza)\
**Post date:** [August 21, 2023, 2:44pm UTC](https://discourse.slicer.org/t/markup-contours-to-labelmaps-conversion/31263/1 "2023-08-21T14:44:45Z")

</div>

I have questions regarding interprotability between contours and labelmaps. I’m aware of DICOM RT module and polySEG and how we can convert RTSTRUCT to labelmap to edit etc.

My questions are

1. Without having an RT, is it possible to convert drawn contours in makrups module to labelmaps?

![CleanShot 2023-08-21 at 10.41.05](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/5/b/5b5fb15f555cf6b6976e8ba65f0239c744efb12d.jpeg)

1. I used the markups module to draw closed curve and wanted to fill color inside of it, but doesn’t seem to have any effect. is it possible?

 ![CleanShot 2023-08-21 at 10.04.41](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/f/6/f63636a6b251b8f8776e9e283fa21dd722cce84d.jpeg)

1. Any spline curve drawing tool in segmentEditor that can be used to draw/paint? I found the tube tool, but seems like it only paint on the outline

 ![CleanShot 2023-08-21 at 10.36.22](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/a/8/a82561db3fc02ddb1b3bf5be2555abc8579dde22.jpeg)

Thanks in advance for your time and help

---

<div class="post-metadata">

**Author:** ![pieper](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/pieper/32/8_2.png) [@pieper](https://discourse.slicer.org/u/pieper)\
**Post date:** [August 21, 2023, 3:01pm UTC](https://discourse.slicer.org/t/markup-contours-to-labelmaps-conversion/31263/2 "2023-08-21T15:01:23Z")

</div>

This would be a nice feature, but I don’t think it’s implemented now.

For similar problems I’ve used the Markups to Model extension.

> **[GitHub - SlicerIGT/SlicerMarkupsToModel: 3D Slicer extension to create tube...](https://github.com/SlicerIGT/SlicerMarkupsToModel)**
>
> 3D Slicer extension to create tube or closed surface model from markup fiducials - GitHub - SlicerIGT/SlicerMarkupsToModel: 3D Slicer extension to create tube or closed surface model from markup fi...

---

<div class="post-metadata">

**Author:** ![alireza](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/alireza/32/67173_2.png) [@alireza](https://discourse.slicer.org/u/alireza)\
**Post date:** [August 21, 2023, 3:05pm UTC](https://discourse.slicer.org/t/markup-contours-to-labelmaps-conversion/31263/3 "2023-08-21T15:05:21Z")

</div>

Thanks Steve,  
Do you know if the fill inside the contour in markups (question #2) is a bug or limitation?

---

<div class="post-metadata">

**Author:** ![pieper](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/pieper/32/8_2.png) [@pieper](https://discourse.slicer.org/u/pieper)\
**Post date:** [August 21, 2023, 5:25pm UTC](https://discourse.slicer.org/t/markup-contours-to-labelmaps-conversion/31263/4 "2023-08-21T17:25:41Z")

</div>

The ability to fill the curve would be a nice feature. I’m not sure what behavior to expect when the points are not co-planar. Maybe a soap-bubble interpolated surface or filling the projection of the control points to the current plane would be good. Or just a constraint that points can’t be moved out of the plane when the filling mode is enabled.
