# Cannot load segmentations (nrrd file) into slicer

**URL:** <https://discourse.slicer.org/t/cannot-load-segmentations-nrrd-file-into-slicer/12993>\
**Category:** Support\
**Created:** [August 14, 2020, 1:10am UTC](https://discourse.slicer.org/t/cannot-load-segmentations-nrrd-file-into-slicer/12993 "2020-08-14T01:10:18Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bo\_Lan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/bo_lan/32/7442_2.png) [@Bo\_Lan](https://discourse.slicer.org/u/Bo_Lan)\
**Post date:** [August 14, 2020, 1:10am UTC](https://discourse.slicer.org/t/cannot-load-segmentations-nrrd-file-into-slicer/12993/1 "2020-08-14T01:10:18Z")

</div>

Hi all, so I saved my segmentations (under an nrrd file) and my segmentation scene just half an hour ago and restarted my computer. It appeared that the segmentations were saved when I saved them half an hour ago, however my latest scene, which I also saved do not have the segmentations anymore or the template data. When I open up the template and the segmentations in a new slicer window, only the template data loads but not the segmentations.

I see that the segmentations still show up on my storage folder as a nrrd file and still have space in them. They also indicate that they were last edited 30 minutes ago (when I saved them). However, whenever I load them in slicer nothing shows up, and I have gone to data, segment editor, and segmentations modules to find nothing. However, when I load other data, it does show up. I have been fine for the past two months saving it the same way. I am worried that I have lost my segmentations, is there a solution to this?

---

<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:** [August 14, 2020, 2:20am UTC](https://discourse.slicer.org/t/cannot-load-segmentations-nrrd-file-into-slicer/12993/2 "2020-08-14T02:20:59Z")

</div>

Please send the application log of a load attempt (menu: Help / Report a bug).

It would be also very interesting to see the log of that session when you saved the segmentation file. In Help / Report a bug, you can select previous sessions (logs of the last 10-20 sessions are saved), maybe you can still find it.

Can you share the segmentation file? (upload somewhere and post the link, maybe send it in a private message)

---

<div class="post-metadata">

**Author:** ![Bo\_Lan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/bo_lan/32/7442_2.png) [@Bo\_Lan](https://discourse.slicer.org/u/Bo_Lan)\
**Post date:** [August 14, 2020, 2:29am UTC](https://discourse.slicer.org/t/cannot-load-segmentations-nrrd-file-into-slicer/12993/3 "2020-08-14T02:29:34Z")

</div>

Hi Dr. Lasso,

Thank you for the response. In Help/Report a bug, I went to the last session, but the only options I have appear to be copy and paste and open in new window, which just appears to be a bunch of code and I am quite illiterate in coding besides basic C++. Also I do not even know for sure if it the last session is still the session before my data was lost as I have tried reopening my segmentations about 10 times and restarted each time so it may be over ten sessions. I would be happy to send you the segmentation file in a private message.

---

<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:** [August 14, 2020, 3:57am UTC](https://discourse.slicer.org/t/cannot-load-segmentations-nrrd-file-into-slicer/12993/4 "2020-08-14T03:57:25Z")

</div>

The file was just a few-hundred kB and filled with just zeros. Other then using an old version (latest stable 4.10.2) there is nothing special about the configuration or workflow (file was saved to desktop; OS: Windows).

The problem seems to be similar to the one described in “[Segments disappeared!](https://discourse.slicer.org/t/segments-disappeared/12698)”. Maybe there were some instability in how Slicer-4.10.2 saved segmentations. It may make sense to use a recent Slicer-4.11 version and create backups (instead of always just overwriting the previous version). If data corruption occurs then save logs of the last session (where the data was saved) using menu: Help / Report a bug.

---

<div class="post-metadata">

**Author:** ![Bo\_Lan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/bo_lan/32/7442_2.png) [@Bo\_Lan](https://discourse.slicer.org/u/Bo_Lan)\
**Post date:** [August 14, 2020, 10:00pm UTC](https://discourse.slicer.org/t/cannot-load-segmentations-nrrd-file-into-slicer/12993/5 "2020-08-14T22:00:22Z")

</div>

Hi Dr. Lasso, I just also realized I exported my original segmentations to binary labelmap and saved them in the nifti format the day before my segmentations disappeared. While I do cannot restore by going to help/report a bug, is there anyway to restore my segmentations by converting the nifti back to nrrd? The nifti is able to show up on slicer, but it shows up as a volume and I am unable to edit the image as segmentations.

---

<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:** [August 14, 2020, 10:22pm UTC](https://discourse.slicer.org/t/cannot-load-segmentations-nrrd-file-into-slicer/12993/6 "2020-08-14T22:22:23Z")

</div>

You can load the nifti file as segmentation by choosing “Segmentation” in Description column in Add data window. You may need Slicer-4.11 for this.

In Slicer-4.10, you need to load the nifti file as labelmap volume by checking labelmap option in Add data window. Then you can convert it to segmentation node by right-clicking on it in Data module.

---

<div class="post-metadata">

**Author:** ![Bo\_Lan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/bo_lan/32/7442_2.png) [@Bo\_Lan](https://discourse.slicer.org/u/Bo_Lan)\
**Post date:** [August 18, 2020, 9:43pm UTC](https://discourse.slicer.org/t/cannot-load-segmentations-nrrd-file-into-slicer/12993/7 "2020-08-18T21:43:14Z")

</div>

Thank you Dr. Lasso, this solved the problem!
