findDicomFiles

Finds DICOM files in specified folder and subfolders
237 Downloads
Updated 18 Dec 2013

View License

filelist = findDicomFiles(PATH, SEARCHSUBFOLDER)

Searches the specified path for DICOM files. Filename extension is not used, a file is considered a DICOM file if byte 128-131 equals DICM. Output is a cell array that contains the full path to each file. Searches subfolders by default.

PATH - Directory to search (string).
SEARCHSUBFOLDER - Optional, determines if subfolders are searched (true/false) default is true.

Example:
FINDDICOMFILES('C:\MedData\')
ans =

'C:\MedData\BoringKneeImage.IMA'
'C:\MedData\NewData\aSliceOfMyBrain.DCM'

Cite As

Henric Rydén (2024). findDicomFiles (https://www.mathworks.com/matlabcentral/fileexchange/44741-finddicomfiles), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2013b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on DICOM Format in Help Center and MATLAB Answers

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes
1.2.0.0

Improved description

1.0.0.0