Corner colour shading is one of the most misdiagnosed problems in camera integration. It looks like a white-balance error, survives every ISP tweak, and disappears the moment a different lens is fitted. The cause is usually a mismatch between the lens chief-ray angle and the sensor microlens curve.

What the chief ray angle is
The chief ray is the ray from an object point that passes through the centre of the aperture stop. At the centre of the image it is perpendicular to the sensor; at the edge it arrives at an angle. That angle, plotted against image height, is the lens CRA curve.
Why the sensor has a curve too
Every pixel carries a microlens that funnels light onto the photodiode. If the microlens sat exactly above the diode everywhere, oblique light at the edge would be bent past the sensitive area and into the metal layers. Sensor makers therefore shift each microlens progressively toward the centre as image height increases, so that the acceptance angle follows the expected incoming ray. The result is a sensor CRA curve, usually specified as a single value at the corner — 25°, 30° or similar — but in reality a curve from 0° at the centre.
CRA is checked against the sensor datasheet before a design is frozen. On large-format sensors we treat ±5° as the outer limit and aim for ±3°, because corner colour that looks acceptable on a bench can fail a production colour check. Large-format lens series →
What happens when the two do not match
- Lens CRA lower than sensor CRA: edge light lands outside the photodiode; the corner darkens and the signal-to-noise ratio falls.
- Lens CRA higher than sensor CRA: light is clipped by the pixel structure and can leak into neighbouring colour filters, producing colour crosstalk.
- Visible symptom: a pink or green cast in the corners that no white balance can remove, often with a brightness falloff that looks like vignetting but does not follow the RI curve.
The ±5° working rule
Sensor vendors publish a tolerance band around their nominal curve. One widely used reference document for a family of colour sensors specifies a nominal 30° at the corners and recommends keeping lens CRA within ±5° of the sensor value to avoid colour artefacts; beyond that, shading becomes difficult to correct in the ISP because the information is lost before digitisation. Treat ±5° as the outer limit and ±3° as the target for a new design.
How to specify and verify it
- Ask for the sensor CRA curve, not just the corner value, and send it with the lens enquiry.
- Specify the lens CRA at 100% image height and the tolerance at 70% height.
- Verify on a CRA bench with the production sensor, at the production aperture.
- Check colour shading with a uniform white target and measure R/G and B/G ratios centre-to-corner.
- Re-check after any change of sensor, filter thickness or holder — all three shift the effective angle.
Why it cannot be fixed in software
Shading correction multiplies each pixel by a gain factor. If the corner lost 20% of its signal because rays missed the photodiode, the gain also amplifies the noise, and if the light leaked into a neighbouring colour channel the colour information is already wrong. CRA mismatch is an optical front-end problem with an optical fix: choose a lens whose curve follows the sensor.
Sources
- Lens CRA matching application note — recommendations for optimal colorization
- CRA definition and microlens shift — imaging knowledge base
Related reading
- SeriesLarge Format Lenses
- ApplicationAI Vision & Recognition
- QuestionWhy are the corners dark or slightly colour-shifted?
- QuestionRelative illumination of 60% — is that bad?