Skip to content

Instantly share code, notes, and snippets.

@nikolaseu
nikolaseu / lensCalculator.m
Created October 29, 2017 17:09
Lens focal length calculator
% required dimensions
standoff = 500; % distance from camera, in [mm]
fovWidth = 320; % width of field of view, in [mm]
fovHeight = 10; % height of FOV, in [mm]
% sensor resolution
sensorXRes = 4096; % widht
sensorYRes = 3072; % height
% pixel physical size