YUV 2 RGB conversion - strange pixels



Hi all,
I have a problem in YUV to RGB conversion.
I grab some images from a 1394 camera, in YUV 4:2:2 format, then I
convert them in RGB using the following algo:

R = Y + 1.371*V -191.45
G = Y -0.338*U -0.698*V + 116.56
B = Y + 1,732 *U -237.75
(I get U and V channels as unsigned integer from the camera)

Now, the pictures converted are pretty good, except for a set of very
few pixels (the most luminescent ones of the picture), where the color
is not exact...
Splitting the picture into its 3 channels, blue channel has a strange
behaviour, in the pixels in which the rgb picture was incorrect. In
fact, those pixel, in the B channel, are completely black...
I also tried to limit the colors to ranges such as 1-254, or 2 - 253...
but it doesn't work...
If it may be helpful, I get these problems only when there is white
artificial illumination in the room in which I work. Turning off the
lights, during the day, seems to reduce or eliminate the problem.

Any help will be appreciated,

Gaku

.



Relevant Pages

  • Re: Combination of RGB
    ... Is not to replace the entire RGB is use this channels coming from ... simply cut and paste in Channels view. ... anotherone that I have and then in the same first picture use the ... colour of another picture and the green of another picture. ...
    (alt.graphics.photoshop)
  • Re: Combination of RGB
    ... You are right I mean RGB, but I try what you sugest and I don,t get what I ... simply cut and paste in Channels view. ... anotherone that I have and then in the same first picture use the Yellow ...
    (alt.graphics.photoshop)
  • Re: Black & White - Digital question
    ... pictures have been nature shots. ... My camera will support taking pictures in black and white. ... wondering if I would be better off taking the picture normally (in raw ... Unsaturating is just one way - remember that there are three channels ...
    (alt.photography)
  • Re: Nikon D200 and Canon 350D/Rebel XT Noise Tests
    ... zoom in to see the RGB pattern in grey. ... original RAW pixels. ... camera is really seeing - the green pixels let more light through. ... brighter exposure will have less noise and more blown shadows. ...
    (rec.photo.digital.slr-systems)
  • Re: Please review my proposed Shuttle Media Center PC spec
    ... but the picture is very crisp and hardly distinguishable from ... > RGB in that respect, whereas composite suffers from colour crawl. ... > Sky use lower rate MPEG. ... Windows normal stuff looks horrid! ...
    (microsoft.public.windows.mediacenter)