image thumbnail

Sort DICOM CD images by subject and scan names

version (2.28 KB) by Gang Wang
Sort DICOM CD images by subject and scan names.


Updated 10 Jun 2011

View License

Author: Wang Gang
Organization: Dept. of Diagnostic Radiolgy, National University of Singapore

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


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 (2021). Sort DICOM CD images by subject and scan names (, MATLAB Central File Exchange. Retrieved .

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

Community Treasure Hunt

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

Start Hunting!