%读入灰度图像pout,并显示
I_huidu=imread('pout.tif');
figure(1), imshow(I_huidu) , title('灰度图像');
%读入二值图像circles,并显示,注意查看图像矩阵(uint8,0表示黑,255表示白)
I_erzhi=imread('circles.png');
figure(2), imshow(I_erzhi) , title('二值图像');
%读入二值图像blobs,并显示,注意查看图像矩阵(logical,0表示黑,1表示白)
I_erzhi=imread('blobs.png');
figure(2), imshow(I_erzhi) , title('二值图像');
%读入RGB图像football,并显示
I_RGB=imread('football.jpg');
figure(3), imshow(I_RGB) , title('RGB图像');
%读入索引图像trees,并显示
[I_suoyin, colormap]=imread('trees.tif');
figure(4), imshow(I_suoyin, colormap) , title('索引图像');
0