findDicomFiles
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
Platform Compatibility
Windows macOS LinuxCategories
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.