On Monday, April 15, 2013 10:37:18 AM UTC-4, RocketMan wrote:
>
> I guess if the calculations turned out to be wrong, a system liek
> this could always be calibrated as you suggest.
>
If you assume that both cameras have the same focal length
and resolution with minimal distortion, the following simplified
equation should work for range significantly longer than horizontal
camera separation.
r = range of target point from center between focal points of cameras
[inch, ft, yd, m]
s = horizontal separation between focal points of cameras [inch, ft, yd, m]
d = horizontal distance between the image of the target point in right
camera
and the image of the target point in left camera [pixels]
f = focal length of cameras [pixels]
r = s * f / d
You must measure s accurately with a ruler or caliper.
For focal length in pixels units, you need to know focal length
of the lens [inch or mm units] and physical pixel spacing [inch
or mm units].
Alternately, place the target point at several known range distances
(r_1, r_2 ... r_n) and measure pixel separation distance for each (d_1, d_2
... d_n).
.
f = sum( r_1*d_1 + r_2*d_2 + ... + r_n*d_n ) / (n*s)
More sophisticated calibrations can handle image center offset,
camera misalignment and lens distortion.
Joe
--
--
You are currently subscribed to the "R/C Tank Combat" group.
To post a message, send email to [email protected]
To unsubscribe, send email to [email protected]
Visit the group at http://groups.google.com/group/rctankcombat
---
You received this message because you are subscribed to the Google Groups "R/C
Tank Combat" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.