Skip to main content

03 / 04   Lens

Application note

Specifying a Lens for Measurement

Preserve feature detail across the required field of view.

A lens maps the inspection field onto the sensor. Magnification determines field coverage and object-space sampling, while optical performance determines how much feature contrast reaches the image. A measurement lens therefore requires both a geometric specification and an image-quality requirement across the intended field and part-depth range.

Field coverage

For a centered rectangular field and approximately uniform magnification, the largest magnification that covers both required axes is:

M=min⁡(SxFOVx,required,SyFOVy,required)M=\min\left(\frac{S_x}{FOV_{x,\mathrm{required}}}, \frac{S_y}{FOV_{y,\mathrm{required}}}\right) FOVx,actual=SxM,FOVy,actual=SyM,PSS=pMFOV_{x,\mathrm{actual}}=\frac{S_x}{M},\qquad FOV_{y,\mathrm{actual}}=\frac{S_y}{M},\qquad PSS=\frac{p}{M}

Sx,SyS_x,S_y are active sensor dimensions in mm, MM is positive magnification magnitude, and pp is pixel pitch in mm/pixel. PSSPSS gives the corresponding object-space sampling. These relations assume a planar field with approximately uniform scale. Significant distortion requires a spatially calibrated mapping.

A lens maps the required object field onto the active sensor; matching both axes determines the limiting magnification.

View diagram at full size

A 1,920 × 1,200 sensor with 4.5 µm pixels has an active area of 8.64 × 5.40 mm. For a required field of 92.4 × 59.4 mm, M≈0.090909M\approx0.090909 produces 95.04 × 59.4 mm coverage and 0.0495 mm/pixel sampling. The aspect-ratio mismatch leaves extra horizontal coverage; cropping reduces the usable field.

Focal length

For a thin-lens model with object distance uu:

f≈uM1+Mf\approx\frac{uM}{1+M}

The focal length ff and object distance uu are in mm. At u=250u=250 mm and M≈0.090909M\approx0.090909, the estimate is 20.83 mm. Optical object distance is measured from the object-side principal plane. Mechanical working distance is usually measured from the lens housing, so substituting it introduces an approximation. Manufacturer conjugate and mechanical data establish the geometry of a real lens, particularly for telecentric, macro, and complex assemblies.

Image quality across field and depth

The usable image circle must cover the sensor diagonal with acceptable corner illumination and resolution. Modulation transfer function (MTF) describes contrast transfer at different spatial frequencies. Lens evaluation uses the relevant frequency at the operating wavelength, aperture, magnification, and field position. Convert object-space frequency to image-space frequency by dividing by MM.

Part-height variation changes perspective with conventional optics; depth of field and telecentric behavior require separate checks.

View diagram at full size

Reducing the aperture can increase depth of field and reduce some aberrations. It also reduces light throughput, and diffraction eventually lowers fine-detail contrast. The acceptable depth range depends on the image-quality criterion used at the near and far part planes.

Object-space telecentric optics reduce perspective and depth-dependent magnification within their specified operating range. Distortion and defocus remain separate considerations. Dimensional verification with independent references establishes residual error across the working volume, including the effects of mounting and focus tolerances.

Try the calculation

Magnification & lens estimate

Fit the required field onto a candidate sensor and estimate a starting focal length.

Change the example values to update the results. Use the units shown for each field.

Assumes square pixels.

Measured from the object-side principal plane. Housing working distance is only an approximation.

Active sensor, width × height
8.64 × 5.4 mm
Sensor diagonal
10.1887 mm
Magnification magnitude
0.0909091 ×
Predicted full-sensor FOV
95.04 × 59.4 mm
Object-space sampling
0.0495 mm/pixel
First-order focal length
20.8333 mm
Formula & assumptions

Sensor size [mm] = pixel count × pitch [µm] / 1000. M = min(sensor width/FOV width, sensor height/FOV height). Actual FOV = sensor size/M. f ≈ u × M/(1 + M).

Uses one isotropic magnification and a thin-lens focal-length approximation. Actual FOV can exceed the required envelope on one axis. Verify the real lens at its specified working distance; telecentric, macro and complex lenses need manufacturer data. Distortion and optical performance are not modeled.

From estimate to application

Specify optics for your measurement requirements.

Field coverage, working distance, depth variation, and image quality have to work together. Iris can help evaluate those tradeoffs for your actual part and tolerance.

Discuss your optical requirements