肺部胸片图像掩膜和伪彩色处理matlab

clc; 
clear; 
close all;
I=imread('006.jpg');%读取图像
I = double(I);
figure(1),imshow(I,[])
figure(2),imshow(I,colormap)
colorbar

% newimg = I;
II = imread('006_mixture.gif');
III = imresize(II,0.5);
figure(3),imshow(III)

mask = im2bw(III, 0.5);
figure(4),imshow(mask)

finalimage = double(I).*mask;
figure(5),imshow(finalimage,[])
colorbar
figure(6),imshow(finalimage,colormap)
colorbar

你可能感兴趣的:(肺部胸片图像掩膜和伪彩色处理matlab)