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