Line Scan Camera Lens Brightness Uniformity Guide: How to Diagnose Centre-to-Edge Shading Without Confusing It With Vignetting

A line scan image can be fully focused, properly exposed and completely covered by the lens, yet still show a gradual brightness difference from the centre of the scan line toward one or both edges. In industrial inspection, this problem is often described loosely as vignetting, but that description can be misleading. Centre-to-edge brightness shading, relative illumination variation, illumination non-uniformity and true optical vignetting are related but not identical problems, and treating them as the same fault can send an OEM in the wrong diagnostic direction.

For a line scan inspection machine, brightness uniformity matters because defect-detection thresholds, edge contrast, surface classification and measurement stability may all depend on consistent signal across the complete sensor. A scratch that is clearly detected in the centre of the field can become less visible near a darker edge even when optical resolution is still adequate. A web or sheet may therefore appear to have a process variation when the real cause is uneven optical response across the scan line.

The Kyptec Automation® Line Scan Camera Lens collection currently contains three dedicated focal lengths—25 mm, 35 mm and 50 mm—designed for high-resolution line-scan imaging. The live Kyptec Automation® product pages specifically describe these lenses as optimized for line scan cameras with uniform illumination, minimal distortion and consistent sharpness across the entire field of view, making brightness uniformity an especially relevant parameter when qualifying the lens inside a production inspection system.

Brightness Uniformity Is Not the Same as Image Circle Coverage

One of the first diagnostic mistakes is to assume that any darkening toward the field edges means the lens does not cover the sensor.

Image-circle mismatch can certainly create edge darkening. If the active sensor extends outside the well-corrected optical image area, the outer region may become very dark or unusable. That is a coverage problem.

Brightness uniformity is broader.

A sensor can remain completely inside the usable image circle and still show gradual intensity falloff from centre to edge. The complete field may contain valid image information, yet the average grey level of a uniform target can decrease progressively toward the ends of the line.

This distinction is important because increasing image-circle coverage will not necessarily solve a brightness-uniformity problem caused by the optical illumination distribution, illumination geometry or system calibration.

What Does Centre-to-Edge Shading Look Like in a Line Scan Image?

Centre-to-edge shading usually appears as a smooth change in image intensity rather than an abrupt dark boundary.

Imagine imaging a perfectly uniform white reference web. The centre of the line may produce a grey value of 180 while the outer region gradually falls to 165, 150 or another lower value. The image is still present at the edge, and fine features may remain sharp, but the baseline brightness is different.

A true mechanical obstruction or severe coverage limitation often creates a more obvious boundary or stronger localized darkening.

This is why the shape of the intensity profile across the scan line is diagnostically valuable.

Instead of judging the complete reconstructed image visually, engineers should examine average pixel intensity as a function of sensor position.

Why Brightness Uniformity Matters for Defect Detection

Machine vision algorithms frequently evaluate differences between a defect and its surrounding background.

If the background itself changes significantly across the sensor, the same physical defect can produce different numerical contrast depending on where it appears.

For example, a low-contrast scratch on a bright plastic film might be obvious at the field centre but approach the detection threshold near a darker edge.

The problem becomes even more important when the same inspection threshold is applied across a wide web.

The line scan camera lens should therefore be evaluated not only for sharpness and resolution but also for how consistently usable contrast is preserved across the complete field.

Kyptec Automation® specifically positions its dedicated line scan camera lens range for continuous surface inspection and web-based applications requiring stable full-field performance.

Relative Illumination: The Lens Can Be Fully Covering the Sensor but Still Show Falloff

In optical systems, the amount of light reaching different sensor positions can naturally vary across the image field.

This is often described as relative illumination.

The centre of the optical field typically receives light under a more favourable geometry than far off-axis sensor locations. Depending on lens design, aperture and system configuration, the outer field can therefore receive somewhat less illumination even without hard mechanical clipping.

This is different from saying that the edge is outside the usable image circle.

For an OEM, the practical question is not whether theoretical falloff exists. The practical question is whether the remaining field uniformity satisfies the inspection requirement after the complete camera, lens, illumination and object geometry are assembled.

Illumination Non-Uniformity Can Look Exactly Like a Lens Problem

Before blaming the line scan camera lens, verify the illumination system.

A line light can produce a bright centre and weaker ends. The light may also be slightly rotated, positioned incorrectly or too short for the required inspection width.

If the illumination pattern itself is non-uniform, replacing the lens may change little.

A useful isolation method is to image a uniform target while adjusting or repositioning the illumination. If the brightness profile changes strongly with the light position, illumination geometry is likely contributing substantially.

If the brightness profile remains fixed relative to sensor position while the illumination is carefully verified, the optical path and calibration deserve closer investigation.

Use a Uniform Reference Target Before Inspecting Production Material

Production samples are often unsuitable for diagnosing brightness uniformity because the material itself may have texture, coating variation, print variation or surface reflectivity differences.

A better diagnostic target is a uniform matte reference spanning the complete required FOV.

The goal is to eliminate product variation and measure the imaging system.

Capture multiple lines and average them to reduce random noise. Then compare intensity at several cross-field positions.

This creates a baseline profile showing whether the field is flat, gradually shaded, asymmetric or affected by a localized obstruction.

Symmetrical Shading and Asymmetrical Shading Suggest Different Causes

A symmetrical pattern—brightest near the centre and gradually darker toward both ends—often suggests a field-related optical or illumination behaviour.

An asymmetrical pattern—one end clearly darker than the other—should raise additional questions.

Possible causes include camera/lens decenter, illumination angle, obstruction, uneven line-light output, sensor alignment or product geometry.

This distinction prevents engineers from applying a symmetrical correction to a fundamentally asymmetric problem.

The first diagnostic step should therefore be to determine whether the brightness profile is balanced around the optical centre.

Kyptec Automation® KL-1402 for Wide Fields in Compact Machines

The Kyptec Automation® KL-1402 25 MM Line Scan Camera Lens is the shorter focal-length option in the current Kyptec Automation® line scan range and is specified for 4K 7 μm and 8K 3.5 μm line-scan systems.

A shorter focal length may be attractive in compact web inspection, printing, textile or converting machinery because relatively broad coverage can be achieved from limited stand-off. In wide-field configurations, however, centre-to-edge illumination should always be measured under the final machine geometry because outer sensor regions are observing the scene at larger field angles.

The correct qualification is not simply whether the complete product is visible, but whether defect contrast remains sufficiently consistent throughout that field.

Aperture Can Change the Appearance of Brightness Shading

Aperture affects more than total image brightness.

Changing the F-number changes the angular bundle of rays that passes through the optical system, so the centre-to-edge intensity distribution can also change in some configurations.

This is why brightness uniformity should be evaluated at the actual production aperture.

If an engineer calibrates flat-field correction at one F-number and later changes the aperture significantly, the original correction may no longer represent the final system accurately.

The current Kyptec Automation® line scan portfolio provides adjustable apertures across its three focal-length options, so OEM qualification should lock the intended operating aperture before final brightness calibration. The live 35 mm product, for example, specifies an F2.8–16 range, while the 50 mm model specifies F2.0–16.

Shading Can Reduce Effective Dynamic Range

Suppose the centre of the image is already close to sensor saturation while the edges remain significantly darker.

Increasing exposure to improve the outer field may cause the centre to clip.

Reducing exposure to protect the centre may make edge regions noisier.

This is why poor brightness uniformity can consume usable dynamic range even when no region is completely black.

A better optical setup attempts to keep the entire useful field inside a manageable signal range so software correction does not need to amplify weak edge data excessively.

Flat-Field Correction Helps, but It Should Not Hide a Bad Optical Setup

Flat-field correction is commonly used to normalize systematic brightness variation.

A uniform reference is captured, and the system applies position-dependent gain so a uniform object appears more uniform in the corrected image.

This can be highly effective for modest, stable shading.

However, flat-field correction should not be treated as a substitute for fixing a severe optical or illumination problem.

If one field region receives very little signal, applying strong digital gain also amplifies noise. Likewise, if the shading changes with camera height, aperture, illumination position or contamination, an old correction map can become inaccurate.

The best approach is therefore:

optimize the physical system first, then use flat-field correction for stable residual non-uniformity.

Brightness Uniformity Must Be Rechecked After Changing Working Distance

Changing working distance changes field angle and magnification.

If the camera is moved substantially, the sensor may observe a different portion of the illumination distribution and lens field.

A flat-field calibration captured at one working distance may therefore not remain optimal after the camera is repositioned.

For OEMs with adjustable product formats or serviceable camera mounts, this is important: changing working distance should trigger not only focus verification but also a brightness-uniformity check.

Kyptec Automation® KL-1404 for Intermediate Field Geometry

The Kyptec Automation® KL-1404 35 MM Line Scan Camera Lens provides an intermediate focal-length option with F2.8–16 aperture and M42 mounting and is specified for 4K 7 μm and 8K 3.5 μm configurations.

This geometry can be evaluated in printing machines, packaging inspection systems, battery electrode lines and medium-width continuous inspection equipment where the required stand-off sits between compact and longer-working-distance designs.

For these OEM systems, a uniform-field acceptance image can be included in commissioning so the final machine verifies both centre-to-edge sharpness and centre-to-edge brightness behaviour.

Dirty Protective Windows Can Create Local Shading That Looks Optical

A protective cover window or lens surface contamination can reduce transmission locally.

Oil films, dust accumulation or residue may produce gradual or patchy intensity loss rather than an obvious dark spot.

This is particularly difficult to identify when the contamination covers a broad area.

Before changing flat-field correction, inspect accessible optical surfaces and protective windows under appropriate lighting.

A useful diagnostic technique is to clean the optical path and repeat the uniform-target measurement. If the intensity profile changes materially, contamination was contributing.

Sensor Response Can Also Contribute to Scan-Line Non-Uniformity

Not all brightness variation originates in the lens.

Different sensor pixels can have slightly different sensitivity, and camera electronics may also contribute fixed-pattern response differences.

This is another reason why the complete line scan system should be characterized rather than attributing every intensity difference to optics.

Flat-field calibration is particularly effective when the non-uniformity is stable and repeatable with sensor position.

The diagnostic sequence should therefore separate lens, illumination, sensor and object contributions before corrective action is chosen.

How to Measure Brightness Uniformity Numerically

Visual judgement is useful for spotting a problem but inadequate for OEM acceptance.

A more reproducible method is to calculate average intensity across a uniform target and compare representative regions.

For example, measure average grey level around the left field, centre and right field. A simple relative measurement can be expressed as:

Relative brightness at a position = Local average intensity ÷ Reference centre intensity × 100

If the centre is 200 grey levels and an edge averages 180, that edge is at approximately 90% of the centre intensity.

The OEM can then establish an acceptable uniformity window based on defect sensitivity and calibration strategy.

The exact acceptance percentage should come from the application rather than from a universal rule.

Why Edge Darkness Can Cause False Defect Trends

Imagine a web inspection system in which identical surface features occur randomly across the product.

If the image edge is darker, the algorithm may classify edge-region features differently from centre features.

Over time, the machine can appear to report more defects in one lateral region even though manufacturing quality is uniform.

Before concluding that the production process is worse near one side of the web, compare the inspection image against a uniform reference and check whether the baseline brightness follows the same lateral pattern.

This is a particularly valuable diagnostic in film, paper, textile, metal-strip, coating and other wide continuous-material inspection systems.

Kyptec Automation® KL-1406 for Larger Stand-Off Inspection Frames

The Kyptec Automation® KL-1406 50 MM Line Scan Camera Lens provides 50 mm focal length, F2.0–16 aperture and M42 mounting and is specified for 4K 7 μm and 8K 3.5 μm line-scan systems.

This longer focal-length geometry can be evaluated for larger inspection frames where greater stand-off is available, such as metal strip systems, wide web inspection equipment, board inspection machines and large continuous-production lines.

Regardless of focal length, the final system should measure brightness uniformity under the actual sensor length, aperture, working distance and illumination arrangement. Product specifications provide the optical starting point; machine-level qualification determines the final field uniformity.

Practical Example: Wide Web Inspection With Dark Outer Regions

Consider a web inspection machine imaging a uniform film. The full web is visible and sharply focused, but the left and right 15% of the field appear darker than the centre.

The first question should not be “Is the lens image circle too small?”

Instead, inspect the intensity profile. If the transition is gradual, verify line-light uniformity and aperture first. Then capture a uniform target and compare the brightness profile under different illumination positions.

If all active sensor regions remain optically covered but a stable gradual falloff remains, the issue is better described as field brightness or relative-illumination variation rather than simple hard vignetting.

Practical Example: One Edge Is Darker Than the Other

A printing inspection machine produces acceptable brightness at the centre and right edge, while the left side is clearly darker.

This asymmetric result is less typical of a simple balanced centre-to-edge falloff.

The engineer should inspect illumination alignment, camera/lens centring, obstruction, contamination and mechanical orientation.

Correctly identifying the asymmetry can save considerable troubleshooting time because applying a generic symmetric flat-field correction does not address the root cause.

Practical Example: Flat-Field Calibration Stops Working After Service

A technician adjusts camera height and refocuses the lens. The image looks sharp again, but the previously corrected brightness pattern is no longer uniform.

The reason may be that the original flat-field map was captured at a different optical geometry.

The correct action is to verify illumination, final working distance and aperture and then capture a fresh uniform-field calibration under the new configuration.

Frequently Asked Questions About Line Scan Camera Lens Brightness Uniformity

1. Why is my line scan image brighter in the centre than at the edges?

A gradual centre-to-edge brightness difference can come from relative illumination, illumination geometry, aperture, field angle or the combined camera-lens system. It does not automatically mean the lens image circle is too small. A uniform reference target and cross-line intensity profile are the best starting points for diagnosis.

2. Is centre-to-edge shading always vignetting?

No. Vignetting is commonly used to describe brightness reduction toward image boundaries, but in industrial troubleshooting it is useful to distinguish hard or coverage-related darkening from a fully covered field with gradual brightness falloff. The corrective action can be different in each case.

3. How can I tell if edge darkness is caused by insufficient image-circle coverage?

Check whether the outer sensor region becomes severely dark, clipped or otherwise unusable and compare that result with the lens's intended sensor coverage. If the complete sensor contains valid, sharp image information but brightness changes smoothly, the issue may instead involve relative illumination or illumination uniformity.

4. How do I measure line scan brightness uniformity?

Capture a uniform matte target under stable illumination and average multiple scan lines. Compare average intensity at the centre and several locations toward both sensor ends. Recording these values numerically is more reliable than judging the reconstructed image visually.

5. Why is only one side of my line scan image darker?

One-sided shading can indicate illumination misalignment, obstruction, contamination, camera/lens decenter or another asymmetric system condition. It should not automatically be treated as normal symmetrical lens falloff.

6. Can changing aperture improve centre-to-edge brightness?

It can change the field intensity distribution in some optical configurations as well as overall exposure. Brightness uniformity should therefore be measured at the final production F-number rather than assuming the result will remain identical across the aperture range.

7. Should flat-field correction be used for line scan shading?

Flat-field correction is useful for stable residual brightness variation after the physical system has been optimized. It should not be used to conceal severe edge signal loss, poor illumination alignment or an incorrect optical setup because excessive correction can amplify noise.

8. Why did brightness uniformity change after moving the camera?

Changing working distance changes the optical geometry and can alter how the sensor samples both the lens field and the illumination distribution. After a significant camera-height change, focus, FOV and flat-field calibration should all be verified again.

9. Can illumination cause what looks like lens vignetting?

Yes. A line light with weaker output toward its ends or incorrect positioning can create a centre-bright, edge-dark pattern that resembles lens-related shading. The illumination profile should therefore be checked before replacing the line scan camera lens.

10. Can dust or oil create gradual shading instead of a visible spot?

Yes. A broad contamination film can reduce contrast and transmission over a region rather than creating one sharp particle image. Cleaning accessible optical surfaces and protective windows should be part of the diagnostic process before recalibration.

11. Which Kyptec Automation® line scan camera lens can be evaluated for compact wide-field inspection?

Kyptec Automation® KL-1402 25 MM can be evaluated where relatively broad FOV is needed from limited stand-off. The live Kyptec Automation® product page specifies it for 4K 7 μm and 8K 3.5 μm line-scan systems and describes the range as designed for uniform illumination and consistent full-field imaging.

12. When is Kyptec Automation® KL-1404 useful for brightness-sensitive inspection systems?

Kyptec Automation® KL-1404 35 MM provides intermediate focal-length geometry with F2.8–16 aperture and 4K/8K support. It can be evaluated where a medium working distance and controlled field are required, with final brightness uniformity measured under the production illumination arrangement.

13. When should Kyptec Automation® KL-1406 be considered?

Kyptec Automation® KL-1406 50 MM provides a longer 50 mm geometry with F2.0–16 aperture for 4K and 8K line-scan systems. It can be evaluated in larger machine frames with greater stand-off where stable field-wide imaging is required.

14. Why does flat-field correction make the edge noisier?

Flat-field correction increases gain in darker regions to normalize their brightness. If an edge originally receives substantially less optical signal, the correction also increases the visibility of noise there. This is why the physical brightness distribution should be optimized before applying large digital corrections.

15. Can a sharp image still have poor brightness uniformity?

Yes. Sharpness and illumination uniformity are separate image-quality characteristics. A lens can resolve fine features at the edge while that region remains darker than the centre, so both parameters should be qualified independently.

16. Should brightness uniformity be checked before buying a line scan camera lens?

The lens should be evaluated against sensor format, FOV and expected optical performance before purchase, but final brightness uniformity can only be confirmed in the complete system because illumination, working distance, aperture and sensor response also contribute. For OEM projects, the Kyptec Automation® Line Scan Camera Lens collection provides a focused 25 mm, 35 mm and 50 mm range that can be tested in the intended machine geometry.

17. Should a new flat-field calibration be created after replacing the lens?

For inspection systems where brightness uniformity is important, it is good engineering practice to recheck the uniform-field profile after lens replacement. Even when the same focal-length model is used, final focus, aperture, seating and system geometry should be verified before relying on the previous calibration.

18. What should an OEM specify when brightness uniformity is important?

Specify sensor resolution and length, working distance, required FOV, production aperture, smallest low-contrast defect, allowable centre-to-edge signal variation, illumination geometry and whether flat-field correction will be used. These parameters provide a much stronger buying specification than asking only for a lens with a particular focal length. OEMs planning repeat production can also use the Kyptec Automation® OEM Orders route for volume requirements.

Conclusion

Line scan camera lens brightness uniformity should be treated as a measurable inspection-system characteristic rather than assuming every dark edge is simply vignetting. A sensor may be fully covered by the lens and remain sharply focused while still showing a gradual centre-to-edge intensity difference. That difference can result from relative illumination, aperture, field geometry, illumination non-uniformity, sensor response, contamination or several effects acting together.

The correct diagnostic process begins with a uniform reference target. Measure the intensity profile across the complete sensor, determine whether the shading is symmetrical or asymmetrical, verify illumination and accessible optical surfaces, and confirm that the full sensor remains properly covered. Once the physical imaging system is optimized, flat-field correction can be used to compensate for stable residual variation without unnecessarily amplifying edge noise.

The Kyptec Automation® Line Scan Camera Lens portfolio currently provides three dedicated focal-length choices—Kyptec Automation® KL-1402 25 MM, Kyptec Automation® KL-1404 35 MM and Kyptec Automation® KL-1406 50 MM. The live Kyptec Automation® product pages describe the line scan range as optimized for uniform illumination, minimal distortion and consistent sharpness across the entire field of view, while supporting high-resolution continuous imaging applications.

For web inspection machines, printing inspection systems, textile inspection equipment, coating lines, film inspection machines, battery electrode systems, metal strip inspection and other wide continuous-production platforms, this field-wide consistency is valuable because the same defect should remain inspectable regardless of whether it appears near the centre or edge of the scan line. By separating true sensor-coverage problems from brightness shading and diagnosing the complete optical path systematically, OEM engineers can obtain more stable defect contrast, more reliable inspection thresholds and a better-qualified line scan camera lens installation.