Problem using dicomread with MR scans
Show older comments
Dear community,
I've been using the Matlab DICOM tools for quite a while now but am currently experiencing an issue with the simple dicomread / dicominfo functions.
I have a set of DICOM MR images and while I can read most of these files as usual, some of them generate the following error:
Index exceeds matrix dimensions.
Error in dicomread>getMultiframeOverlay (line 1206)
overlays = reshape(tmp(1:cols*rows*double(metadata.NumberOfFramesInOverlay{1})), ...
Error in dicomread>getOverlays (line 1185)
[overlays, X] = getMultiframeOverlay(X, metadata);
Error in dicomread>newDicomread (line 257)
[overlays, X] = getOverlays(X, metadata);
Error in dicomread (line 79)
[X, map, alpha, overlays] = newDicomread(msgname, frames);
Error in repair_RUID_1457_26_05_2014_MR (line 44)
X = dicomread(sprintf([root '%1d.dcm'],NB(i)));
All the MR images belong to the same exam. They can all be opened using classical DICOM viewers such as MicroDicom. Please find enclosed one example of normal and one example of problematical DICOM (anonymized) images.
The error seems to be slightly different from this unresolved thread: http://www.mathworks.com/matlabcentral/answers/44012-why-can-t-i-read-ct-images-collected-from-siemens-scanner
Any help on this topic would be very highly appreciated. Many thanks in advance.
Answers (0)
Categories
Find more on Read and Write Image Data from Files in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!