Veiling glare is stray light in lenses and optical systems caused by reflections between surfaces of lens elements and the inside barrel of the lens. It is a strong predictor of lens flare image fogging (loss of shadow detail and color) as well as "ghost" images that can degrade image quality in the presence of bright light sources in or near the field of view.  It occurs in every optical system, including the human eye.

Lenses with low flare have been traditionally known for their excellent color performance. Color saturation is higher, especially in shadows. Low flare may be as responsible as sharpness for the exalted reputations of many classic Leica and Zeiss lenses. Even though lost color saturation and contrast can be recovered with digital processing, lenses with low flare will always have an edge in quality. There are several ways of dealing with lens flare.

Sun in image Sun blocked

 

Obligatory bad photo showing
severe lens flare caused by the sun (far left), and
moderate flare with the sun blocked (near left).
Canon EOS-20D, 24-70mm f/2.8L, 24mm, f/8, no hood.

Taken during Colorado's notorious "Winter of 2007"
(five feet of snow in three weeks in December and January)

 

The veiling glare measurement in Imatest Stepchart is designed to give a good prediction of a lens's susceptibility to lens flare in challenging situations: the larger the number, the worse it's likely to be. But it's not perfect in every detail. For example, it can't predict ghosting (visible behind the Stop sign in the image on the left).

The measurement is fairly simple to perform, but several pitfalls can cause inaccurate or misleading results unless measurements are made with care. Some degree of exposure control— either a manual setting or exposure compensation— can enhance the accuracy of the results. Exposure may be a problem with cameraphones and other simple devices, where little, if any, control is available.


Veil measurement ideal

 

 

Veiling glare is measured by photographing a perfectly black object against a uniform white field that extends well beyond the image frame. It is defined as the ratio of the light reaching the sensor from the black object (which emits no light) to the light reaching the sensor from the surrounding white field.

Veiling glare = V = L(black object) / L(white surface), where L is the illuminance at the sensor.

Since digital image sensor output is linear, this measurement is straightforward

We deal with the last of these issues first: how to create a perfectly black object— a black hole. Don't worry: it's more environmentally friendly than the type that sucks planets into its core.

Preparing the target

Box for black hole
Construction of the "black hole"

The black hole

The darkest surfaces— materials or pigments— reflect about 0.5 to 1% of the incident light, i.e., they are are far from perfectly black. To obtain a surface suitable for measuring veiling glare you will need to construct a surface that little light reaches— a black hole— the darkest possible object that can be photographed in a bright environment.

The black hole should be constructed inside a box or tube that is approximately 3x4 inches on its top (or 4 inches in diameter) and 4-8 inches deep. The bottom (inside back surface) should be lined with black velvet— the darkest material you can buy. The sides can be lined with any matte black material. We used black art paper because it was easy to work with. The top is a piece of black foam board with a 1x2 inch opening cut in the center.

The structure should be kept as lightweight as possible. If necessary it can be constructed entirely out of black foam board, with the black velvet in the inside back surface.

The black hole is mounted next to a standard step chart such as the Kodak Q-13 or Q-14, which performs two functions. It allows you to measure the camera's tonal response (pixel level as a function of scene luminance) and it provides a reference for determining the white level from a deep gray patch, so you don't have to measure it directly. This is important because many, if not most cameras, have nonlinear response in the bright regions, i.e., the response curve has a (film-like) "shoulder"— a good thing pictorially because without it digital cameras have a strong tendency to burn out highlights.

An alternative: Bart van der Wolf sent this link, which suggests that a cone painted glossy black can be used to make a superior black hole.

Gamma (image contrast) for measuring veiling glare is calculated somewhat differently from the average gamma shown in the figures. It is determined from the region where the step chart pixel level is between 0.1 and 0.6 of the minimum-to-maximum pixel range, i.e., the brightest areas, which are frequently nonlinear in digital cameras, are excluded. The white reference is inferred from the patch in the middle of this region. For example, suppose it is patch 11. Since the Q-13/Q-14 has density steps of 0.1, patch 11 is 1.0 density units darker than (1/10 as bright as) patch 1, which is the reference white, i.e., we infer the white level from the measurement of patch 11: the inferred white pixel level would be (10 times the pixel level of patch 11)gamma. Since nonlinearity or even clipping of highlights is quite common, this technique results in a much more accurate veiling glare measurement than you'd get by measuring the white region directly. Tonal response for an in-camera JPEG and a linear (simple gamma curve) RAW conversion are shown here. Here is the modified veiling glare equation.

Veiling glare = V = ( Pixel level (black object) /Pixel level (white surface, inferred) )1/gamma

Assembling the target


Typical framing for measurements

A Kodak Q-13 step chart and the black hole box are mounted on a piece of mat board, roughly twice the width of the Q-13 chart— its dimensions are not critical. A 3/4x1 inch hole is cut in the mat board, just to the right of where of where the Q-13 chart will be mounted. The black hole box is mounted behind it. The Q-13 is mounted to slightly overlap the opening. The mat board is attached to the 40x60 inch white foam board with Velcro so it can be easily removed for safe storage.

Black hole detail
                    Black hole location detail

Veiliing glare target
The entire target

Measuring veiling glare

Stepchart input dialog box for veiling glare
Stepchart input dialog box, set for veiling glare

Fine ROI selection
Portion of Fine ROI adjustment window; Lightened view ( Normal box is displayed)

Results

The first illustration shows the results for the Canon EOS-20D with the 24-70mm f/2.8L lens set at 70mm, f/8. Veiling glare is shown on the middle-right of the first figure.

Results for Canon 24-70 lens with filter
with UV filter (not multicoated)

No filter
No filter: 23% lower veiling glare
Overexposed 2 f-stops
Overexposed about 2 f-stops, with UV filter:
Results are insensitive to overexposure.

These plots show the difference in linearity between JPEG and RAW (to TIFF) density response. The EOS-20D only deviates slightly from linearity (a straight gamma curve).

No filter
JPEG density response,
showing nonlinearity in highlights
Overexposed 2 f-stops
RAW/TIFF density response,
showing good linearity in highlights

Table of results: Canon EOS-20D JPEG data
Lens Elements Groups Focal length f-stop Veiling glare Comments
Canon 24-70mm f/2.8L USM (no hood; single-coated UV filter) 16 13 70 8 0.453% A premium zoom, known for excellent sharpness. Results are strongly affected by the single-coated UV filter, but they are insensitive to overexposure. When working from RAW (CR2) images, veiling glare was 0.564% with the filter and 0.391% with without it. Different results; similar trends.
'' (no filter) 0.348%
'' (overexposed 2 stops, with filter) 0.464%
Canon 90mm f/2.8 TS-E (no filter) 6 5 90 8 0.291% A very high quality tilt/shift lens with relatively few elements and groups. Has beautiful tonality and color quality. Low veiling glare expected.
Sigma 18-125mm f/2.5-5.6 DC (hood, multi-coated UV filter) 15 14 77 8 0.293% A remarkably fine lens for the price. Surprisingly low veiling glare. (If you're thinking of buying one: it has poor autofocus performance; it's much better on manual.)
Canon 28-80mm f/3.5-5/6 (no filter) 10 9 80 8 0.634% (1991 version) A cheap "kit" lens, designed for low cost. Expectations were low. Strangely reddish white balance.
Canon 70-200mm f/4L USM (UV filter, hood) 16 13 70 8 0.396% Excellent lightweight lens. The IS version has 20 elements in 15 groups, which will increase flare.
The table at the bottom shows the relationship between the number of groups (sets of attached elements) and the number of reflections that contribute to veiling glare.

Most of the results are not surprizing. The Canon 90mm has the lowest flare, while the cheap Canon 28-80 is the worst. The only surprise is the excellent performance of the Sigma 18-125: a lens know for its fine performance and value, though its autofocus performance is mediocre. I use mine on manual.

Limitations

The veiling glare may be underestimated for telephoto lenses especially if they are measured without lens hoods because telephoto lenses form an image of only a small fraction of the light reaching the front element (the portion is much larger with normal and wide angle lenses). The target, as shown above, may not be large enough to simulate all the light that reaches the lens. If a hood is used, this error is considerably reduced.

If there are nonlinearities in the camera response at low light levels, the results may be incorrect (although relative results, i.e., comparisons, will still be valid). It's always safest to work with RAW images and convert them with a "linear" (i.e., simple gamma curve) setting. You can read many RAW formats into Imatest, using the dcraw converter.

Lens elements, groups, reflections, and flare— some geeky math fun

Lens flare is closely related to the number of secondary reflections in a lens, i.e., light entering the lens that is reflected off one lens surface, then another, then back to the image plane. For uncoated air-to-glass surfaces, about 4% of the incident light is reflected. Simple coating reduces the reflection to around 2%; muti-coating reduces it to 1% or less. For a simple coating, the amount of the secondary reflection is 0.02 * 0.02 = 0.0004, which doesn't seem like much until you calculate the number of reflections.

A lens consists of N elements in M groups, where a group may consist of several elements cemented together. It's the number of groups M— actually the number of air-to-glass surfaces 2M— that really counts. The first surface has no secondary reflection. The second surface has 1: light that bounces off the second surface, then the first, then back to the image plane. Continuing with this reasoning, we see that the m(th) surface has m-1 secondary reflections, i.e.,

     Total reflections = R = (2M-1) + (2M-2) + (2M-3) + ... + 1 = M (2M-1) = 2M2-M
     If you add a filter to a lens with M groups, you increase the number of reflections R by 4M+1.

Groups
M

1
2
3
4
5
6
7
8
9
10
11
12
13
14
Reflec-
tions R
1
6
15
28
45
66
91
120
153
190
231
276
325
378
Zooms typically have more elements than primes. Examples (easy to locate in the Canon Museum): The Canon 24-105mm f/4L IS USM has 18 elements in 13 groups. The Canon 50mm f/1.4 USM has 7 elements in 6 groups. The Canon 90mm f/2.8 TS-E has 6 elements in 5 groups. Now you know one reason primes are still used (others are large apertures, light weight, and excellent sharpness (MTF)), as well as why some photographers avoid using filters (though a UV filter is useful protection for field work).

ISO 9358

Veiling glare, as measured by Imatest, is very similar to the veiling glare index (VGI) specified in the integral (black patch) test of the ISO 9358 standard, as described in Controlling Veiling Glare in an Optical Imaging System by Amber Czajkowski (University of Arizona). The key differences are

Czajkowski' report contains a description of a really neat do-it-yourself integrating sphere project, based on stainless steel balls from http://www.gazingballoutlet.com, which sells balls up to 30 inches (0.75 meters) in diameter! A 16 inch (40 cm) ball is under $100 USD.




Subscribe to the Imatest Newsletter