View Single Post
  #25   Spotlight this post!  
Unread 17-02-2007, 21:05
gnirts gnirts is offline
Suspicious pointer conversion
AKA: Robinson Levin
FRC #1648 (The Gearbox Gangstaz)
Team Role: Programmer
 
Join Date: Jan 2006
Rookie Year: 2005
Location: ATL
Posts: 116
gnirts will become famous soon enough
Re: Multiple Light Tracking with Distinct Light Boxes

Quote:
Originally Posted by Ankush Dhar View Post
Heh has anyone actally figured out how to pick the blob, either left or right?

other than that i wanted to ask one more quesion, i am not sure but anyone knows how to calculate the width of each blob?
The blob with the lower y coordinates will be closer (or the other way around if your camera is upside down). But you might consider going to the one that is more infront of your robot.

width = T_Packet_Data.x2 - T_Packet_Data.x1;

Good Luck,
Robinson Levin