?? 8-7.m
字號:
I=imread('rice.tif');
subplot(121);
imshow(I);
%顯示rich.tif灰度圖像
title('原灰度圖像')
subplot(122);
[X,map]=gray2ind(I,6);
%轉換成索引圖像
imshow(X,map);
%顯示索引圖像
title('轉換后的索引圖像')
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -