Reading a sequence of Dicoms

Read a sequence of dicom images
4.8K Downloads
Updated 21 Feb 2006

No License

This is a simple functino to import a series of dicom files using the dicomread function.

Please go through the comments in the code. It is quite a simple one but might be handy to use it quickly.

Philosophy:
I wanted to have a reliable, commented code for ease of use so that I can focus on bigger issues in the project.

I came to know that when you use uigetfile to choose a bunch of files to be read there is a constraint. (This applies to 32 bit Windows) There is a limit to the length of the string(filenames) that can be appended and hence you will have trouble reading the files after you go beyond a ceratin number irrespective of the size of the files. Reading them in this manner solves that issue.

Currently,
I have tested this function on "IPL (Image Processing Library used on OpenVMS systems) generated dicoms" and "Analyze (medical image analysis software developed by Mayo Clinic www.analyzedirect.com) generated Dicoms"

Detaled Comments are written inside the function.

Your feedback is appreciated.

Cite As

Nipun Patel (2024). Reading a sequence of Dicoms (https://www.mathworks.com/matlabcentral/fileexchange/10068-reading-a-sequence-of-dicoms), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R14
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.0.0.0