Login or Create Account

Using Uniformity (Light Falloff)

Measures light falloff (lens vignetting) and sensor nonuniformity

   My Account  |  Cart Contents  |  Checkout   
Instructions Results
See Also
Uniformity tour Uniformity: Imatest Master

Light Falloff (Uniformity)  measures lens vignetting (dropoff in illumination at the edges of the image) and other image, illumination, and sensor nonuniformities. For example, it can measure evenness of flash illumination (using light bounced off a white wall) or the uniformity of flatbed scanners. In Imatest Master, Light Falloff also produces a pixel level histogram, analyses of hot and dead pixels and color shading, and a detailed image of fine nonuniformities (i.e., sensor noise). These features are described in Light Falloff instructions: Imatest Master .

Instructions

To prepare an image for Light Falloff,

  • One of the simplest ways to obtain a uniform subject is to photograph your computer monitor at a distance of 1-3 inches (2-8 cm) using the Imatest Screen Patterns module, shown on the right. Click on Screen Patterns on the right of the Imatest main window, then maximize the screen. You can adjust the Hue, Saturation, and Lightness (H, S, and L, which default to 0,0,1) if required. (Thanks to Jonathan Sachs for this suggestion.)

    This method works best with flat screen LCDs with wide viewing angles.
  • For extreme wide angle lenses or laptop screens with a limited viewing angle, an additional diffuser should be used. We recommend using opal diffusing glass mounted close to the lens. Opal glass is available in the US from Edmund Optics. (Thanks to Bart van der Wolf for the suggestion.) If a diffuser is used, a lightbox may be substituted for the monitor. (Lightboxes are typically brighter but less uniform.)
Blankscreen modlue
Screen Pattern module for Light Falloff.
  • This technique is less effective with CRTs. L may need to be reduced to keep exposure time longer than 0.1 seconds so the raster scan doesn't cause uneven exposure. The Canon EOS-40D exposure metering seemed to fail as a result of the raster scan.
  • (We prefer the monitor, but this approach may be useful in come cases.) Photograph an evenly-lit smooth sheet of matte paper (white or gray). Get close to the subject, but not so close that you shade it. Outdoors illumination (shade) sometimes results in the most even illumination. Getting uniform illumination can be a challenge with ultrawide lenses, such as the Canon10-22 mm digital zoom lens set to 10mm (equivalent to 16 mm in the 35mm format); it's almost impossible to avoid shading part of the card. The computer monitor (above) is strongly preferred in such cases.

To obtain truly even illumination
for precision scientific measurements you'll need an integrating sphere from a supplier such as SphereOptics, Labsphere, or Electro-Optical Industries (EOI).
The SphereOptics system on the right is about $8,000, including variable attenuator, power supplies, operating software, and calibration. It is available in sizes from 4 to 76 inches.

The Labsphere USS-1200 or USS-1200V and the EOI ISV 400, all 12 inches in diameter with 4 inch exit ports, are ideal for SLRs. Smaller models will work with compact digital cameras.

Integrating spheres aren't cheap. Less expensive alternatives include Kyoritsu calibrated light sources (especially the pattern light boxes), available in the North America from C.R.I.S. Tsubosaka (Japan) also has some interesting products. There are no obvious US or European distributors.
SphereOptics integrating sphere

To run Light Falloff,

    • Display Light Falloff contour plots (Plot area; on by default). Turns the main light falloff contour plots off or on. Normally on (checked), but may be turned off by Imatest Master users interested in other results, such as hot/dead pixels and color shading. Four display options are available. Normalized refers to the first (level) plot only.
       
      Contours superposed on image
      (not normalized)
      Contours superposed on image
      (normalized to 1)
      Pseudocolor with colorbar
      (not normalized)
      Pseudocolor with colorbar
      (normalized to 1)
Imatest Studio- Light Falloff input dialog box
Input dialog box in Imatest Studio

The following options are available in Imatest Master only. They are discussed in detail in Light Falloff instructions: Imatest Master .

Because signal processing— especially JPEG compression— can cause these values to shift, you can use the sliders to set the detection threshold between 6-255 for hot pixels and 0-249 pixels for dead pixels. (The extreme values are for measurements made on white or black fields.) Clicking on < or > at the ends of the sliders adjusts the threshold by 1. The default values are 252 and 4, respectively. Settings are saved between runs. JPEG files must be saved at the highest quality level for this feature to work; isolated hot and dead pixels tend to be smudged at lower quality levels. Details are described in Light Falloff: Imatest Master .

Imatest Master - Light Falloff input dialog box
Input dialog box in Imatest Master

Results

The first figure: luminance contour plot

shows normalized pixel level contours for the image file luminance channel, where luminance is defined as Y = 0.30*R + 0.59*G + 0.11*B.. A maximum value of 1 corresponds to pixel level = 255 for image files with a bit depth of 8 or 65535 for a bit depth of 16. Some illumination nonuniformity is evident in the plot: the top is brighter than the bottom. The image is smoothed (lowpass filtered) before the contours are plotted.

The text displays the maximum normalized pixel level for the luminance channel, the worst and mean corner values (in normalized pixel levels and as a percentage of maximum), and the side values. Selected EXIF data is shown on the right. Two hot and two dead pixels (which were simulated) were detected with thresholds of 246 and 10 (pixels), respectively. The crop (Left, Right, Top, Bottom) is shown just below. Details below.

Picture Window Pro Light Falloff transformation dialog boxThe setting for correcting light falloff in the Picture Window Pro Light falloff transformation is also given. The PW pro Light Falloff dialog box is shown on the right. Film Size (mm) remains at 36 (the PW Pro default value: the width of a 35mm frame). Picture Window Pro is the powerful and affordable photographic image editor that I use for my own work. The Lens Focal Length is rarely the exact focal length of the lens. Light falloff depends on the lens aperture (f-stop) as well as a number of lens design parameters. Lenses designed designed for digital cameras, where the rays emerging from the rear of the lens remain nearly normal (perpendicular) to the sensor surface, tend to have reduced light falloff.

For aesthetic purposes I generally recommend undercorrecting the image, i.e., using a larger Lens Focal Length. This makes the edges somewhat darker, which is usually pleasing. Ansel Adams routinely burned (darkened) the edges of his prints. Part of the reason was that he had to compensate for light falloff from his enlarger (when he wasn't contact printing).

"My experience indicates that practically every print requires some burning of the edges, especially prints that are to be mounted on a white card, as the flare from the card tends to weaken visually the tonality of the adjacent areas. Edge burning must never be overdone..."

Ansel Adams, "The Print," p. 66. 1966 edition.

The second figure: f-stop contour plot

shows image file luminance contours, measured in f-stops, normalized to a maximum value of 0. A pseudocolor display with color bar has been selected. The colors in the color bar are fixed: colors always vary from white at 0 f-stops to black at -4 f-stops and darker. For this plot to be accurate, a correct estimate of gamma (the camera's intrinsic contrast) is required. Gamma is measured by Stepchart, using any one of several widely-available step charts, or by Colorcheck.

Gamma can be tricky to measure for several reasons. (1) Many cameras have complex response curves, for example, "S"-curves superposed atop gamma curves. This means that gamma can vary with brightness. (2) Some cameras employ adaptive signal processing in their RAW conversion algorithms. This increases contrast (i.e., gamma) for low contrast subjects and decreases it for contrasty subjects. This improves image quality for a wide range of scenes, but makes measurements difficult, especially since Light Falloff targets have the lowest possible contrast.

Deriving f-stop falloff

The f-stop falloff in the second plot is derived from the equations,
      Pixel level = k1 luminanceγ ;     Luminance = k2 pixel level1/γ    and
      F-stop loss = log2(luminance ratio) = 3.322 log10(luminance ratio)
where luminance ratio is the ratio of the maximum luminance to the luminance in the area of interest, for example, the mean value of the corners.

Example: The first and second figures, above, are derived from the same image file. In the first figure, the mean pixel level at the corners relative to the center is 0.666/0.905 = 0.736 (73.6%). Since γ is assumed to be 0.5 (fairly typical of encoding gamma of digital cameras, the exposure at the corners relative to the center is 0.7361/γ = 0 .7362 = 0.5416. The corresponding f-stop loss = log2(0.5416) = 3.322 log10(0.5416) = -0.885 f-stops. There is a slight discrepancy with the second figure, which calculates the mean at the corners (0.894 f-stops) after taking the logarithm to convert results into f-stops.

Additional figures are illustrated in Light Falloff: Imatest Master .

.CSV and XML output files

The .CSV output file contains additional statistics. Most have obvious meanings.

Contact Imatest if you need additional .CSV output.

The optional XML output file contains results similar to the .CSV file. Its contents are largely self-explanatory. It is stored in [root name].xml. XML output will be used for extensions to Imatest, such as databases, to be written by Imatest and third parties. Contact us if you have questions or suggestions.

Saving results

At the end of the run, a dialog box for saving results appears. It allows you to select figures to save and choose where to save them. The default is subdirectory Results in the data file directory. You can change to another existing directory, but new results directories must be created outside of Imatest— using a utility such as Windows Explorer. (This is a limitation of this version of Matlab.) The selections are saved between runs. You can examine the output figures before you check or uncheck the boxes.

Figures, CSV, and XML data are saved in files whose names consist of a root file name with a suffix for plot type and channel (R, G, B, or Y) and extension. Example: IMG_9875_ISO1600_RGB_f-stop_ctrG.png. The root file name defaults to the image file name, but can be changed using the Results root file name box. Be sure to press enter.

Checking Close figures after save is recommended for preventing a buildup of figures (which slows down most systems) in batch runs. After you click on Yes or No, the Imatest main window reappears.

 

Links

Vignetting by Paul van Walree, who has excellent descriptions of several of the lens (Seidel) aberrations and other causes of optical degradation.