DSPRelated.com
Forums

RGB of Y pixels...???...

Started by Khubaib December 11, 2002
Dear members..I have a question...if i have only Y pixels of an image
( no U and V pixels), then what is the way to get the corresponding
R, G and B componenets... ( the problem is that i have a Y pixel file
of an image and i want to get its R, G and B equivalent)...
regards,
Khubaib




Hello khabi,

You wrote :
> Dear members..I have a question...if i have only Y pixels of an image
> ( no U and V pixels), then what is the way to get the corresponding
> R, G and B componenets... ( the problem is that i have a Y pixel file
> of an image and i want to get its R, G and B equivalent)...

R = G = B = Y

As eazy as this :)

Best regards.

Jean-Michel MERCIER

--
dsp & imaging - www.ateme.com
ATEME - 26 Burospace - 91573 BIEVRES
Tel : +33 (0)1 69 35 89 73 (direct)
Fax : +33 (0)1 60 19 13 95


To be more clear ... The resulting RGB will produce a B&W image only!
Colors (RGB) are produced by a weighted sum of the Luminance (Y) and
Chrominance (Cr Cb) values. Since you only have Luminance values you will
only produce a black and white image.

-----Original Message-----
From: Jean-Michel MERCIER [mailto:]
Sent: Thursday, December 12, 2002 5:22 AM
To:
Subject: RE: [imagedsp] RGB of Y pixels...???...
Hello khabi,

You wrote :
> Dear members..I have a question...if i have only Y pixels of an image
> ( no U and V pixels), then what is the way to get the corresponding
> R, G and B componenets... ( the problem is that i have a Y pixel file
> of an image and i want to get its R, G and B equivalent)...

R = G = B = Y

As eazy as this :)

Best regards.

Jean-Michel MERCIER

--
dsp & imaging - www.ateme.com
ATEME - 26 Burospace - 91573 BIEVRES
Tel : +33 (0)1 69 35 89 73 (direct)
Fax : +33 (0)1 60 19 13 95

_____________________________________
Note: If you do a simple "reply" with your email client, only the author of
this message will receive your answer. You need to do a "reply all" if you
want your answer to be distributed to the entire group.

_____________________________________
About this discussion group:

To Join:

To Post:

To Leave:

Archives: http://www.yahoogroups.com/group/imagedsp

More Groups: http://www.dsprelated.com

">http://docs.yahoo.com/info/terms/