Trouble reading DICOM files

  • Follow


Hi everybody,
I have some problems while reading DICOM files: if I issue the command
>> info = dicominfo(filename);
the field NumberOfFrames in the structure info contains the correct number of frames (it's a movie file). However, if I try to read the file by using the command
>> data = dicomread(filename);
all I get is the first frame in the movie. As a consequence, data is a 3-dimensional matrix, while it should be 4-dimensional (I am able to read the DICOM files with external software and I would like to be able to do the same in Matlab to perform some post-processing). If it may help, I am able to read grayscale frames, but have trouble when the frames are RGB images. I am using Matlab R2008b.

Any help would be greatly appreciated.

Daniele 
0
Reply Daniele 9/15/2010 12:25:05 PM

"Daniele Linaro" <danielelinaro@gmail.com> wrote in message <i6qdv1$it6$1@fred.mathworks.com>...
> Hi everybody,
> I have some problems while reading DICOM files: if I issue the command
> >> info = dicominfo(filename);
> the field NumberOfFrames in the structure info contains the correct number of frames (it's a movie file). However, if I try to read the file by using the command
> >> data = dicomread(filename);
> all I get is the first frame in the movie. As a consequence, data is a 3-dimensional matrix, while it should be 4-dimensional (I am able to read the DICOM files with external software and I would like to be able to do the same in Matlab to perform some post-processing). If it may help, I am able to read grayscale frames, but have trouble when the frames are RGB images. I am using Matlab R2008b.

Would it be possible for you to send me one of the files that has this problem?  I'd be happy to take a look at it and try to get you a solution.

Jeff Mather
Image Processing Group
MathWorks
0
Reply jeff.mather (70) 9/15/2010 4:48:23 PM


1 Replies
226 Views

(page loaded in 0.057 seconds)

Similiar Articles:













7/25/2012 4:32:10 PM


Reply: