Making Dynamic Range Measurements Robust Against Flare Light
Introduction
A camera’s Dynamic Range (DR) is the range of tones in a scene that can be reproduced with adequate contrast and good signal-to-noise ratio (SNR). Camera DR is often limited by flare light, which is stray light in the image, primarily caused by reflections between lens elements. Flare light reduces DR by fogging images; i.e., washing out detail in dark http://areas.It is the primary reason that the DR of cameras (which include lenses) is poorer than that of image sensors, which can be up to 150dB (30 million:1) for recent HDR (high dynamic range) sensors.
In the past 2 years we’ve learned that flare light in test chart images could, in theory, be mistaken for the image of the test chart, resulting in exaggerated DR measurements. The situation became real in mid-2019, when we started seeing actual images where this error occurred. By studying these images, we have developed techniques to guard against exaggerated Signal-to-Noise Ratio (SNR) measurements caused by flare light. We describe these techniques here.
We recognize that some customers may actually prefer exaggerated measurements because they yield very HDR numbers—sometimes over 120dB—that approach the specifications of HDR sensors and look good in marketing materials. The reduced but realistic DR measurements obtained when the effects of flare light are removed may make some of these customers uncomfortable. We will do our best to deal with their objections.
The effects of flare light
Flare light can be illustrated with an image of the XYLA chart—a precision HDR test chart with a linear configuration—that consists of 21 gray scale patches with Optical Density steps of 0.3. The image is from a low-cost “black box” camera.
The upper cross-section plot, made with the Image Statistics module, is taken at the center of the XYLA image. Flare is most obvious in the image and as a decay in the cross-section plot to the left of the brightest patch.
The lower cross-section was taken outside (below) the active chart image, which is shown lightened above to make flare light more visible. The variation in pixel level on the right side of the chart (x between 800 and 1600) is caused by flare light diffusing from the brightest patches on the left.
Some notes on this image.
This image has very strong local tone-mapping, leading to an exceptionally low (and not very meaningful) measured gamma of 0.148. The SNR varies in an unusual way because it does not drop monotonically, as it would for a conventional linear image sensor. This indicates that an HDR image sensor with several operating regions was used.
Because the image had significant barrel distortion, region selection was difficult. The Contrast Resolution chart is much easier to use and provides a better indication of system performance in the presence of tone mapping.
If the flare light were any worse, it could easily have been mistaken for a signal from the chart itself, leading to an false DR measurement.
Flare light can be extremely complex. It can add an offset to the image (often called “veiling glare”), which is difficult to distinguish from a black level offset in the image processing pipeline. Most of the time it is largest near bright patches, then decreases with distance from these patches. The rate of decrease is rarely a well-behaved exponential.
Lens reflections are a major cause of medium-range flare light. An uncoated glass surface (index of refraction ≅ 1.5) reflects R = 4% = 0.04 of the light incident on it. (Remember, a sheet of glass or a lens component has two surfaces.)
For each glass surface between the surface and the light source, a fraction R of the primary reflection (R2 of the original incident light) is reflected back to the image sensor. This are called a secondary reflection. Since most lens surfaces are curved, this light will be unfocused; i.e., it will tend to fog a portion of the image.
According to Edmund Optics, the best anti-reflective coatings have R ≅ 0.4% = 0.004 over the visible spectrum (~400-700nm). R = 0.005 may be more realistic for a reasonable range of incident angles. The light reflected back to the sensor from each secondary reflection would be R2 = 0.000025 = 2.5*10-5 = -92 dB (20*log10(R2)). The number of secondary reflections Nsec increases rapidly with the number of components M (groups of elements cemented together, each of which has two air-to-glass surfaces) in a lens: 1 for one component; 6 for two components; 15 for three components; 28 for four components; 45 for five components, etc. For M components,
M = 5 components are typical for high-quality camera phones; M ≥12 components is commonplace for DSLR zoom lenses. Overall, lens flare is less severe than the number of secondary reflections suggests because stray light does not cover the whole image; it decreases with distance from bright regions. It’s easy to see why practical camera DR measurements are limited to around 70-90dB, even when sensor DR is much higher.
Because the ISO 18844 flare model does not measure the spatially dependent flare caused by lens reflections, it has limited value in characterizing practical system performance.
Key takeaways—Flare light is predominantly light in dark regions of an image that diffuses from bright regions. This diffused light can be confused with the actual chart signal (especially with linear charts), resulting in exaggerated (overly optimistic) DR measurements. Moreover, increasing flare light (which could result from poorer; i.e., cheaper, lens coatings) decreases the actual DR by fogging shadow areas of the image, but can lead to increased DR measurements. Hence the need to distinguish artifact signals from flare light from real signals from the chart.
Circular test charts
The test charts recommended by Imatest for measuring DR are transmissive (i.e., backlit) charts with (approximately) circular patch configurations; i.e., those that are not linear (like the XYLA chart, shown above). The two- or three-layer High Dynamic Range Chart, shown on the right, comes in several versions. Because photographic film charts are not manufactured with consistent patch densities, a reference file is required when these charts are used.
High-quality cameras
Until recently, most of the DR images we analyzed came from DSLR or mirrorless cameras that had relatively low flare light. The recent images we’ve seen with severe flare light are from inferior cameras. We have not determined exactly why the flare light is so much worse; it might be due to inferior coatings in the multi-element lenses or less baffling in the barrel of the lens.
Here are examples of results from high-quality cameras. Click on the thumbnails below to view full-sized images.
Results for jpeg image from high-quality (Canon 90mm Tilt/Shift) lens | |