Rank: 356072 based on 0 downloads (last 30 days) and 0 file submitted
photo

David

E-mail

Personal Profile:

 

Watch this Author's files

 

Comments and Ratings by David
Updated File Comments Rating
07 Nov 2008 DICOM Example Files Example DICOM files containing MR images of the brain. Author: Jeff Mather

I have tried running the example associated with the above data set:

http://www.mathworks.com/company/newsletters/digest/nov02/dicom.html

and have been unsuccessful at getting it to run. I have tried to ensure that the directory is set properly, but when the figure comes up, it comes up empty which leads me to believe that the dicom files aren't being loaded in at all.

This is the code I try to run:

% Preallocate the 256-by-256-by-1-by-20 image array.
X = repmat(int16(0), [256 256 1 20]);

% Read the series of images.
for p=1:20
filename = sprintf('brain_%03d.dcm', p);
X(:,:,1,p) = dicomread(filename);
end

% Display the image stack.
montage(X,[])

Contact us