MATLAB Answers


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),[]);


the image appears botched, like this:

when this is its proper appearance:

How can I correct this?

dicom file:



No products are associated with this question.

1 Answer

Answer by Walter Roberson
on 15 Feb 2013


  1 Comment

Nope, black screen with that.

Join the 15-year community celebration.

Play games and win prizes!

Learn more
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

MATLAB Academy

New to MATLAB?

Learn MATLAB today!