about conversion of color spaces

2 Ansichten (letzte 30 Tage)
Priyanka
Priyanka am 25 Jan. 2012
How to convert RGB color space into YUV color space?

Akzeptierte Antwort

Chandra Kurniawan
Chandra Kurniawan am 25 Jan. 2012
rgb2ycbcr
MATLAB YCbCr color space is often referred to as YUV.
  3 Kommentare
Chandra Kurniawan
Chandra Kurniawan am 25 Jan. 2012
Hi,
I see the problem
from this link : http://en.wikipedia.org/wiki/YUV
we can also implement the formula by :
RGB = imread('football.jpg');
R = RGB(:,:,1);
G = RGB(:,:,2);
B = RGB(:,:,3);
Y = 0.299 * R + 0.587 * G + 0.114 * B;
U = -0.14713 * R - 0.28886 * G + 0.436 * B;
V = 0.615 * R - 0.51499 * G - 0.10001 * B;
YUV = cat(3,Y,U,V);
imshow(YUV);
Priyanka
Priyanka am 27 Jan. 2012
Thanks alot.

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Convert Image Type finden Sie in Help Center und File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by