?? 12-7.m
字號:
I = imread('rice.tif');
J = imdivide(I,2);
%圖像除法運算圖像
K1=bitand(I,J);
subplot(321),imshow(K1)
title('圖像的位與運算')
K2=bitcmp(I,8);
%等價于2^8-I
subplot(322),imshow(K2)
title('圖像的位補運算')
K3=bitor(I,J);
subplot(323),imshow(K3)
title('圖像的位或運算')
K4=bitxor(I,J);
subplot(324),imshow(K4)
title('圖像的位異或運算')
K5=bitshift(I,2);
subplot(313),imshow(K5)
title('圖像的位移運算')
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -