Technical Discussions related to Image Processing (image coding, compression, digital effects, mpeg, etc)
|
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 _____________________________________ |