matlab读取和显示图像代码

%function:finish the image matting
%% 完成了barcoE2设备的色调抠图方案matlab验证,效果和barcoE2设备基本一致(6.30)
Img = imread('G:\highwayvideo\output\471.jpg');
I = rgb2gray(Img);
figure(1),imshow(Img), title('Otiger'); 
%Imgb = imread('snowgirl.bmp');
%figure(2),imshow(Imgb), title('Osky');  
figure(3),imshow(I), title('gray');

你可能感兴趣的:(matlab)