Geometric Computer Vision: Difference between revisions
Line 142: | Line 142: | ||
===Zhang's Approach=== | ===Zhang's Approach=== | ||
==Stereo== | |||
Consider two cameras, where the right camera is shifted by baseline <math>d</math> along the x-axis compared to the left camera. | |||
Then for a point <math>(x,y,z)</math>, | |||
<math>x_l = \frac{x}{z}</math> | |||
<math>y_l = \frac{y}{z}</math> | |||
<math>x_r = \frac{x-d}{z}</math> | |||
<math>y_r = \frac{y}{z}</math>. | |||
Thus, the stereo disparity is the ratio of baseline over depth: <math>x_l - x_r = \frac{d}{z}</math>. | |||
With known baseline and correspondence, you can solve for depth <math>z</math>. | |||
==Projects== | ==Projects== |