Lens Focal Length and Stereo Baseline Calculator

Lens Focal Length and Stereo Baseline Calculator

This calculator helps you selecting the right lenses for your cameras. It does so by computing the desired focal length, the corresponding field of view and the expected depth of field. In case of a stereo camera, such as our Karmin3 3D stereo camera, the calculator also helps you selecting the baseline distance and it provides information on the expected depth error.

You have several options for determining the focal length: you can enter the focal length manually, specify the desired field of view, or determine the focal length from the object of interest’s size and distance.

For computing the baseline distance of a stereo camera you further have to enter the minimum depth at which you want to be able to perform stereo matching and the considered disparity range. The baseline distance is then computed such that depth measurements at the minimum depth will have the maximum disparity value.

Image sensor properties

Sensor size:
Sensor resolution: × pixels
× pixels

Focal length

° (with respect to ROI)
Object size: ×
Object distance:

Depth of field (DoF)

Aperture: f/
Focused distance:
Circle of confusion: × Pixelpitch

Stereo geometry

Minimum depth:
Baseline distance:
Disparity range:
pixels
Expected disparity error: Pixel




Results


Image sensor metrics

Sensor width: mm ( pixels)
Sensor height: mm ( pixels)
Pixel pitch: µm (after binning)
ROI width: mm ( pixels)
ROI height: mm ( pixels)

Lens metrics

Focal length: mm
Horizontal field of view (ROI): °
Vertical field of view (ROI): °
Diagonal field of view (ROI): °

Depth of field

Hyperfocal distance:
Near limit:
Far limit:
Total depth of field:

Stereo geometry metrics

Baseline distance:
Minimum depth:
ROI with full disparity range: pixels ()
ROI with half disparity range: pixels ()

Depth error chart

Link to this result

You need help with the calculation or you have found a suitable system?