Telecentric lenses and illumination for precise gauging
Learn how telecentric lenses hold magnification constant, what limits field and depth, when collimated lighting helps and when the cost is justified.
How object-space telecentricity works
In a standard (entocentric) lens the chief rays converge on an entrance pupil at a finite distance in front of the sensor, so nearer objects appear larger. An object-space telecentric lens puts the aperture stop at the rear focal plane of its front group, which moves the entrance pupil effectively to infinity. Chief rays are then parallel to the optical axis at the object. Moving the object along the axis no longer changes its image size in any significant way, and the lens sees no perspective: a cylinder looks like a rectangle without visible sidewalls, and a through-hole is seen straight down its length.
A bi-telecentric lens is telecentric on the image side as well, with chief rays perpendicular to the sensor. That makes magnification insensitive to small errors in sensor position and gives more even illumination across the sensor. Many metrology-grade lenses are bi-telecentric, and it is generally the preferred type for high-accuracy gauging.
Constant magnification is not absolute. The residual is quantified by the telecentric slope, the maximum chief-ray angle in object space, which for metrology lenses is typically on the order of 0.1° or less. The lateral error of an edge from a shift Δz is Δz × tan(slope). Telecentric lenses are also normally fixed in both magnification and working distance, so they are selected for a specific field rather than adjusted to it.
When telecentric is worth the cost
Decide with numbers. With a standard lens, apparent size changes by about Δs = s × Δz / D, where s is the feature size, Δz the shift in object distance and D the distance from object to entrance pupil. Worked example: a 20 mm part with D = 200 mm and Δz = 1 mm gives Δs of about 100 µm. Increasing D to 1 m reduces it to 20 µm, but does not remove it. A telecentric lens with a 0.1° slope gives at most about 1.75 µm per edge for the same 1 mm shift, or about 3.5 µm across the part: nearly 30 times lower.
A useful rule is to compare Δs with the tolerance band. If the apparent size change from real Z variation is more than about 10% of the band, and Z cannot be cheaply fixed by better fixturing, a telecentric lens is usually justified. If Z is held well by a datum, a good low-distortion standard lens with calibration can be more economical, and it can cover far larger fields.
- Worth it: tight tolerances with uncertain part height or seating; several feature heights in one view; round, stepped or deep parts where sidewalls would be visible; pin arrays and through-holes.
- Often not worth it: detection rather than measurement; well-fixtured flat parts; loose tolerances compared with the calculated error.
- Usually impractical: fields much larger than typical telecentric front optics, or applications where the lens's limited light throughput cannot support the required exposure.
- Alternatives: mechanical datum, longer working distance, height compensation from a second sensor, 3D measurement, or several smaller telecentric views of key features.
Field, magnification and the camera
Telecentric lens selection starts from magnification: m = sensor size / field. The front optics must be at least as large as the field diagonal, plus margin, because the parallel chief rays cannot arrive from outside it. Typical catalog fields range from a few millimetres to a few hundred millimetres, and length, mass and cost climb steeply with size. Line-scan telecentric lenses work around part of this limit, since they only need to cover a long, narrow field.
Worked example: a 5 MP, 3.45 µm sensor measures about 8.45 × 7.07 mm. For a part requiring a field of about 40 × 33 mm plus margin, choose m of about 0.176, giving a field of about 48 × 40 mm and an object-side pixel of about 19.6 µm. The field diagonal of about 62 mm sets the minimum front aperture. Check that the lens's image circle covers the 11 mm sensor diagonal, because using a sensor larger than the lens is rated for causes vignetting.
When selecting a high-resolution camera, check the lens limit first. At WF/8 in green light (520 nm) the diffraction spot is about 10 µm across, roughly 3 pixels at 3.45 µm and 5 pixels at 2 µm. The incoherent cutoff frequency, 1 / (λ × WF#), is about 240 lp/mm, compared with a Nyquist frequency of about 145 lp/mm at 3.45 µm and 250 lp/mm at 2 µm. Smaller pixels on the same format therefore deliver diminishing returns. To gain real detail, prefer a larger sensor with a similar pixel pitch and a lens rated for that format, a higher magnification on a smaller field, or a lower WF# at the cost of depth.
Depth of field and telecentric range
Telecentricity does not extend depth of field. It behaves as it does with any lens, and for a telecentric lens a useful approximation is DoF ≈ 2 × WF# × c / m², where WF# is the working F-number and c the allowed blur on the sensor. Worked example with WF/8 and c = 10 µm, about 3 pixels of 3.45 µm and about the diffraction spot in green light: 16 mm at m = 0.1, about 2.6 mm at m = 0.25, about 0.64 mm at m = 0.5, and about 0.16 mm at m = 1. Magnification dominates, so doubling it reduces depth by four.
Stopping down increases depth in proportion to WF#, but light falls with its square and the diffraction spot grows. Going from WF/8 to WF/16 needs four times the exposure or light, and the spot grows to about 20 µm, or roughly 6 pixels at 3.45 µm. For silhouette gauging, a soft but symmetrical edge can still be measured repeatably. For fine surface detail it often cannot.
There is a useful subtlety. Because chief rays remain parallel, a defocused edge blurs roughly symmetrically around the same lateral position. So edge location can stay stable somewhat beyond the sharp depth of field, provided contrast and thresholding hold. Some datasheets therefore distinguish a wider telecentric range from a depth of field at a stated contrast. Published depth values can also differ widely, because vendors use different contrast and spatial frequency criteria. Compare like with like, and treat the formula as a planning estimate.
- Depth scales with 1 / m²: prefer the lowest magnification that still meets sampling requirements.
- Light scales with 1 / WF#²: WF/16 needs 16 times the light of an f/4 standard lens.
- Use short wavelengths where the lens is rated for them: blue or green light reduces the diffraction spot.
- On round parts, focus on the plane of the silhouette at the widest section, not the top of the part.
Telecentric illumination: why collimated light helps
A telecentric lens accepts only a narrow cone of rays around the parallel direction. A diffuse backlight emits in all directions, so most of its light never enters the lens, and exposure is long. Worse, on round or shiny parts, grazing rays reflect from the sidewall into the lens and brighten the edge, which erodes the apparent silhouette and shifts the measurement. A diffuse panel can also light the edges from behind at wide angles, creating a soft transition that depends on the part's surface finish.
A telecentric illuminator solves both, using a collimating lens to produce a nearly parallel beam matched to the field. Almost all the light reaches the sensor, so exposures are often much shorter, which helps with vibration and moving parts. Rays striking the sidewall are reflected at angles outside the lens's acceptance, so edges stay sharp and independent of surface finish. Also, the narrow acceptance rejects much of the ambient light, and a matching bandpass filter can reduce it further.
Wavelength and alignment matter. Green or blue light reduces diffraction and, with a single colour, avoids chromatic error, but check that it matches the lens's specified range. Alignment is more sensitive than with a diffuse panel: if the beam is tilted relative to the lens axis, you see vignetting or a brightness gradient. Use an adjustable mount, and set it before calibration. The beam must cover the entire field, including any part motion.
Edge threshold needs care. For incoherent light, intensity at the geometric edge is about 50% of the clear level; for fully coherent light it is about 25%. A collimated LED beam lies somewhere in between, so do not assume a 50% threshold gives the true dimension. Determine the edge offset by measuring a certified master of similar size, material and edge shape.
- Collimated backlight: round, shiny, tall or high-tolerance parts; shortest exposures and sharpest silhouettes.
- Diffuse backlight: thin, flat, matte stampings where edge glow is minimal and tolerance is less demanding.
- Coaxial front lighting, sometimes built into the lens: flat specular surfaces appear bright, with scratches and engraving dark.
- Transparent parts: collimated backlight can highlight edges, bubbles and refractive changes that diffuse light washes out.
Worked metrology examples
Shaft diameter. A 12 mm shaft has a tolerance of ±0.02 mm, a 40 µm band, so the uncertainty target is about 4 µm. Seating varies by ±0.5 mm. With m = 0.25 on the 5 MP sensor above, the field is about 34 × 28 mm and the object-side pixel about 13.8 µm. Sub-pixel edge location of about 0.1 pixel gives 1.4 µm per edge, or 2 µm for two edges. A 0.1° slope contributes at most about 1.75 µm across the diameter, and a 5 °C uncertainty on steel adds about 0.7 µm. Combined as root sum of squares, that is about 2.8 µm, inside the target. With a standard lens at D = 200 mm, the same seating error alone would be 30 µm, 75% of the band. A telecentric lens and collimated backlight are justified. The depth of about 2.6 mm from the earlier example also covers the 1 mm seating range.
Connector pin position. Pins in an array 30 mm wide have tips varying by 0.5 mm in height. A standard lens at D = 150 mm shifts an outer pin, 15 mm from the axis, by about 50 µm radially for that height difference, which looks like a position defect. A telecentric lens at 0.1° shifts it by under 1 µm. This is a front-lit case, because the tips need to be seen from above, so a dome, low-angle or coaxial light replaces the backlight.
Flat gasket, where telecentric is not justified. A 150 mm gasket on a glass stage has a tolerance of ±0.2 mm, a 400 µm band, and Z varies by ±0.05 mm. With a standard lens at D = 500 mm, Δs is 150 × 0.05 / 500 = 15 µm, under 4% of the band. A telecentric lens covering this field would be large and heavy with no measurement benefit. A low-distortion standard lens, a diffuse backlight and a distortion calibration do the job.
Setup and the rest of the error budget
The lens removes only one error source, and others can easily exceed it. Part tilt produces cosine error: a 50 mm length tilted by 1° reads about 7.6 µm short. Thermal expansion is real: a 50 mm aluminium part changes by about 5.8 µm over 5 °C, and steel by about 3 µm. Low distortion is still not zero: 0.1% at 20 mm from the centre is 20 µm. Calibrate it with a certified dot grid or chrome-on-glass target at the working plane, and verify with a master part close to the nominal size.
Mechanics complete the picture. Telecentric lenses can be long and heavy, so clamp the lens at or near its centre of mass rather than hanging it from the camera's mount thread. Keep the camera, lens and part datum on one rigid structure, isolate it from machine vibration, and let it reach thermal equilibrium before calibration. Set the working distance accurately and square the optical axis to the measurement plane.
Be conservative about sub-pixel claims. About 1/10 pixel is a realistic repeatability figure for a sharp edge with a stable light, while much finer figures usually assume ideal conditions and heavy averaging. Validate with a gauge study using real parts, and treat calculated budgets as a way of finding the largest error, not as proof of system capability.
A telecentric setup is easy to over-specify, so confirm the required accuracy on real parts before fixing the field of view. AIS Vision validates measurement applications with sample parts, including the choice between a collimated illuminator and a standard backlight.
- Set magnification and check image circle against the sensor.
- Check depth of field against real part and seating variation.
- Align the illuminator to the lens, then fix the alignment.
- Calibrate scale and distortion at the working plane.
- Determine edge threshold or offset on a certified master.
- Run a gauge study on production parts at production temperature.
Frequently asked questions
Related categories
- Telecentric lenses
- Telecentric illuminators
- Backlights
- High-resolution cameras
Related guides
How to choose a lens for machine vision
A practical engineer's guide to selecting machine-vision lenses: focal length from FOV and working distance, sensor format, resolving power, aperture, depth of field and telecentricity.
Types of machine vision lighting: ring, backlight, coaxial, dome and dark field
A practical guide to machine vision lighting geometries — ring, bar, backlight, coaxial, dome and dark field — explaining what each reveals, the surfaces it suits, and how to choose the right one directly from your inspection problem.
High-resolution imaging for inspection
When 20+ MP cameras earn their place in inspection: sensor formats, the optics and MTF challenge, bandwidth and interfaces, lighting uniformity, and single high-res vs multi-camera.
Camera calibration targets: how to choose and use them
The right calibration target depends on lens, lighting and tolerance: compare checkerboard, dot grid and ChArUco, target size, accuracy and substrate.











