Stereo: Range vs Disparity Is Nonlinear
Goal: show that range depends nonlinearly on disparity , by differentiating. Linear means a constant first derivative and a zero second derivative. Both proofs below fail that test.
1. Proof 1: Stereo similar triangles
Two cameras with centres and , baseline and focal length , look at a point at range . Its images are and , and its disparity is , so the image points are apart. The triangle (light) is similar to the triangle (dark):
and are fixed, so differentiate with respect to :
The slope depends on , so the relation is nonlinear. In the other direction it is the same: , so .
Equivalently, is constant, so the graph is a hyperbola. Consequence: a fixed disparity error gives a range error . That error grows with the square of the range.
2. Proof 2: One fixed point (pinhole)
Set-up: a vertical wall on the left. A ray leaves it at height , passes through a fixed point , and hits the ground at horizontal distance . is at height and at horizontal distance from the vertical line. Every ray passes through , which is exactly what a pinhole does.
The ray makes angle with the ground. There are two right triangles along it: the one above and the whole one.
The second form gives .
Solve the first relation for :
Differentiate with respect to , holding and fixed:
Again the slope depends on , so the relation is nonlinear. The minus sign matches the drawing: a lower point () sends its ray farther out ().
2.1. Link to Proof 1
Rearranging gives
This has the same form as : a product of two measured quantities (each shifted by a constant) equals a constant. That is a hyperbola, so the two proofs say the same thing.
2.2. The version
The red ray in the diagram is the same set-up with and :
Subtracting the equation shows that depends on . That is the finite-difference version of the result above. Letting gives .