$25
Inexact Match (7 pts): In stereo imaging, if the rays defined by ππβπΏπΏ and ππβπ
π
do not intersect, we can find ππβππ anyway by minimizing an error measure. One way to do this is to project
ππβππ into the left and right image planes to give ππβπΏπΏ′ and ππβπ
π
′. The error E is defined as the squared difference between the observed image points ππβπΏπΏ and ππβπ
π
and the projected image points ππβπΏπΏ′ and ππβπ
π
′.
a. Show that for the simplified parallel optical axis camera geometry used in class where
ππβ β π΅π΅β = 0, π
π
= πΌπΌ, ππβ π΅π΅β
πΈπΈ ≡ ππβπΏπΏ′ − ππβπΏπΏ2 + ππβπ
π
′ − ππβπ
π
2
ππ ππ 2 ππ 2 ππ ππ 2 = π§π§ππ π₯π₯ππ + 2 − π₯π₯πΏπΏ + π§π§ ππ π¦π¦ππ − π¦π¦πΏπΏ + π§π§ ππ π₯π₯ππ − 2 − π₯π₯π
π
ππ 2
+ π§π§ ππ π¦π¦ππ − π¦π¦π
π
b. By differentiating E with respect to π₯π₯ππ and π¦π¦ππ, show that
π₯π₯ππ = π₯π₯πΏπΏ+π₯π₯π
π
π§π§ ππ and π¦π¦ππ = π¦π¦πΏπΏ+π¦π¦π
π
π§π§ ππ
2 ππ 2 ππ
c. By differentiating E with respect to π§π§ππ and using the results of b., show that
ππ = ππππ
π§π§
βπ₯π₯
and conclude that
ππ = ππβπ΄π΄π΄π΄π΄π΄ π΅π΅β2
ππβ
π΅π΅β β ββ
2. Reference Image (4 pts): Sometimes we treat one image in a stereo pair as a “reference image” aligned with world coordinates. The other image and disparity are taken with respect to the reference image. Suppose that the right image is the reference image. Then we have
ππβπ
π
πΆπΆ = ππβππ and ππβπΏπΏπΆπΆ = ππβππ + π΅π΅β
Show that in this formulation, the world point is given by
ππ = ππβπ΄π΄π΄π΄π΄π΄ π΅π΅β2 − π΅π΅β
ππβ
π΅π΅β β ββ 2
You may assume that the left and right image rays intersect, although as Problem 1. shows, they don’t have to.
3. Inexact Match, Alternative Version (10 pts): Another way to determine distance when ππβπΏπΏ and ππβπ
π
do not intersect is to find the point ππβππ closest to the rays defined by ππβπΏπΏ and ππβπ
π
. The left image ray is defined by
ππ = − π΅π΅β + ππππβπΏπΏ, 0 ≤ ππ
ππβπΏπΏ
2
The goal is to find points ππβπΏπΏππ and ππβπ
π
ππ on the left and right image rays that are closest to each other; the point equidistant between them is the desired ππβππ. We can find these points by minimizing the following:
minππβπΏπΏππ − ππβπ
π
ππ2
ππ,ππ
Show that the solution is given by
ππβπ
π
2ππβπΏπΏ β π΅π΅β − ππβπΏπΏ β ππβπ
π
ππβπ
π
β π΅π΅βππβπΏπΏ + ππβπΏπΏ β ππβπ
π
ππβπΏπΏ β π΅π΅β − ππβπΏπΏ2ππβπ
π
β π΅π΅βππβπ
π
1
ππβππ = 2 ππβπΏπΏ2ππβπ
π
2 − ππβπΏπΏ β ππβπ
π
2