文件名称:对图像进行YCbCr分解
介绍说明--下载内容来自于网络,使用问题请自行百度
rgb=imread('lena.png');
YCbCr=rgb2ycbcr(rgb);
subplot(221),imshow(rgb),title('image');
Y=YCbCr(:,:,1);
Cb=YCbCr(:,:,2);
Cr=YCbCr(:,:,3);
ycbcrmap(:,:,1)=Y;
ycbcrmap(:,:,2)=128;
ycbcrmap(:,:,3)=128;
subplot(222),imshow(Y),title('Y');
ycbcrmap(:,:,1)=128;
ycbcrmap(:,:,2)=Cb;
ycbcrmap(:,:,3)=128;
Cbcomponent=ycbcr2rgb(uint8(ycbcrmap));
subplot(223),imshow(Cbcomponent),title('Cb');
ycbcrmap(:,:,1)=128;
ycbcrmap(:,:,2)=128;
ycbcrmap(:,:,3)=Cr;
Crcomponent=ycbcr2rgb(uint8(ycbcrmap));
subplot(224),imshow(Crcomponent),title('Cr');
YCbCr=rgb2ycbcr(rgb);
subplot(221),imshow(rgb),title('image');
Y=YCbCr(:,:,1);
Cb=YCbCr(:,:,2);
Cr=YCbCr(:,:,3);
ycbcrmap(:,:,1)=Y;
ycbcrmap(:,:,2)=128;
ycbcrmap(:,:,3)=128;
subplot(222),imshow(Y),title('Y');
ycbcrmap(:,:,1)=128;
ycbcrmap(:,:,2)=Cb;
ycbcrmap(:,:,3)=128;
Cbcomponent=ycbcr2rgb(uint8(ycbcrmap));
subplot(223),imshow(Cbcomponent),title('Cb');
ycbcrmap(:,:,1)=128;
ycbcrmap(:,:,2)=128;
ycbcrmap(:,:,3)=Cr;
Crcomponent=ycbcr2rgb(uint8(ycbcrmap));
subplot(224),imshow(Crcomponent),title('Cr');
(系统自动生成,下载前可以参看下载内容)
下载文件列表
压缩包 : 提取图像YCbCr.rar 列表 提取图像YCbCr.txt
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.