Log in

View Full Version : What's this number 80 in error math?


K.Porter
24-01-2007, 18:57
In some examples I've seen of tracking math, the error value is calculated by subtracting the centroid from 80. What does 80 mean? why is it 80?

Kevin Watson
24-01-2007, 19:54
In some examples I've seen of tracking math, the error value is calculated by subtracting the centroid from 80. What does 80 mean? why is it 80?Hey! I have family in Gorham, Cape Elizabeth and the family "camp" in on Lake Sebago. Sorry, I'm just happy to see some participation from Maine <grin>.

Anyway, this may have to do with the fact that on the horizontal axis, the center pixel is the 80th. That's my guess anyway. Where did you see this?

-Kevin

K.Porter
25-01-2007, 17:38
Well we figured out that the 80 has something to do with driving and gyros, which isn't what I'm doing at this time. However I now have another question. What is the range of the centroid values returned from the camera? 0-255?

[edit] oh and this is actually the lead programmer who's too lazy to make an account posting

[edit] upon printfing the x centroid, it only returns 0 regardless of the light. Any idea what is causing this?

Michael DiRamio
25-01-2007, 18:28
[edit] upon printfing the x centroid, it only returns 0 regardless of the light. Any idea what is causing this?

When the camera doesn't "see" the light it returns 0 for the centroid.