Go to Post At this time of the season, there is only one response: BAAAAAAAAA-humbug! - dlavery [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 18-01-2006, 17:08
winners winners is offline
Registered User
no team
 
Join Date: Jan 2006
Location: Nazareth
Posts: 22
winners is an unknown quantity at this point
Exclamation data packets

I have some questions regarding CMUCam2's data packets, Type F data packet format,

Quote:
Type F data packet format:

Code:
1 2 r g b r g b ... r g b r g b 2 r g b r g b ... r g b r g b 3
1 - new frame 2 - new row 3 - end of frame
RGB (CrYCb) ranges from 16 - 240
RGB (CrYCb) represents two pixels color values. Each pixel shares the red and
blue.
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?

Secondly, can anyone please explain to me what is CrYCb and how it differs from YCrCb and is there any other type?

Last thing, "RGB (CrYCb) represents two pixels color values. Each pixel shares the red and blue." -> what does it mean: "shares"?

I appreciate your time reading and helping me.

Thanks in advance.

Last edited by winners : 18-01-2006 at 18:21.
  #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.
  #3   Spotlight this post!  
Unread 14-09-2006, 01:25
bballbeng bballbeng is offline
Registered User
no team
 
Join Date: Sep 2006
Location: Singapore
Posts: 3
bballbeng is an unknown quantity at this point
Re: data packets

hi...which means the format of the data packet...shld be RGB BGR RGB BGR....
is that what u mean...how come the code section u posted is different??
Closed Thread


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
TTL port to a serial port on a demo board ImmortalAres Programming 16 09-07-2005 23:44
heres the code. y this not working omega Programming 16 31-03-2004 15:18
Competition Scouting pauluffel Scouting 31 09-01-2003 00:34
Limiting PWM in pbasic archiver 2001 4 24-06-2002 00:38


All times are GMT -5. The time now is 09:38.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi