Why images appear that bitmap black and white way?

1 次查看(过去 30 天)
Dicome pictures are ok graytone when opened on a dicom viewer but appear as bitmap black and white (see attachment). How do I fix it?
N=5; img_dir ='D:\Stelios PhD files\Foot Images'
strfile = 'Z00'; img = dicomread(fullfile(img_dir, strfile)); siz_img = size(img);
% create result matrix: D = NaN([siz_img N]); D(:,:,1) = img;
% load all the remaining images and put them in the matrix for i=1:N strfile = sprintf('Z00',i); D(:,:,i)= dicomread(fullfile(img_dir, strfile)); end
D=squeeze(D);
figure imshow(D(:,:,N)); %transverse plane figure imshow(squeeze(D(:,N,:))'); %sagittal plane figure imshow(squeeze(D(N,:,:))); % coronal plane

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 DICOM Format 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by