Author: Wang Gang
Organization: Dept. of Diagnostic Radiolgy, National University of Singapore
CT and MRI researchers often need to burn the experimental images from a
workstation in hospital. Back to the lab, they often backup the CD data
in a PC. The contents of such CDs are well organized in a hierachy:
|- Sequence No.
|- Image No.
While this eases the commercial DICOM viewers to load the images, it
introduces trouble to researchers to identify a specific patient or a
particular scan from such a tree of abbreviations and numbers,
especially when the no. of subject is large and the data is stored in
This function sorts the images of one DICOM CDs into folders with
Subject Name. + Study Date
|-Scan Description + Acquisition Time + Sequence No.
End of briefing
Use of function
1st argument: the CD/DVD DIR.
2nd argument: the destination folder for sorted images.
Hope I have made my explanation clear! This small gadget should be handy for you. Enjoy!
Gang Wang (2021). Sort DICOM CD images by subject and scan names (https://www.mathworks.com/matlabcentral/fileexchange/31743-sort-dicom-cd-images-by-subject-and-scan-names), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform CompatibilityWindows macOS Linux
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!