Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Botched dicom image after rgb conversion

Asked by Antonio on 15 Feb 2013

I converted a 4D dicom image into rgb like this:

image_data = dicomread('TumorSimOutput2T1Gad.dcm');
rgb4Dimage = image_data(:,:,[1 1 1],:); 
index = 45;
imshow (rgb4Dimage(:,:,index),[]);

see: http://www.mathworks.com/matlabcentral/answers/62728-converting-the-grayscale-dimension-in-a-4d-dicom-image-matrix-to-rgb

the image appears botched, like this: http://img51.imageshack.us/img51/6451/botched.png

when this is its proper appearance: http://img707.imageshack.us/img707/5922/fullud.png

How can I correct this?

dicom file: https://www.dropbox.com/s/i0cr2910ie4k5zy/TumorSimOutput2_T1.dcm

0 Comments

Antonio

Products

No products are associated with this question.

1 Answer

Answer by Walter Roberson on 15 Feb 2013
imshow(rgb4Dimage(:,:,:,index))

1 Comment

Antonio on 15 Feb 2013

Nope, black screen with that.

Walter Roberson

Contact us