Saturday, February 07, 2015

4d dicom file from renal scan

S had a student who had a problem with a 4-d dicom file from a renal scan. He wanted to display it on the screen and do some manipulations on it with matlab, but of course his routines expected 2D images and not 4-D data.

At first, I assumed the dicomread routine was wrongly reporting 4D data - 64x64x1x63 , and asked him to use squeeze to get rid of the extra dimensions. Then I read that the 4D is actually correct, and also a better treatment of the files rather than squeeze. In his code, there were some for loops, and using matlab's matrix methods are generally faster.

No comments:

Post a Comment