What limits the maximum distance for stereo photography depth measurement?
Asked 7/24/2013
5 views
2 answers
0
In a stereo setup, what determines the farthest distance at which you can still recover useful depth from two cameras? For example, if the camera baseline is 2.5 m and the cameras have roughly 656×492 resolution, 7.4 µm pixel pitch, a 1/3" CCD sensor, and about a 6 mm lens, how can you estimate the maximum range? More generally, how do baseline, focal length, pixel size, and image resolution affect the practical distance limit for stereoscopic depth measurement?
Originally by Photography Stack Exchange contributor. Source · Licensed CC BY-SA 4.0
Photography Stack Exchange contributor
13y ago
2 Answers
8
There is a distance limit. It depends on the baseline, the focal length and the pixel pitch.
Disparity MapsThe depth information is calculated by comparing two feature points in the two images. The difference in point position is called disparity. In rectified, parallel stereo cameras you end up with a disparity map. This contains all the information for depth calculation, you only need the baseline and focal length of your two cameras.
MathsThe further away your point in space is, the smaller the disparity becomes. A point at infinity will have zero disparity.
Test this with a camera. You could do this with the sun but for safety I'd recommend a really far away mountain. Take the camera. Point it at the mountain, take a picture. Move it perfectly parallel to the direction it is pointing. Take another picture. The object should not have moved. The test will probably fail because you can't move the camera that parallel.
However, there is a practical limit to the disparity. We can only calculate the disparity for discrete values (ignoring subpixel accuracy). Therefore the smallest values we can distinguish are between 0 and 1. So the disparity can be at 0px or at 1px. At 0px it would be at infinity and for 1px it would be the furthest away that we can still say something about the distance.
Given your pixel size in mm x, the focal length f and the baseline b we get the furthest distance as:
d = f * b / x
My Model
Here is how to get to my calculation.
Sketch 1: Assume cameras are parallel by baseline, object is at distance d and use the standard pin-hole camera model.
Sketch2: Transform sketch 1 so that the cameras are atop each other and the object has split into two points. The first point is seen straight ahead, and the second is seen towards the side by a distance of b.
Calculations: Now x can be calculated using triangle ratios. To make a distinction of depth the length x must be 1px, or the equivalent length in mm.

Originally by user7718. Source · Licensed CC BY-SA 4.0
user7718
13y ago
0
Generated from our catalog & community — verify before relying on it.
Yes—there is a practical maximum distance for stereo depth measurement. It is governed mainly by baseline, focal length, and pixel/pixel-pitch-limited disparity resolution.
Stereo depth comes from disparity: how far the same feature shifts between the left and right images. As subject distance increases, disparity gets smaller. At infinity, disparity becomes zero, so depth cannot be recovered.
In a rectified parallel stereo pair, depth is derived from the disparity map plus the known baseline and focal length. The useful range ends when disparity becomes too small to measure reliably—typically when it approaches about a pixel or less (or whatever your matching algorithm can resolve).
So, in general:
- larger baseline -> more disparity at a given distance -> longer usable range
- longer focal length -> more disparity in the image -> longer usable range
- smaller pixels / higher resolution -> finer disparity measurement -> longer usable range
- better image quality and feature matching -> improves practical results
There is no single universal distance limit; it depends on your geometry and measurement precision. In theory, very large baselines can measure extremely distant objects. In practice, your maximum range is where the disparity becomes too small compared with your sensor resolution and matching accuracy.
Recommended products
UniqueBot
AI13y ago
Your Answer
Related Questions
Is the traditional hyperfocal distance calculation outdated for high-resolution digital cameras?
How can I estimate an object's real size from pixel size, focal length, and subject distance?
What does pixel size in µm mean on a camera sensor, and how does it affect image quality?
How do you choose circle of confusion for depth of field on a 16K line-scan camera?
How should depth of field be calculated for a custom 50mm microscopy optic, and why would near DOF exceed far DOF?