# Segmentation as dicom format

**URL:** <https://discourse.slicer.org/t/segmentation-as-dicom-format/40465>\
**Category:** Support\
**Tags:** segmentation, dicom, python, segmentations, segment-editor\
**Created:** [December 1, 2024, 8:42pm UTC](https://discourse.slicer.org/t/segmentation-as-dicom-format/40465 "2024-12-01T20:42:33Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nicolo\_Tombini](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/nicolo_tombini/32/78702_2.png) [@Nicolo\_Tombini](https://discourse.slicer.org/u/Nicolo_Tombini)\
**Post date:** [December 1, 2024, 8:42pm UTC](https://discourse.slicer.org/t/segmentation-as-dicom-format/40465/1 "2024-12-01T20:42:33Z")

</div>

Good evening everyone. I’m using data from [https://www.cancerimagingarchive.net](https://www.cancerimagingarchive.net) and I’m having trouble using the data. I notice that I have a single file for the segmentations in dicom format and when I import it into Python I have many more segmentation slices than the CT slices. How can this situation be managed and why does it happen? Thanks a lot

---

<div class="post-metadata">

**Author:** ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)\
**Post date:** [December 1, 2024, 8:54pm UTC](https://discourse.slicer.org/t/segmentation-as-dicom-format/40465/2 "2024-12-01T20:54:04Z")

</div>

As long as the segmentation is correct in physical space, everything is good. If you need the segmentation geometry (origin, spacing, axis directions, extents) to match any particular volume - for example because you want to process it with some software that ignores physical space - then you can resample the segmentation by a few clicks (Segmentations model, Export, Labelmap, choose a reference volume).

---

<div class="post-metadata">

**Author:** ![Nicolo\_Tombini](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/nicolo_tombini/32/78702_2.png) [@Nicolo\_Tombini](https://discourse.slicer.org/u/Nicolo_Tombini)\
**Post date:** [December 3, 2024, 9:10pm UTC](https://discourse.slicer.org/t/segmentation-as-dicom-format/40465/3 "2024-12-03T21:10:58Z")

</div>

Yes I converted them from dicom into nrrd and it works.  
Thank you.
