# How to save brain structural edited masks (segment edited) in nifti for freesurfer use?

**URL:** https://discourse.slicer.org/t/how-to-save-brain-structural-edited-masks-segment-edited-in-nifti-for-freesurfer-use/18429
**Category:** Support
**Tags:** segmentation, nifti, brain, masking
**Created:** [June 30, 2021, 1:17pm UTC](https://discourse.slicer.org/t/how-to-save-brain-structural-edited-masks-segment-edited-in-nifti-for-freesurfer-use/18429 "2021-06-30T13:17:20Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Tamires\_Zanao](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/tamires_zanao/32/10306_2.png) [@Tamires\_Zanao](https://discourse.slicer.org/u/Tamires_Zanao)
#### Post date: [June 30, 2021, 1:17pm UTC](https://discourse.slicer.org/t/how-to-save-brain-structural-edited-masks-segment-edited-in-nifti-for-freesurfer-use/18429/1 "2021-06-30T13:17:20Z")

</div>

Hi! I automatically generated structural brain masks with the purpose of using FreeSurfer. The masks need some editing, and I used Slicer Segment Editor for it (opened mask as label \> imported labelmap as segmentation \> add T1 as master volume \> edited masks). However, I couldn’t save it as a nifti, so I saved as nrrd and later converted it to nifti. It didn’t work. How can I save my edited mask (in nifti) in order to use them for freesurfer? Do I have to convert the labelmap in something else?

Thanks!

---

<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: [July 2, 2021, 4:04am UTC](https://discourse.slicer.org/t/how-to-save-brain-structural-edited-masks-segment-edited-in-nifti-for-freesurfer-use/18429/2 "2021-07-02T04:04:46Z")

</div>

You can use the [Export to file](https://slicer.readthedocs.io/en/latest/user_guide/modules/segmentations.html#export-segmentation-to-labelmap-volume-file) feature in Segment Editor module. NIFTI export is available in the current Slicer Stable Release.
