Search Ctrl K
Home / Tools
THE FEUTEX TOOLKIT

Stereo Camera Depth Estimate

Estimate depth and first-order depth uncertainty from disparity.

Photography workspace● Runs in your browser
01 Your input
02 Your result
View or copy raw result data
FormulaEstimated depth = b*f/d; Approximate depth uncertainty = b*f*error/d**2
Sources and model references

Worked example

Inputs

Stereo baseline
0.1 m
Focal length in pixels
1000 pixels
Image disparity
20 pixels
Disparity uncertainty
0.2 pixels

Expected results

Estimated depth
5 m
Approximate depth uncertainty
0.05 m

Load the example in the workspace to reproduce these results. Display rounding does not change the underlying calculation.

How to use this tool

  1. Estimate depth and first-order depth uncertainty from disparity.
  2. Set stereo baseline, focal length in pixels, image disparity, disparity uncertainty in the indicated units.
  3. Calculate and compare estimated depth, approximate depth uncertainty.

Try this example

{
  "b": 0.1,
  "f": 1000,
  "d": 20,
  "error": 0.2
}

Accuracy and scope

Idealized educational model. Enter measured values in the displayed units; real systems may require additional corrections.

Is my data uploaded?

This tool runs locally in your browser. Input and output are not sent to a processing server. Copy or download your result before leaving the page.