# error most probably segment cannot converted to binary label map 3d

**URL:** <https://discourse.slicer.org/t/error-most-probably-segment-cannot-converted-to-binary-label-map-3d/8749>\
**Category:** Support\
**Tags:** segmentation\
**Created:** [October 11, 2019, 6:52pm UTC](https://discourse.slicer.org/t/error-most-probably-segment-cannot-converted-to-binary-label-map-3d/8749 "2019-10-11T18:52:10Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pinar\_Uskaner\_Hepsag](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/pinar_uskaner_hepsag/32/4913_2.png) [@Pinar\_Uskaner\_Hepsag](https://discourse.slicer.org/u/Pinar_Uskaner_Hepsag)\
**Post date:** [October 11, 2019, 6:52pm UTC](https://discourse.slicer.org/t/error-most-probably-segment-cannot-converted-to-binary-label-map-3d/8749/1 "2019-10-11T18:52:10Z")

</div>

I want to save my annotations as a binary volume in common medical imaging formats (e.g. nifti). After I annotated tumor areas in breast MRIs, I tried to export binary label map. But it gives error : Failed to export segments to labelmap. I want to get a binary mask of each slice which are annotated. How can I do that? Why I cannot export to binary labelmap?

---

<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:** [October 11, 2019, 6:54pm UTC](https://discourse.slicer.org/t/error-most-probably-segment-cannot-converted-to-binary-label-map-3d/8749/2 "2019-10-11T18:54:15Z")

</div>

Could you please attach the application log (menu: Help / Report a bug).

---

<div class="post-metadata">

**Author:** ![Pinar\_Uskaner\_Hepsag](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/pinar_uskaner_hepsag/32/4913_2.png) [@Pinar\_Uskaner\_Hepsag](https://discourse.slicer.org/u/Pinar_Uskaner_Hepsag)\
**Post date:** [October 17, 2019, 11:34am UTC](https://discourse.slicer.org/t/error-most-probably-segment-cannot-converted-to-binary-label-map-3d/8749/3 "2019-10-17T11:34:30Z")

</div>

Thanks! It is solved. I think I saved binary masks in .nrrd file format. I am very new in using 3D Slicer so I have another question. I have brain MRi images. I have segmented those slices and save them in nrrd file format. How can I visualize those original slices and their binary masks. How can I see each slice and its mask? Is there a python code for this? Because I need to use each original slice and its binary mask for automatic segmentation. I will train a U-Net model using those slices and binary masks.
