0% found this document useful (0 votes)
29 views2 pages

Display RGB2YCBCR Image & Viceversa

This code reads in an image file, converts it from RGB to YCBCR color space, displays the converted image, then converts it back to RGB and displays the result, demonstrating converting between the two color spaces.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as RTF, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
29 views2 pages

Display RGB2YCBCR Image & Viceversa

This code reads in an image file, converts it from RGB to YCBCR color space, displays the converted image, then converts it back to RGB and displays the result, demonstrating converting between the two color spaces.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as RTF, PDF, TXT or read online on Scribd
You are on page 1/ 2

Display RGB2YCBCR image &

viceversa
clear all;
close all;
i=imread('C:\Users\Public\Pictures\Sample Pictures\koala.jpg');
figure,
imshow(i);
j=rgb2ycbcr(i);
figure,
imshow(j);
k=ycbcr2rgb(j);
figure,
imshow(k);

Output:-

You might also like