Sort DICOM CD images by subject and scan names

Sort DICOM CD images by subject and scan names.

You are now following this Submission

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 (2026). 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 .

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.1.0.0

update the description

1.0.0.0