s030.m
来自「简单的数字图像处理程序」· M 代码 · 共 15 行
M
15 行
%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 + =
减小字号Ctrl + -
显示快捷键?