# Export Segmentation

**URL:** <https://discourse.slicer.org/t/export-segmentation/15769>\
**Category:** Support\
**Tags:** feature, segmentation, dicom, python\
**Created:** [February 1, 2021, 10:48am UTC](https://discourse.slicer.org/t/export-segmentation/15769 "2021-02-01T10:48:15Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![oliversaldanha](https://avatars.discourse-cdn.com/v4/letter/o/90ced4/32.png) [@oliversaldanha](https://discourse.slicer.org/u/oliversaldanha)\
**Post date:** [February 1, 2021, 10:48am UTC](https://discourse.slicer.org/t/export-segmentation/15769/1 "2021-02-01T10:48:15Z")

</div>

Operating system: Windows 10  
Slicer version:3D Slicer 4.11.20200930  
I am very new to the 3D slicer software. I need support to decide which format should I export the segmentation if I need to train the 2D slice with the segmentation to extract the features.  
I would prefer to export the segmentation in the .csv format.  
Can I get some guidance on how can I proceed?  
Thanks in advance

---

<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:** [February 1, 2021, 2:30pm UTC](https://discourse.slicer.org/t/export-segmentation/15769/2 "2021-02-01T14:30:56Z")

</div>

CSV format for storing an image would be extremely inefficient (probably reading the file would take 100x longer time than reading it from a binary file format). For saving an save preprocessed (resample, cropped, aligned, etc.) segmentations for AI training, you can use .npy (numpy save).

For archiving - permanent storage of the segmentation and images, preserving all essential metadata - I would recommend .nrrd (for sharing between projects within the same group) or DICOM (for sharing between different institutions).

---

<div class="post-metadata">

**Author:** ![oliversaldanha](https://avatars.discourse-cdn.com/v4/letter/o/90ced4/32.png) [@oliversaldanha](https://discourse.slicer.org/u/oliversaldanha)\
**Post date:** [February 1, 2021, 2:49pm UTC](https://discourse.slicer.org/t/export-segmentation/15769/3 "2021-02-01T14:49:26Z")

</div>

Hello,  
I tried using .nrrd file format and it was really useful and server my purpose.  
Thanks a lot for the support.  
Regards  
Oliver
