s031.m
来自「简单的数字图像处理程序」· M 代码 · 共 15 行
M
15 行
%rgb图像转换为ntsc图像,真彩显示 s031
I31=imread('1.jpg');
I310=rgb2ntsc(I31);
I311=1-I310(:,:,1);
I312=1-I310(:,:,2);
I313=1-I310(:,:,3);
subplot(3,3,1),imshow(cat(3,I310(:,:,1),I310(:,:,2),I310(:,:,3)));
subplot(3,3,2),imshow(cat(3,I310(:,:,1),I310(:,:,3),I310(:,:,2)));
subplot(3,3,3),imshow(cat(3,I310(:,:,2),I310(:,:,1),I310(:,:,3)));
subplot(3,3,4),imshow(cat(3,I310(:,:,2),I310(:,:,3),I310(:,:,1)));
subplot(3,3,5),imshow(cat(3,I310(:,:,3),I310(:,:,1),I310(:,:,2)));
subplot(3,3,6),imshow(cat(3,I310(:,:,3),I310(:,:,2),I310(:,:,1)));
subplot(3,3,7),imshow(cat(3,I311,I310(:,:,2),I310(:,:,3)));
subplot(3,3,8),imshow(cat(3,I310(:,:,1),I312,I310(:,:,3)));
subplot(3,3,9),imshow(cat(3,I310(:,:,1),I310(:,:,2),I313))
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?