Machine Vision Optics Guide

Lens Aberrations in Machine Vision: Field Curvature, Astigmatism, Chromatic Aberration, and Spherical Aberration

Why a lens can pass its distortion spec and still fail a barcode or inspection task, and which aberrations software can and cannot fix.

By Max Henkart, Commonlands · Updated May 2026 · 10 min read

A Commonlands C-mount lens whose multi-element design corrects machine vision aberrations

Lens aberrations are deviations from ideal image formation that produce soft corners, orientation-dependent blur, color fringing, or center-to-edge sharpness mismatch. Distortion changes geometry without reducing sharpness, and software corrects it well. Field curvature, astigmatism, spherical aberration, and chromatic aberration reduce contrast in ways software cannot fully recover.

For machine vision, the reliable fix for these blur-causing aberrations is a better-corrected lens, a narrower aperture where illumination allows, or narrowband illumination, not a software patch applied after capture.

What lens aberrations mean in machine vision

An ideal lens maps every scene point onto the sensor with perfect sharpness, correct geometry, and no color separation. Real lenses deviate because refraction through a curved surface bends different rays, and different wavelengths, by different amounts. In photography those deviations are often aesthetic. In machine vision they are engineering constraints, where a soft edge can fail a barcode read or push a measurement out of tolerance.

The blur-causing aberrations, field curvature, astigmatism, spherical aberration, and chromatic aberration, lower the contrast of fine detail. Once that contrast is gone, no software step recovers it. Distortion is the exception: it moves image points without softening them, so calibration corrects it to sub-pixel accuracy.

Center sharpness alone does not describe a lens: field curvature, astigmatism, and lateral chromatic aberration grow with field angle. A lens can pass an MTF (modulation transfer function) check at the center yet fail at 70% or 100% field height, where barcodes and part edges sit. The Commonlands MTF curve guide covers sagittal and tangential curves at several field positions.

A disassembled machine vision lens showing its row of small coated glass elements
Each element both corrects and introduces its own lens aberrations.

What is chromatic aberration?

Chromatic aberration occurs when a lens focuses different wavelengths to different positions. Glass has a wavelength-dependent refractive index, bending blue light more than red, so a single-glass element cannot bring all colors to one focal point. It appears as focus shift, color fringing at high-contrast edges, and calibration drift when a system switches between visible and NIR illumination.

Two forms exist. Axial, or longitudinal, chromatic aberration focuses wavelengths at different distances along the axis, so no single focus captures all of them. Stopping down reduces the blur but does not correct the dispersion. Lateral chromatic aberration gives wavelengths different magnification, offsetting the color planes across the field, and it ignores aperture because it is a magnification error, not a focus error.

The effect matters more here than in photography because small-pixel sensors amplify any offset between color planes. Switching to 850nm or 940nm NIR shifts focal position, and a lens sharp in visible light can go soft. Commonlands IR-corrected lenses use glass combinations that hold visible and NIR focus close enough to share one position. A monochrome sensor with narrowband illumination avoids the problem, since the lens is corrected at one wavelength.

What is spherical aberration?

Spherical aberration occurs when rays through different radial zones of a spherical surface converge at different points along the axis. Paraxial rays near the center focus farther from the lens. Marginal rays near the edge focus closer. No single focal plane catches all rays sharply, so the image looks soft even at best focus, and low distortion does not rule it out.

It is not defocus. Defocus shifts the whole focal plane and refocusing corrects it. Spherical aberration is zone-dependent, so no sensor position gives a fully sharp image. It also differs from field curvature, because it can degrade the on-axis center.

Fast lenses show it most clearly: at a wide aperture the marginal zones with the largest focus offset contribute, and stopping down blocks those rays to improve sharpness, though the lens is restricted, not corrected. For Commonlands M12 lenses, whose aperture is fixed at manufacture, that tradeoff is set at order time. Aspherical elements are the main tool for reducing it. See what is an aspherical lens below.

What is field curvature, and why is astigmatism its off-axis partner?

Field curvature is a lens aberration where the surface of best focus is curved rather than flat, so the focal distance changes across the field: the center can be sharp while the corners need a different position. It is sometimes called Petzval field curvature, after Josef Petzval.

A flat sensor meets the curved surface at the center but drifts away toward the periphery, so corners soften and refocusing them pushes the center out. Astigmatism is its off-axis partner: radial and tangential edges focus at different depths, so a line along the radius stays sharp while a perpendicular line at the same position blurs.

Stopping down extends depth of field enough to tolerate the center-to-edge mismatch, but it does not flatten the surface. C-mount lenses with an adjustable iris make that practical, since illumination is usually controllable. M12 lenses typically have fixed apertures.

Field curvature grows with field radius and shifts with working distance, so a lens flat on a 1/3" sensor can soften on a larger format or a short working distance. The sensor size and lens compatibility guide and the working distance guide cover those cases.

What is an aspherical lens?

A spherical lens surface has one constant radius from center to edge. That shape is simple to make, but it bends marginal rays more strongly than paraxial rays, the direct cause of spherical aberration. An aspherical surface varies its curvature with radius, steering marginal and paraxial rays toward a common focal point and giving the designer one extra degree of freedom per element in a compact housing.

One or two molded glass aspheres can do the work of three or four extra spherical elements, which is why Commonlands compact M12 lenses use them to reach wide apertures without a long stack. Pressed from optical glass at high temperature, they hold their refractive properties across a wider temperature range than plastic-molded aspheres, which matters outdoors and in industrial heat.

An asphere is primarily a spherical-aberration tool. It does not automatically fix distortion, chromatic aberration, or field curvature. Those are set by the full prescription, so verify distortion, chromatic behavior, and field MTF independently.

What each aberration looks like in a real vision system

This Commonlands reference table maps each aberration to its visual signature, the applications it affects most, and whether software correction helps.

Aberration What it looks like Applications most affected Software correctable?
Distortion Straight lines bow inward (pincushion) or outward (barrel); geometry wrong but sharp Dimensional measurement, robotic guidance, barcode reading at field edges Yes, to sub-pixel accuracy with geometric calibration.
Field curvature Center sharp, corners soft at one focus setting; refocusing corners softens center Flat-target inspection (PCB, label, flat part surface), full-sensor barcode reading No; stopping down helps tolerance but adds diffraction.
Astigmatism Off-axis edges sharp in one orientation, blurred in the perpendicular one; sagittal/tangential MTF diverge Text OCR, edge-based gauging, barcode reading at corners No; MTF data reveals its severity.
Spherical aberration Soft haze around high-contrast edges, worst at low F/#; focus position shifts with aperture High-resolution inspection, fine pixel-pitch sensors, low-light imaging No; stopping down or an asphere reduces it optically, but software cannot restore the lost contrast.
Chromatic aberration (axial) Color halos on high-contrast edges; different channels soft at the same focus distance Color defect detection, VIS/NIR day-night systems No; narrowband illumination avoids it optically.
Chromatic aberration (lateral) Color fringing at field edges; RGB channels shifted relative to each other Color inspection at full sensor width, color edge detection Partially; per-channel calibration helps.

What software can and cannot fix

Geometric distortion is the one aberration software handles well. Calibration computes radial and tangential distortion coefficients from a checkerboard target and corrects the image to sub-pixel accuracy in real time. Lateral chromatic aberration can be partly corrected by aligning per-channel maps in post-processing, at some cost.

Field curvature, astigmatism, spherical aberration, and axial chromatic aberration lower the contrast of fine detail. Once it is gone, processing cannot recover it. Deconvolution can partly restore well-characterized blur, but it needs a point-spread-function model for every field position and focus distance, so in production it is rarely practical. For soft corners or color fringing, change the lens or the illumination.

Stopping down helps by two mechanisms: it blocks the outer zones that drive spherical aberration, and it shrinks the blur circle for astigmatism and axial chromatic aberration. On a C-mount lens with an adjustable iris this is practical, limited by diffraction. The depth of field guide and the f-number guide cover the tradeoff. M12 apertures are fixed, so it is not a field correction there.

Commonlands lens examples and aberration tradeoffs

Every lens design makes aberration tradeoffs. These three Commonlands lenses show how the priorities shift with format, focal length, aperture, and construction.

Lens Mount and image circle Aperture Aberration the design prioritizes
CIL062 M12, 9.0mm image circle F/2.8, fixed at manufacture Low distortion (-2%)
CIL122 M12, 9.3mm image circle F/2.4, fixed at manufacture Axial chromatic aberration across visible and NIR
CIL514 C-mount, 17.6mm image circle F/2.8 to F/16, adjustable iris Field curvature and lateral chromatic aberration on a 1.1" format

The CIL062 is a $19 M12 lens with -2% distortion. At F/2.8 fixed, verify edge MTF before using its full 9.0mm image circle on a larger sensor.

The CIL122 holds visible and NIR focus close enough to share one position, addressing axial chromatic aberration directly. The CIL514 covers a 17.6mm, 1.1" image circle where field curvature and lateral chromatic aberration are hardest to hold, and its F/2.8 to F/16 iris trades aperture for depth-of-field tolerance.

Specifying aberration tolerances in a purchase order

Most machine vision purchase orders name focal length, mount, resolution, and F/#, then stop. That selects a lens family but does not pin down corner and off-axis performance. A complete Commonlands aberration specification names four things, each on its own line.

Requirement What to state Why it matters Example line
Field positions Where in the frame performance is required Brackets where barcodes, labels, and part edges sit Center, 70%, and 100% of image height
Metric MTF at a stated spatial frequency, not a single resolution number Ties the requirement to the sensor's pixel pitch MTF at 100 lp/mm
Conditions Aperture and working distance the measurement is taken at Spherical aberration and aberration balance change with both F/1.8 at 300mm working distance
Band Illumination wavelength or band Axial chromatic aberration shifts focus between visible and NIR 850nm or 940nm NIR

Give distortion, chromatic aberration, field curvature, and astigmatism their own tolerance lines, not one blanket image-quality requirement. A lens can meet ±1% distortion and still fail on field curvature. For volume programs, a measured test report per batch, tied to a lot or serial range, turns a subjective complaint into a quantified MTF comparison. A Commonlands Trioptics ImageMaster HR2 report provides that data.

A resolution chart sharp at center with color-fringed, soft corners through a lens
Commonlands aberration reference: field curvature and chromatic aberration soften and tint the corners.

Frequently asked questions

Commonlands publishes distortion data for its lenses, and these answers name the aberrations behind those numbers.

What are lens aberrations in machine vision?

Lens aberrations are deviations from ideal image formation caused by light refracting through real glass or plastic elements. In machine vision they produce repeatable defects: soft corners, orientation-dependent blur, color fringing, or center-to-edge sharpness mismatch. The patterns follow field position, wavelength, and aperture, not random noise.

What is chromatic aberration in a lens?

Chromatic aberration comes from the wavelength-dependent refractive index of glass. A lens bends short wavelengths more than long ones, so colors focus at different distances (axial) and different magnifications (lateral). The result is focus shift, color fringing at high-contrast edges, and calibration drift when a system switches between visible and NIR illumination.

What is spherical aberration in a lens?

Spherical aberration is where rays through different radial zones of a spherical surface converge at different points along the optical axis. Marginal rays near the edge focus closer than paraxial rays near the center. No single focal plane captures all rays sharply, so the image is soft even at best focus.

What is field curvature in a lens?

Field curvature is where the surface of best focus is curved rather than flat. On a flat sensor viewing a flat target, the center can be sharp while the corners are soft, or the reverse, even when focus is otherwise correct. It is sometimes called Petzval field curvature, after Josef Petzval.

What is an aspherical lens?

An aspherical lens uses one or more surfaces whose curvature varies with radius, rather than a constant spherical radius. That steers marginal and paraxial rays toward a common focal point, reducing spherical aberration with fewer elements. It is a design tool, not a guarantee against every aberration: it does not automatically fix distortion, chromatic aberration, or field curvature.

Can software fix lens aberrations?

Software corrects geometric distortion well because the pixel data is present, just mispositioned. It cannot reliably restore contrast lost to field curvature, astigmatism, spherical aberration, or axial chromatic aberration. Where the lens MTF has fallen to zero, that information is gone. Deconvolution can partly recover attenuated detail but is rarely practical in production. Lateral chromatic aberration responds partly to per-channel calibration, but production systems should fix blur-causing aberrations at the lens or illumination level.

Need help selecting a lens for aberration-sensitive imaging?

Commonlands manufactures M12 and C-mount lenses for machine vision and offers MTF test reports measured on a Trioptics ImageMaster HR2 system. Send our San Diego engineering team your sensor model, working distance, and inspection requirement at engineering@commonlands.com. Orders placed before 12 PM PST ship same day.