about conversion of color spaces

 採用された回答

Chandra Kurniawan
Chandra Kurniawan 2012 年 1 月 25 日

0 投票

rgb2ycbcr
MATLAB YCbCr color space is often referred to as YUV.

3 件のコメント

Priyanka
Priyanka 2012 年 1 月 25 日
but YUV color space is not exactly similar to Ycbcr color space.there are different conversion equations for that like U=0.493(B-Y),V=0.877(R-Y) and conversion matrix also. so How I can impement these equations for finding YUV color space.
Chandra Kurniawan
Chandra Kurniawan 2012 年 1 月 25 日
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 2012 年 1 月 27 日
Thanks alot.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeModify Image Colors についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by