Sort DICOM CD images by subject and scan names
Author: Wang Gang
Organization: Dept. of Diagnostic Radiolgy, National University of Singapore
Email: wg_smile4ever@hotmail.com
Function Briefing
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:
Subject No.
|-Study No.
|- 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
multiple CDs.
This function sorts the images of one DICOM CDs into folders with
recognizable names:
Subject Name. + Study Date
|-Scan Description + Acquisition Time + Sequence No.
|- Images
End of briefing
Use of function
Run
sort_one_cd('D:\','C:\sortedImages\');
where
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!
Cite As
Gang Wang (2025). 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 Compatibility
Windows macOS LinuxCategories
- Industries > Medical Devices > DICOM Format >
- Engineering > Biomedical Engineering > Biomedical Imaging >
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.