# RTstruct to Label map

**URL:** https://discourse.slicer.org/t/rtstruct-to-label-map/2437
**Category:** Support
**Tags:** segmentation, slicerrt
**Created:** [March 27, 2018, 12:34pm UTC](https://discourse.slicer.org/t/rtstruct-to-label-map/2437 "2018-03-27T12:34:28Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![alain](https://avatars.discourse-cdn.com/v4/letter/a/a183cd/32.png) [@alain](https://discourse.slicer.org/u/alain)
#### Post date: [March 27, 2018, 12:34pm UTC](https://discourse.slicer.org/t/rtstruct-to-label-map/2437/1 "2018-03-27T12:34:28Z")

</div>

Hi,

I have 200 dicom datapoints that contain a image and a RTstruct for the segmentations. I need to convert all RTstructs to Label volumes (maps) and can do this with the segmentations module. However, I have to perform every step manually and I am thus looking for a way to do it batch-wise. Since the segmentations module does not have a CLI, I was wondering if there is another solution that would allow me to access the module without the GUI.

Best regards,  
Alain

---

<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: [March 27, 2018, 2:38pm UTC](https://discourse.slicer.org/t/rtstruct-to-label-map/2437/2 "2018-03-27T14:38:30Z")

</div>

This batch processing script does exactly what you want

> **[SlicerRT/BatchProcessing at master · SlicerRt/SlicerRT](https://github.com/SlicerRt/SlicerRT/tree/master/BatchProcessing)**
>
> master/BatchProcessing

See readme file for details.
