# Segmentation(export nrrd) Data Open python

**URL:** <https://discourse.slicer.org/t/segmentation-export-nrrd-data-open-python/7005>\
**Category:** Support\
**Tags:** segmentation, extensions-manager, python\
**Created:** [June 3, 2019, 10:31am UTC](https://discourse.slicer.org/t/segmentation-export-nrrd-data-open-python/7005 "2019-06-03T10:31:18Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![kscript](https://avatars.discourse-cdn.com/v4/letter/k/ec9cab/32.png) [@kscript](https://discourse.slicer.org/u/kscript)\
**Post date:** [June 3, 2019, 10:31am UTC](https://discourse.slicer.org/t/segmentation-export-nrrd-data-open-python/7005/1 "2019-06-03T10:31:18Z")

</div>

Hi  
I segmented using 3D Slicer and saved it with the nrrd extension.  
I opened this saved data in Python and I get the following error:  
Algorithm vtkNrrdReader returned failure for request:  
I did not have a problem because I saved the dicom file as nrrd and open it in Python.  
How can I solve 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:** [June 3, 2019, 2:10pm UTC](https://discourse.slicer.org/t/segmentation-export-nrrd-data-open-python/7005/2 "2019-06-03T14:10:11Z")

</div>

By default, segmentation is saved into a 4D nrrd file (to allow saving overlapping segments). If you nrrd reader cannot cope with that and your segments do not overlap then you can [export the segmentation to labelmap](https://discourse.slicer.org/t/get-label-map-node-from-segmentation-node/1137) and save that to nrrd file (that will be a simple 3D volume).

---

<div class="post-metadata">

**Author:** ![kscript](https://avatars.discourse-cdn.com/v4/letter/k/ec9cab/32.png) [@kscript](https://discourse.slicer.org/u/kscript)\
**Post date:** [June 4, 2019, 1:53am UTC](https://discourse.slicer.org/t/segmentation-export-nrrd-data-open-python/7005/4 "2019-06-04T01:53:51Z")

</div>

Oh i solve using your advice!

really Thanks!!
