# Superimposing nrrd over DICOM

**URL:** <https://discourse.slicer.org/t/superimposing-nrrd-over-dicom/22105>\
**Category:** Development\
**Created:** [February 22, 2022, 8:19am UTC](https://discourse.slicer.org/t/superimposing-nrrd-over-dicom/22105 "2022-02-22T08:19:36Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![AMK](https://avatars.discourse-cdn.com/v4/letter/a/f0a364/32.png) [@AMK](https://discourse.slicer.org/u/AMK)\
**Post date:** [February 22, 2022, 8:19am UTC](https://discourse.slicer.org/t/superimposing-nrrd-over-dicom/22105/1 "2022-02-22T08:19:36Z")

</div>

Hi,

I am developing an extension in Slicer for automatic segmentation and surgical planning. I have been able to perform the automatic segmentation outside the Slicer and then import the file to further modify it. But the designers in my company use an in-built software at the moment (which we are planning to replace with Slicer). So in order for them to start using our initial segmentation results, we are trying to import some capabilities of Slicer into our own software (uses dcmtk). I wanted to know where can I find the source code, specifically for the capability of Slicer to superimpose the segmentation label maps over the DICOM file.

Thanks,  
Aamir

---

<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:** [February 22, 2022, 6:43pm UTC](https://discourse.slicer.org/t/superimposing-nrrd-over-dicom/22105/2 "2022-02-22T18:43:09Z")

</div>

It’s complicated and the functionality is spread around in different places, but once the data is loaded the rendering is handled by `vtkSliceView*DisplayableManager` classes.

> **[Slicer/Libs/MRML/DisplayableManager at master · Slicer/Slicer](https://github.com/Slicer/Slicer/tree/master/Libs/MRML/DisplayableManager)**
>
> master/Libs/MRML/DisplayableManager

Some of the core functionality is in the `vtkMRMLSlice*Logic` classes.

> **[Slicer/Libs/MRML/Logic at master · Slicer/Slicer](https://github.com/Slicer/Slicer/tree/master/Libs/MRML/Logic)**
>
> master/Libs/MRML/Logic
