?? 8-5.m
字號:
[X,map]=imread('canoe.tif');
Image_Type_YN1=isind(X);
%索引圖像的讀取與判斷
I = imread('moon.tif');
Image_Type_YN2=isgray(I);
%灰度圖像的讀取與判斷
RGB=imread('flowers.tif');
Image_Type_YN3=isrgb(RGB);
%真彩色圖像的讀取與判斷
BW = imread('circles.tif');
Image_Type_YN4=isbw(BW);
%二值圖像的讀取與判斷
disp([Image_Type_YN1 Image_Type_YN2 Image_Type_YN3 Image_Type_YN4]);
%返回值結果在MATLAB工作間顯示
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -