|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
I have a quiestion about a distance
how can i calculate the distabce between the "center of mass" of the green light, and it's corners?
|
|
#2
|
||||
|
||||
|
Re: I have a quiestion about a distance
simple get the coordinate for mid (x,y) then get coordinates for corner(x1,y1)
now use the distance formual -- sqareroot( (x-x1)^2 + (y-y1)^2) I think ![]() |
|
#3
|
|||||
|
|||||
|
Re: I have a quiestion about a distance
I believe that the centroid values available from the camera are "center of mass" values and not the exact center of the bounding box. With one light being tracked, those are accurate enough, but when tracking two lights, the centroid values will stray towards the light that is closest to you.
|
|
#4
|
||||
|
||||
|
Re: I have a quiestion about a distance
O yea I forgot about this how foolish of me. Hmm Well if the twoo or more target are of same area than you can use the pixels but the same problem of distance occurs. Maybe if you can caculate the distance to one off the target or use the VW function to get 1 target you could do it. Using VW gives can *theoretically* get you down to one target I belive. Am I right or dead wrong?
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| I have a quistion about stopping the autonomous mode... | razer | Programming | 25 | 11-01-2007 15:43 |
| What we have learned about Batteries | Viper37 | Electrical | 11 | 20-12-2006 12:17 |
| What have we learned about design? | Rick TYler | Regional Competitions | 0 | 04-03-2005 21:08 |
| do you have a question about girls? | angier314 | Chit-Chat | 53 | 20-02-2003 12:24 |
| I have yet to forget about the bumpersticker | Robby O | Chit-Chat | 15 | 25-10-2001 22:10 |