YUV 2 RGB conversion - strange pixels
- From: "Enoma" <Enoma84@xxxxxxxxx>
- Date: 5 Jun 2006 02:49:12 -0700
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
.
- Prev by Date: * Professional Website Design/ Development Service Online
- Next by Date: Webcam exposure problem
- Previous by thread: * Professional Website Design/ Development Service Online
- Next by thread: Webcam exposure problem
- Index(es):
Relevant Pages
|