?? s029.m
字號:
% rgb圖像轉換為hsv圖像,再真彩顯示 s029
I29=imread('1.jpg');
I290=rgb2hsv(I29);
I291=1-I290(:,:,1);
subplot(3,3,1),imshow(cat(3,I290(:,:,1),I290(:,:,2),I290(:,:,3)));
subplot(3,3,2),imshow(cat(3,I290(:,:,1),I290(:,:,3),I290(:,:,2)));
subplot(3,3,3),imshow(cat(3,I290(:,:,2),I290(:,:,1),I290(:,:,3)));
subplot(3,3,4),imshow(cat(3,I290(:,:,2),I290(:,:,3),I290(:,:,1)));
subplot(3,3,5),imshow(cat(3,I290(:,:,3),I290(:,:,1),I290(:,:,2)));
subplot(3,3,6),imshow(cat(3,I290(:,:,3),I290(:,:,2),I290(:,:,1)));
subplot(3,3,7),imshow(cat(3,I290(:,:,1),I290(:,:,2),I290(:,:,3)));
subplot(3,3,8),imshow(cat(3,I290(:,:,1),I290(:,:,2),I290(:,:,3)));
subplot(3,3,9),imshow(cat(3,I290(:,:,1),I290(:,:,2),I290(:,:,3)))
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -