# How to transfer a group of DICOM images into NRRD format

**URL:** <https://discourse.slicer.org/t/how-to-transfer-a-group-of-dicom-images-into-nrrd-format/22492>\
**Category:** Support\
**Created:** [March 14, 2022, 12:50pm UTC](https://discourse.slicer.org/t/how-to-transfer-a-group-of-dicom-images-into-nrrd-format/22492 "2022-03-14T12:50:44Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![LIE\_CAI](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lie_cai/32/13293_2.png) [@LIE\_CAI](https://discourse.slicer.org/u/LIE_CAI)\
**Post date:** [March 14, 2022, 12:50pm UTC](https://discourse.slicer.org/t/how-to-transfer-a-group-of-dicom-images-into-nrrd-format/22492/1 "2022-03-14T12:50:44Z")

</div>

For example, I have a group of files,  
 ![1647261723(1)](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/8/b/8ba75818022c333913b9f74164881c293a69f894.png)  
Each file has a series of DICOM images,  
 ![1647261780(1)](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/a/5/a57e4b6467426bee0fc0dbc928f9287346e3c10a.png)  
I’d like to tranfer them into NRRD format,  
Is it possible to achieve it automatically in 3D slicers?  
Thanks a lot !

---

<div class="post-metadata">

**Author:** ![pieper](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/pieper/32/8_2.png) [@pieper](https://discourse.slicer.org/u/pieper)\
**Post date:** [March 14, 2022, 3:47pm UTC](https://discourse.slicer.org/t/how-to-transfer-a-group-of-dicom-images-into-nrrd-format/22492/2 "2022-03-14T15:47:30Z")

</div>

Assuming the dicom data is essentially volumetric then you just need to combine these two snippets into a small script:

[https://slicer.readthedocs.io/en/latest/developer\_guide/script\_repository.html#load-dicom-files-into-the-scene-from-a-folder](https://slicer.readthedocs.io/en/latest/developer_guide/script_repository.html#load-dicom-files-into-the-scene-from-a-folder)

[https://slicer.readthedocs.io/en/latest/developer\_guide/script\_repository.html#save-volume-to-file](https://slicer.readthedocs.io/en/latest/developer_guide/script_repository.html#save-volume-to-file)

---

<div class="post-metadata">

**Author:** ![hina-shah](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/hina-shah/32/695_2.png) [@hina-shah](https://discourse.slicer.org/u/hina-shah)\
**Post date:** [March 15, 2022, 2:30am UTC](https://discourse.slicer.org/t/how-to-transfer-a-group-of-dicom-images-into-nrrd-format/22492/3 "2022-03-15T02:30:35Z")

</div>

We have a small extension called [SlicerBatchAnonymize](https://github.com/hina-shah/SlicerBatchAnonymize) that does exactly this. It should be available in the nightly Slicer’s extension index. Hope this helps.
