Siemens DICOM sort and convert to NIfTI

Converts Siemens MRI DICOM data into NIfTI format, and/or anonymises and sorts into scan directories
8.7K Downloads
Updated 7 Apr 2020

View License

The program offers GUI (dicom_sort_convert_main.m) and .m (example_dscm_call.m) input to select input and output directories and determine options. The main functions are

i) sorting of Siemens MR scanner (IMA) data into directories, removal of patient name from file, and lightly anonymisaton (only PatientName fields but not DOB, gender, PatientID, etc)
ii) Conversion to one-file (.nii) or two-file (.img, .hdr) NIfTI format (one per scan), reformatting more complex scans to use up to six dimensions of the NIfTI structure (time-points, echo, RF channel, phase/magnitude, diffusion gradient, etc). Also writes both DICOM header info and the text section of Siemens header info to a text_header.txt file for each scan.
iii) Generation of a list of all scans performed (scan_list.txt) including most relevant parameters (can easily be customised), making it easy to generate a summary sheet for each subject scanned.

Thanks to Jimmy Shen for sharing, developing and supporting his excellent NIfTI toolbox.

Cite As

Simon Robinson (2024). Siemens DICOM sort and convert to NIfTI (https://www.mathworks.com/matlabcentral/fileexchange/22508-siemens-dicom-sort-and-convert-to-nifti), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2019a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Acknowledgements

Inspired by: Tools for NIfTI and ANALYZE image

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes
1.27

see comments in dicom_sort_convert_main.m

1.8.0.0

Please see version changes via 'help dicom_sort_convert_main.m'.

1.7.0.0

please see help

1.6.0.0

Summary field too short to be useful. Use >> help dicom_sort_convert_main

1.5.0.0

The 250 character limit for summaries is too short.
download and type >> help dicom_sort_convert_main to see changes in v1.17

1.4.0.0

There were a couple of trivial bugs in v1.15 which rendered it a defunct version. I have corrected these. Apologies

1.3.0.0

Splash image (required) was missing from archive

1.2.0.0

v1.14 1) reformats DTI data, 4th dim is grad
v1.15 1) Suggests alternative directory names if illegal
2) Improved reformatting to [x][y][z][time][echos][channels][phase/mag] for 8, 24 and 32-element coils

1.1.0.0

v1.14 1) reformats DTI data (4th Dim is grad)
v1.15 1) Suggests alternative directory name if illegal chars
2) Improved reformatting into [x][y][z][time][echos][channels][phase/mag] for 8, 24 and 32-element coils

1.0.0.0