Stereo Vision is the process of gaining depth information in a 2D picture by comparing a scene from two vantage points.
In the example below, we have two cameras, .

Assuming the cameras are at the same level, we can use similar triangles to form the following equations:
Hence, we can solve for and remove the unknown as: