View Single Post
  #4   Spotlight this post!  
Unread 23-06-2007, 15:52
Astronouth7303's Avatar
Astronouth7303 Astronouth7303 is offline
Why did I come back?
AKA: Jamie Bliss
FRC #4967 (That ONE Team)
Team Role: Mentor
 
Join Date: Jan 2004
Rookie Year: 2004
Location: Grand Rapids, MI
Posts: 2,071
Astronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud of
Re: New Programmer working with cmu cam2

What the camera is sending is the bounding box of the blob.

x1 - minimum X value
y1 - minimum Y value
x2 - maximum X value
y2 - maximum Y value
mx - median X value (average of x1 and x2, IIRC)
my - median y value (average of y1 and y2)

There is also a confidence value that describes how "full" the bounding box is, IIRC. higher confidence values mean that more of the bounding box is taken up by the blob. You'll have to look up the exact formula for it.

You can also configure the camera to send you all the pixels, but this takes up a lot more time.