Thread: data packets
View Single Post
  #2   Spotlight this post!  
Unread 18-01-2006, 18:25
Joe Hershberger Joe Hershberger is offline
National Instruments
AKA: jhersh
FRC #2468 (Appreciate)
Team Role: Mentor
 
Join Date: Nov 2005
Rookie Year: 1997
Location: Austin, TX
Posts: 148
Joe Hershberger is a name known to allJoe Hershberger is a name known to allJoe Hershberger is a name known to allJoe Hershberger is a name known to allJoe Hershberger is a name known to allJoe Hershberger is a name known to all
Re: data packets

Quote:
Originally Posted by winners
I have some questions regarding CMUCam2's data packets, Type F data packet format,



well, first of, "RGB (CrYCb) ranges from 16 - 240" -> is it 1 number for the whole RGB or that R has a number that ranges from 16-240 and G has another one, and R has another one?
Each color has a number from 16-240.

Quote:
Originally Posted by winners
Secondly, can anyone please explain to me what is CrYCb and how it differs from YCbCr and is there any other type?
The diference is nothing but the order of the bytes that you receive. They are orcered that way so that the Chrominance (Cr being Red and Cb being Blue) and in the Red and Blue fields of the RGB. The leftover (Green) is used for the Luminance (Brightness).

Quote:
Originally Posted by winners
Last thing, "RGB (CrYCb) represents two pixels color values. Each pixel shares the red and blue." -> what does it mean: "shares"?
Meaning the G is the only independent color. So the first pixel is RGB, the next is BGR, the next is RGB, etc.
Code:
GBRGBRGBRGBR
 BRGBRGBRG
i.e.:
GBR GBR GBR GBR
 BRG BRG BRG
Good luck!
-Joe

Last edited by Joe Hershberger : 18-01-2006 at 18:32.