# How do I save the dicom images in a .Json file for Matlab use

**URL:** https://discourse.slicer.org/t/how-do-i-save-the-dicom-images-in-a-json-file-for-matlab-use/29997
**Category:** Support
**Created:** [June 13, 2023, 2:53am UTC](https://discourse.slicer.org/t/how-do-i-save-the-dicom-images-in-a-json-file-for-matlab-use/29997 "2023-06-13T02:53:10Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Reham](https://avatars.discourse-cdn.com/v4/letter/r/90ced4/32.png) [@Reham](https://discourse.slicer.org/u/Reham)
#### Post date: [June 13, 2023, 2:53am UTC](https://discourse.slicer.org/t/how-do-i-save-the-dicom-images-in-a-json-file-for-matlab-use/29997/1 "2023-06-13T02:53:10Z")

</div>

Hello,  
After I segmented the 3D image from a set of dicom images, I would like to save them all in a “.json” file that has all the dicom images saved to call the file in Matlab. Anyone can help in this point will be appreciated.

---

<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 16, 2023, 2:36pm UTC](https://discourse.slicer.org/t/how-do-i-save-the-dicom-images-in-a-json-file-for-matlab-use/29997/2 "2023-06-16T14:36:32Z")

</div>

I would recommend to store 3D images in standard file formats, such as nrrd. In Matlab, you can load/saved nrrd files using nrrdread.m and nrrdwrite.m scripts available [here](https://github.com/PerkLab/SlicerMatlabBridge/tree/master/MatlabCommander/commandserver).
