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