# Unable to load DICOM segmentation file

**URL:** <https://discourse.slicer.org/t/unable-to-load-dicom-segmentation-file/15134>\
**Category:** Support\
**Tags:** segmentation, dicom\
**Created:** [December 18, 2020, 2:30pm UTC](https://discourse.slicer.org/t/unable-to-load-dicom-segmentation-file/15134 "2020-12-18T14:30:53Z")\
**Posts on this page:** 10\
**Page:** 2

<div class="post-metadata">

**Author:** ![bjorn](https://avatars.discourse-cdn.com/v4/letter/b/74df32/32.png) [@bjorn](https://discourse.slicer.org/u/bjorn)\
**Post date:** [December 21, 2020, 1:55pm UTC](https://discourse.slicer.org/t/unable-to-load-dicom-segmentation-file/15134/26 "2020-12-21T13:55:38Z")

</div>

I would be happy to have our R&D group responsible for the Artis software looking into this in detail.

Could you supply me with the original 3D data set / MRI volume?

As noted in the thread, the software copies attributed one to one from the original images into the Surface IOD. Therefore it is necessary to have the original data to troubleshoot efficiently.

---

<div class="post-metadata">

**Author:** ![issakomi](https://avatars.discourse-cdn.com/v4/letter/i/b9e5f3/32.png) [@issakomi](https://discourse.slicer.org/u/issakomi)\
**Post date:** [December 21, 2020, 2:45pm UTC](https://discourse.slicer.org/t/unable-to-load-dicom-segmentation-file/15134/27 "2020-12-21T14:45:38Z")

</div>

Thank you very much.  
For clarity, many programs with support for _SINGLEBIT_ data (tried PixelMed, MircoDicom, Weasis, Aliza) can open that file standalone (setting spacing, origin, etc. to defaults).  
It looks like this ( **284** x320x192), here slice #128 (_PixelMed_, the same in other programs)

 ![Screenshot at 2020-12-21 13-18-06](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/2/9/29bc9217be7ec3dc87d2399b783144e3cc2d88a6.png)

Here is how it looks like after manually solving the puzzle, **288** x320x192, same slice

![20201221-130319](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/6/f/6f2b02a8718e3aead3d78f678eab999398141ecc.png)

Were also interested to see referenced images or at least know dimensions.

---

<div class="post-metadata">

**Author:** ![AshrafM](https://avatars.discourse-cdn.com/v4/letter/a/0ea827/32.png) [@AshrafM](https://discourse.slicer.org/u/AshrafM)\
**Post date:** [December 22, 2020, 8:50am UTC](https://discourse.slicer.org/t/unable-to-load-dicom-segmentation-file/15134/28 "2020-12-22T08:50:36Z")

</div>

Thank you all for your comments.

As for the MR images, I am not able to provide the original images without further processing. The data comes from clinical collaborators working on a confidential brain imaging project, with the data not yet published. I do not have their permission to share the data. Another concern is that, although the metadata is already anonymized, with these MR head datasets, it is possible to reconstruct the facial features, which can violate the GDPR !

Would pydicom or another tool be able to zero out the pixel data and save the files without any changes to the DICOM metadata? If so, then I can send such cleaned out data. If you have experience with this on pydicom or another library, let me know. I could try it myself in a couple of days, but I have no experience which tool can clean up the pixel data while keeping the meta data untouched. Any ideas? Thanks.

---

<div class="post-metadata">

**Author:** ![bjorn](https://avatars.discourse-cdn.com/v4/letter/b/74df32/32.png) [@bjorn](https://discourse.slicer.org/u/bjorn)\
**Post date:** [December 22, 2020, 10:14am UTC](https://discourse.slicer.org/t/unable-to-load-dicom-segmentation-file/15134/29 "2020-12-22T10:14:55Z")

</div>

@AshrafM I understand your valid concern. It would be great if you could dump the MR images as anonymized TEXT files. It should be sufficient for the analysis.

You can do this with mDicom (MicroDicom Viewer) for example. Under the file menu you can export a whole study or series as TEXT files. That would be one way of omitting pixel data.

Screenshot of “Export as text”

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

Screenshot of “Select source” and “Create subfolders”

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

---

<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 22, 2020, 5:48pm UTC](https://discourse.slicer.org/t/unable-to-load-dicom-segmentation-file/15134/30 "2020-12-22T17:48:45Z")

</div>

In Slicer, you can export all DICOM metadata of all the selected patients/studies/series from the DICOM browser:

- right-click in the DICOM browser
- choose “View DICOM metadata…”
- click “Copy all files metadata” (may take a couple of seconds to complete if you selected hundreds of files)
- paste it into a text file

---

<div class="post-metadata">

**Author:** ![AshrafM](https://avatars.discourse-cdn.com/v4/letter/a/0ea827/32.png) [@AshrafM](https://discourse.slicer.org/u/AshrafM)\
**Post date:** [December 25, 2020, 7:59pm UTC](https://discourse.slicer.org/t/unable-to-load-dicom-segmentation-file/15134/31 "2020-12-25T19:59:24Z")

</div>

Thank you for your suggestions. I wrote some code with pydicom to replace the pixel data with an ellipsoid, while trying to keep everything else in the dicom unchanged. I also extracted he DICOM meta data via both Slicer and mDICOM and I am providing the text files here.

- [DICOM images with pixel data replaced by an ellipsoid.](https://drive.google.com/file/d/1BJw7I8r1VWtMVzBPqalvPa4Le7fiv5Jm/view?usp=sharing)
- [Metadata text file for the original MR images obtained using Slicer](https://drive.google.com/file/d/1iF2TZ-R3Lfw6YVvYjCpBy_8yi4-0t8GQ/view?usp=sharing)
- [DICOM dump as text using mDICOM](https://drive.google.com/file/d/1Z2pChk5YHOj6r6Ey_RfOesdw1WiUdBPm/view?usp=sharing)
- [Original DICOM image for segmentation (cannot be loaded in slicer).](https://drive.google.com/file/d/1HBhlDnSDVJUJE9kAXK_qqnV14QLeSFNj/view?usp=sharing)
- [Segmentation file after converting to nrrd](https://drive.google.com/file/d/1l51KkngQ9X_aaQPtRS2PQ1mD5BLzynAR/view?usp=sharing) (using the code sent by @issakomi , converting to nrrd and copying some header information from nrrd of the MRI images).

I hope it helps.  
Thanks.

---

<div class="post-metadata">

**Author:** ![bjorn](https://avatars.discourse-cdn.com/v4/letter/b/74df32/32.png) [@bjorn](https://discourse.slicer.org/u/bjorn)\
**Post date:** [December 28, 2020, 11:14pm UTC](https://discourse.slicer.org/t/unable-to-load-dicom-segmentation-file/15134/32 "2020-12-28T23:14:14Z")

</div>

Thank you @AshrafM, I got your data extraction from the links. Great preparation for an analysis. 😀

I will get your extractions to the development team. Due to XMas and New Year, I am not sure how fast they can react and analyze.

One possible problem could be that the algorithm assumes rows to be a multiple of 16.

I will get back in this thread, when I have more info from the analysis.

---

<div class="post-metadata">

**Author:** ![bjorn](https://avatars.discourse-cdn.com/v4/letter/b/74df32/32.png) [@bjorn](https://discourse.slicer.org/u/bjorn)\
**Post date:** [March 22, 2021, 1:34pm UTC](https://discourse.slicer.org/t/unable-to-load-dicom-segmentation-file/15134/33 "2021-03-22T13:34:28Z")

</div>

The development team has completed the analysis and implemented the necessary changes. The prototype has been successfully tested.

I will inform further as I get the information of which versions and software will be updated.

---

<div class="post-metadata">

**Author:** ![bjorn](https://avatars.discourse-cdn.com/v4/letter/b/74df32/32.png) [@bjorn](https://discourse.slicer.org/u/bjorn)\
**Post date:** [April 6, 2021, 7:03am UTC](https://discourse.slicer.org/t/unable-to-load-dicom-segmentation-file/15134/34 "2021-04-06T07:03:00Z")

</div>

Siemens Healthineers’ current plan is to solve this problem in the upcoming Artis VE22 software.

The rows and columns mismatch behavior has been corrected.

Note:  
“Corresponding pixel in a referenced image“ approach is used over the “frame of reference image” approach.

Potentially 3DSlicer can’t currently handle both these valid approaches.

---

<div class="post-metadata">

**Author:** ![fedorov](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/fedorov/32/14_2.png) [@fedorov](https://discourse.slicer.org/u/fedorov)\
**Post date:** [April 6, 2021, 12:33pm UTC](https://discourse.slicer.org/t/unable-to-load-dicom-segmentation-file/15134/35 "2021-04-06T12:33:58Z")

</div>

Bjorn, would it be possible to share a sample of the segmentation that is expected to be produced by the upcoming Artis VE22 software?

[Previous page](https://discourse.slicer.org/t/unable-to-load-dicom-segmentation-file/15134.md?page=1)
