Testing lenses: introduction

Note: This page has been largely replaced by
Testing Lenses with SFRplus.
It is being kept for reference only.

Lens quality has always been of great interest to photographers. It's what we spend the big bucks for— if we have them. And we look for it in a lens at any price point. Traditionally, lens testing has been highly tedious, best left to professionals and large publications. With Imatest, that has changed forever. All you need to do is photograph a simple target (with careful technique, of course), run Imatest SFR, the similar but more interactive Rescharts Slanted-edge SFR, or the highly automted SFRplus, and interpret the results.

SFR and SFRplus measure the most important lens quality factor: sharpness, which is characterized by spatial frequency response (also called MTF for Modulation Transfer Function). Although the complete MTF response curve is of interest, the spatial frequencies where contrast falls to half its low frequency and peak values, MTF50 and MTF50P, are simple and useful indicators of both image and lens sharpness. Their relationship to print quality is discussed in Interpretation of MTF50 and SQF. SFR and SFRplus also measure lateral Chromatic aberration, which can appear as color fringing toward the edges of the frame. Other lens quality factors are described here.

RAW files  In addition to standard image files, SFR and SFRplus can analyze Bayer raw files: standard files (TIFF, etc.) that contain undemosaiced data. RAW files are not very useful for measurring MTF because the pixel spacing in the individual image planes is twice that of the image as a whole; hence MTF is lower than for demosaiced files. But Chromatic aberration can be severely distorted by demosaicing, and is best measured in Bayer RAW files (and corrected during RAW conversion). Details of RAW files can be found here.

Imatest is straightforward to use and produces clear numeric results, but careful technique is vital.

To fully characterize a lens you should test it with a variety of settings.

You'll need to purchase a chart or print it on a photographic quality inkjet printer ,and you'll need a flat surface for mounting the target (thick foam board from any art supply store is perfect), an environment with even, glare-free lighting, and a sturdy tripod: items most photographers have or can easily locate.

You can learn a lot by testing your own lenses, but you must be aware of one essential fact.

You cannot measure a lens in isolation.  It is a part of an imaging system that includes the camera's image sensor and RAW converter (which may sharpen the image), or film, scanner, and scanner software. Hence,
  • Measurements are relative. It's difficult to determine an absolute number for the lens alone. But you can accurately compare lenses on similar cameras.
  • Camera and RAW converter settings, especially those that affect sharpening, noise reduction, and gamma, strongly affect the results. Record them, and be consistent. RAW files often produce the best results. The dcraw RAW conversion software used by Imatest employs no sharpening or noise reduction and has an ideal transfer curve with a (default) gamma of 0.45.

The basic steps in testing the lens are:

The test target

These instructions are excerpted from Using Imatest SFR, Part 1.

Several alternatives are available for obtaining test targets.

You can download printable test charts by right-clicking on the thumbnails below. The bitmap chart, which is included in the samples folder of the Imatest installation, has pixel levels 47 and 255, has a contrast ratio of  (255/47)2.2 = 41 when printed at gamma = 2.2 (the normal setting). This is close to the minimum recommended by the ISO 12233 standard (but higher than optimum; the revised ISO 12233 standard under development will recommend lower contrast). The two SVG charts have contrast ratios of 20 and 2. Instructions for their use can be found in SVG Test Charts. The recommended print size is letter or A4, but these charts print at maximum quality for any size.

SVG charts — can be viewed, edited, and printed from Inkscape. Right-click on the links to save the file. Download size: 304 KB (SVG); 500 KB (PDF). Printing instructions are here.
Right-click to download
Contrast = 20, light, gamma = 2.2, white highlights (SVG) | Contrast = 20 (PDF)  High enough contrast to ensure maximum sharpening in most cameras but low enough to avoid clipping most of the time.
Right-click to download
Contrast = 2, middle, gamma = 2.2, white highlights (SVG) | Contrast = 2 (PDF)  Relatively low contrast: little, if any, sharpening would be expected. The two charts should have the same MTF if no nonlinear processing is applied, for example, with RAW files with dcraw conversion.
Bitmap chart
 
 
Right-click to download printable edge chart.
Edge_chart_low.png (reduced contrast; pixel levels 47, 255)
 

Nonlinear signal processing and chart contrast

Although Imatest SFR is relatively insensitive to chart contrast (MTF is normalized to 100% at low spatial frequencies), measured SFR is often affected by chart contrast due to nonlinear signal processing in cameras, i.e., processing that depends on the contents of neighboring pixels, and hence may vary throughout an image. Nonlinear processing is almost universal in digital cameras (though you can avoid it by using RAW images with dcraw). It improves pictorial quality but complicates measurements. It takes two primary forms.
  • Sharpening, applied in the proximity of contrasty features like edges. Boosts response at high spatial frequencies.
  • Noise reduction, applied in the absence of contrasty features. Attenuates response at high spatial frequencies, i.e., removes fine, low contrast detail (texture), which is interpreted as noise. Many cameras increase noise reduction at high ISO speeds.
The signal processing algorithms are proprietary; they are a part of a manufacturer's "secret sauce" for producing pleasing images. Though they vary a great deal, some generalizations can be made.
Most cameras do NOT apply noise reduction and sharpening uniformly throughout an image.
Contrasty edges tend to have better (more extended) MTF than low contrast edges.
For this reason it may be a good idea to photograph both a relatively contrasty edge (though not so high that it causes clipping) as well as a relatively low contrast edge. The SVG charts (above) are excellent choices. Both types of edge can also be produced using Imatest Test Charts. An estimate of chart contrast derived from the average light and dark pixel levels (away from the transition) and gamma is displayed in several places in SFR and Rescharts Slanted-edge SFR. (Estimated chart contrast = (avg. pixel level of light area/avg. pixel level of dark area)^(1/gamma) ).

Nonlinearities are analyzed in depth in the Log F-Contrast module.


Properly tilted test chart
The use of guide marks for tilting the chart

Print the test image (either downloaded or created by Test Charts) from an image editor using a high quality inkjet photo printer on glossy, semigloss, or luster paper. Alternatively, send it to a lab to be printed. Dry Creek Photo has an excellent listing. I recommend printing at least two copies: one for measuring center sharpness and one for edge sharpness. The printed image size should be 8x10 inches (20.3x25.4 cm) or smaller— size is not critical. Be sure the edges look clean and sharp to your eyes; examine them with a good magnifier or loupe. Chart quality is discussed in detail in Chart quality and distance.

The charts should be tilted approximately 5.7 degrees (anywhere between 2 and 7 degrees is OK) when they are photographed. It is tilted 5.7 degrees when the tick marks, located near the edges, are vertically or horizontally aligned with the center. This is illustrated by the red horizontal and vertical lines on the right. Imatest Master can analyze edges of nearly any angle; exact horizontal, vertical, and 45° edges should be avoided for best results.

The charts are printed straight and physically tilted because the edges print sharper that way. If they were printed at an angle, the printer dot pattern could cause some jaggedness. A 5.71° angle (tan-1(0.1)) is an offset of one part in 10.

Assemble the prints into a target to be photographed.

The following target is described in detail in The Imatest Test Lab. It can be used to measure lens performance near the center, part-way out, and near all four corners. The Log F-Contrast and Star charts to the left and right of center are not necessary for lens testing; they provide information about signal processing. Slanted-edges or other charts (the Kodak Q-14 step chart or the Gretag Macbeth ColorChecker) may be substituted if your primary interest is lens testing.

Target for SFR, Log F-Contrast, and Star, 30x40 inches
Sharpness target (30x40 inch) for cameras up to 13 megapixels

The printed charts are mounted on a 32x40 inch sheet of 1/2 inch thick black foam board with spray adhesive or double-sided tape. If a ColorChecker is substituted, Velcro is recommended so it can be removed for dark storage. 1/2 inch foam board stays flatter than standard 1/4 or 3/8 inch board. Black board results in less flare light than white board. (Flare light is light that bounces between lens elements and off the inside of the lens barrel, reducing image contrast).

An image of a horizontal or vertical edge on an LCD monitor (desktop or laptop) can also be used as a target. The camera should be tilted with respect to the monitor. The image dark gray and white rather than black and white to minimize clipping. This page contains a description and an image, as well as a description of the Screen Patterns module, which can be used to create an image. The disadvantage of this technique is that you have only one edge to work with; you can't easily create a map of lens performance.

Photograph the target.

Framing

Frame the chart so there are usable edges near the center, part-way out, and near the corners. Take care that the chart is properly aligned. A number of useful alignment techniques and tricks are presented in The Imatest Test Lab.

For a given lens/focal length combination, I recommend testing the lens over a range of f-stops from wide open to fully stopped down. Digital SLR lenses are typically sharpest around f/8. Sharpness is lost to lens aberrations at large apertures and diffraction at small apertures. With Imatest SFR you can find the precise optimum aperture.

Lighting

The chart below summarizes lighting considerations. The goal is even, glare-free illumination. Lighting angles between 30 and 45 degrees are ideal in most cases. At least two lights (one on each side) is recommended; four or six is better. Avoid lighting behind the camera, which can cause glare. Check for glare and lighting uniformity before you expose. A detailed description of the recommended lighting setup, which uses six high quality (CRI > 98) 4700K (near-daylight) 50W SoLux quartz-halogen lamps, can be found in The Imatest Test Lab. SoLux Task Lamps may also be used. The BK Precision 615 Light meter (Lux meter) is an outstanding low-cost instrument (about $100 USD) for measuring the intensity and uniformity of illumination.

Distance

Distance and field of view
The camera must be far enough from the chart so you are measuring the sharpness of your camera and lens, not the chart. But remember,

It's the field of view, not the chart-to-camera distance, that counts.

A rough rule of thumb: For an inkjet-printed chart the field of view should be at least
           22 inches (60 cm) for a  6-megapixel camera;
           35 inches (90 cm) for a 16 megapixel camera.
Details below. For a high-quality photographically-printed chart (such as the charts from Applied Imaging) you can get quite a bit closer.

Using a chart printed on Premium Luster paper on the Epson 2200 (a high quality pigment-based inkjet photo printer), the MTF of the 6.3 megapixel Canon EOS-10D showed no change if the image field was at least 22 inches (56 cm) wide-- twice the length of the chart. Performance falls off slowly for smaller widths. Choose a camera-to-target distance that gives at least this image field width. The actual distance depends on the sensor pixel count and the focal length of the lens.

Cameras with more pixels, and hence higher potential resolution, should should have a larger image field width. Some guidelines for the minimum field width are,

Image field width (in inches) > 8.8 * sqrt(megapixels)     ( >  means  "greater than.")
Image field width (in cm)      >  22 * sqrt(megapixels)

-- or --

The distance to the target should be at least 40X the focal length of the lens for digital SLRs. (25X is the absolute minimum; 40X leaves some margin.) For compact digital cameras, which have much smaller sensors, the distance should be at least 100X the actual focal length (not the 35mm-equivalent): the field of view is about the same as an SLR with comparable pixel count. The recommended distance is described in geeky detail in Chart quality and distance.

The camera-to-target distance is not critical as long as it is greater than a reasonable minimum.

More on distance can be found in SFR Instructions Part 1.

Exposure

Proper exposure is important for accurate Imatest SFR results. Neither the black nor the white regions of the chart should clip-- have substantial areas that reach pixel levels 0 or 255. The best way to ensure proper exposure is to use the histogram in your digital camera. Blacks (the peaks on the left) should be above the minimum and whites (the peaks on the right) should be below the maximum.

The histogram, taken from the Canon File Viewer Utility, indicates excellent exposure.

Tips on photographing the chart
Distance doesn't matter as long as the target far enough from the camera so sharpness is limited by the camera and lens, not by the target. For a target printed on the Epson 2200 printer, a distance that gives at least a 24 inch (horizontal) field of view seems to be sufficient.
The target should be evenly lit and free of glare.
White balance should be approximately neutral.
Use a sturdy tripod and a cable release. If possible, use the mirror lock. You can use Imatest SFR to find the difference made by a good tripod or mirror lock. Imatest SFR can sharpen your technique, literally ( pun intended ).
Be sure to expose the image so detail is maintained in both light and dark areas. Neither should be blocked (clipped). Use your camera's histogram. If more than 0.5% of the pixels are at levels 0 or 255, Imatest SFR will assume that clipping has taken place and issue a warning message. This has no effect on the calculations-- it's just a warning that accuracy may be compromised.
Be sure the camera is correctly focused on the chart. Imatest SFR can test the accuracy of your camera's autofocus.
Place slanted-edge images near the corners of the field as well as near the center.

Save the image as a RAW file or maximum quality JPEG. If you are using a RAW converter, convert to JPEG (maximum quality), TIFF (without LZW compression, which isn't supported), or PNG. If you are using film, develop and scan it. The file name should be descriptive and should indicate the parameters you are testing. Use dashes and underscores ( - and _ ), but try to avoid spaces, which work with Imatest, but can cause trouble in DOS command lines and web pages. An example of a file name is Canon_EOS10D_70-200f4L_100mm_f8.jpg.

If the folder contains meaningless camera-generated file names such as IMG_3734.jpg, IMG_3735.jpg, etc., you can change them to meaningful names that include focal length, aperture, etc., with the View/Rename Files utility, which takes advantage of EXIF data stored in each file.

Run Imatest SFR or Rescharts Slanted-edge SFR

These instructions are excerpted from Using Imatest SFR, Part 2 .

Start Imatest by double-clicking the Imatest icon  on the Desktop, the Windows Start menu, or in the Imatest directory (usually C:\Program files\Imatest in English installations). After several seconds, the Imatest main window opens. Then, either

The Rescharts Slanted-edge SFR module performs the same calculations as SFR, but with more interactive interface, described on the Rescharts page.

Select the image file or batches of files

When you click SFR: New file, the window below appears, requesting the image file name(s). The folder saved from the previous run appears in the Look in: box on the top. You are free to change it. You can open a single file by double-clicking on it.

With Imatest Master you can select multiple files (for combined or batch mode runs) by the usual Windows techniques: control-click to add a file; shift-click to select a block of files. Then click Open. Three image files for the Canon 17-40mm L lens (taken with the EOS-10D) are highlighted. Large files can take several seconds to load. Imatest remembers the last folder used (for each module, individually).

Imagest SFR: Open slanted-edge input file dialog box
Multiple ROI selection (for batch runs, Imatest Master only).

Multiple file selection Several files can be selected in Imatest Master using standard Windows techniques (shift-click or control-click). Depending on your response to the multi-image dialog box you can combine (average) several files or run them sequentially (batch mode).

Combined (averaged) files  are useful for measuring the effects of image stabilization. The combined file can be saved. Its name will be the same as the first selected file with _comb_n appended, where n is the number of files combined.

Batch mode  allows several files to be analyzed in sequence. There are three requirements. The files should (1) be in the same folder, (2) have the same pixel size, and (3) be framed identically.

The input dialog box for the first run is the same as for standard non-batch runs. Additional runs use the same settings. Since no user input is required they can run extremely fast.

If the order of the files in a batch runs is different from the selection order, click Settings, Options and Settings... (in the Imatest main window) and change the setting in Batch run order. The sequence may be affected by Windows Explorer settings.

One caution: Imatest can slow dramatically on most computers when more than about twenty figures are open. For this reason we recommend checking the Close figures after save checkbox, and saving the results. This allows a large number of image files to be run in batch mode without danger of bogging down the computer.


Select the ROI (Region of Interest)

If the image has the same pixel dimensions as the last image in the previous run, a dialog box asks you if you want to repeat the same ROIs (regions of interest) as the previous image. You can retrieve saved ROIs from past runs by clicking on Retrieve settings in the Imatest main window prior to selecting SFR.

If you answer No or if the image has a different size, the coarse selection dialog box shown on the right is displayed with the instructions, Select ROI by clicking and dragging, or clicking outside image. Click on one corner of the intended region, drag the mouse to the other corner, then release the mouse button. Click outside the image to select the entire image.

After you make your selection, the ROI fine adjustment dialog box (below) appears. You can move the entire ROI or any of the edges in increments of one pixel. You can also enter the ROI boundary locations in the boxes below the image. If you do this, be sure to press return (or move the cursor) to register the change. You can zoom out to view the entire image, then zoom back in.

ISO 12233 chart with crop indicated by red rectangle
ROI selection using ISO 12233 chart
(popular, but has much wasted area)

When you are satisfied with the ROI selection, proceed by selecting one of five choices at the bottom of the box. The ROI fine adjustment is particularly valuable for working with tiny regions and excluding interfering detail.


ROI fine adjustment

Yes, Continue The selected ROI is correct; no more ROIs are to be selected. Continue with SFR calculations in normal mode: You will be asked for additional input data, etc.
Yes, Continue in Express mode The selected ROI is correct; no more ROIs are to be selected. Continue with SFR calculations in Express mode: You will not be asked for additional input data or for Save options. Saved or default settings will be used.
Yes, select another region The selected ROI is correct. Select another ROI. For multiple ROIs additional Figures will display performance as a function of distance from the image center.
No, try again The selected ROI is not correct. Try again.
Cancel Cancel the SFR run. Return to the Imatest main window.

If the selected area is too small, too large, or inappropriate, you'll be asked to repeat the selection. The ROI is normally checked for validity, but there are some cases (e.g., endoscopes) where valid images may fail the usual tests ROI filtering can be relaxed considerably by opening the Options and Settings... button in the Imatest main window (Pro only) and clicking Light filtering in the first group of controls. This can can lead to errors when regions are selected carelessly. Normal filtering is the default.

After the run is complete, you can save ROIs for future runs in a named file by clicking on Save settings in the Imatest main window. These settings can be retrieved later by clicking on Retrieve settings.

Cropping recommendations

For best accuracy the length should be between about 80 and 500 pixels. In most cases little is gained for lengths over 300 pixels.

The width (height in the image on the right) should be at least 50 pixels. The light and dark zones should be at least 10 pixels wide, with 20 preferred. Little is gained for minimum dark/light zone widths over 40 pixels or total width over 100 pixels.

My typical crops are between around 120x80 and 300x140 pixels.

The absolute minimum and maximum crop dimensions are 10 and 1200 pixels (800 for strong ROI filtering). For very small crops (width or length less than about 25 pixels) a warning message may appear in place of the light/dark level display: Zero counts in n bins. Accuracy may be reduced. This indicates that some interpolation was required to obtain the final result, and that you should be aware that results may not be as accurate or repeatable as they would be for larger ROIs. Small crops or noisy images may require weaker error filtering than normal crops/images. Press Options & Settings... in the Imatest main window and set SFR ROI filtering to Light filtering.

SFR input dialog box

After you select the Region(s) of Interest (ROI(s)) the Imatest SFR input data window appears, unless Express mode has been selected. All input fields are optional. Most of the time you can simply click OK (the box on the lower right) to continue. Selections are saved and can be used for future express runs. The input data window is described fully in SFR instructions, Part 2. It is divided into sections: Title and Help on top, then Plot, Options, Settings, Optional parameters, and finally, OK or Cancel. Here are a few highlights.


SFR input dialog box (full version)

Plot  This area controls which figures to plot. Settings are saved between runs. The boxes adjacent to Edge/MTF control  the x-axis scaling for the MTF plots. You can choose between Cycles per pixel (the default), Cycles per distance (inch or mm), Line Widths or Pairs per Picture Height (LW/PH or LP/PH), or Cycles per angle (milliradians or degrees). If you choose Cycles per distance or angle, you must enter the pixel spacing— either in pixels per inch, pixels per mm, or microns per pixel. If pixel size is omitted, the x-axis will be displayed in Cycles per pixel.

Display options affects the appearance of plots.

Settings (affects the calculations)

When entries are complete, click OK. A Calculating... box appears to let you know that calculations are proceeding. Results appear in individual windows called figures (Matlab's standard method of displaying plots). Figures can be examined, resized, maximized, and closed at will. Their contents are described in MTF (Sharpness) plot, Chromatic Aberration, Noise, and Shannon Capacity plot, and Multiple ROI (Region of Interest) plot.

Two precautions when working with figures

Too many open Figures
Figures can proliferate if you do a number of runs, especially SFR runs with multiple regions, and system performance suffers if too many Figures are open. You will need to manage them. Figures can be closed individually by clicking X on the upper right of the Figure or by any of the usual Windows techniques. You can close them all by clicking Close figures in the Imatest main window.
Clicking on Figures during calculations
can confuse Matlab. Plots can appear on the wrong figure (usually distorted) or disappear altogether. Wait until all calculations are complete until the Save or Imatest main window appears before clicking on any Figures.

Save the results

SFR Save dialog box
SFR Save dialog box.
At the completion of the SFR calculations the Save SFR results? dialog box appears (unless Express mode has been selected). It allows you to choose which results to save and where to save them. Selections are saved for future runs. The default is subdirectory Results of the data file directory. You can change to another existing directory, but new results directories must first be created outside of Imatest using a utility such as Windows Explorer. (This is a limitation of this version of Matlab.)

Figures, CSV, and XML data are saved in files whose names consist of a root file name with a suffix and extension. 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.

When multiple ROIs are selected, the Save results? dialog box appears only after the first set of calculations. The remaining calculations use the same Save settings.

The first four checkboxes are for the figures. 5-7 are for Excel .CSV results. 8 is for XML output. You can examine the output figures before you check or uncheck the boxes. Checking Close figures after save closes figures after they are saved. This can be useful for large batch runs (Imatest Master only), where too many open figures will degrade the performance of most computers. Details of the output files can be found here.

The following table lists figures and Excel-readable CSV files produced by Imatest SFR.

Output files for  filename.jpg  (Y-channel)
(default location: subfolder Results)
Figures (.PNG image files)
filename_YA17_cpp.png Plot with x-axis in cycles/pixel (c/p), Y-channel,17% of the way to the corner above the center of the uncropped image.
filename_YA17_lwph.png Plot with x-axis in Line Widths per Picture Height (LW/PH).
filename_YA17_ca.png Plot of Chromatic Aberration, with noise statistics and Shannon information capacity.
Excel .CSV (ASCII text files that can be opened in Excel)
CSV output files are explained in detail below. Click link for detail on individual file.
SFR_cypx.csv (Database file for appending results: name does not change). Displays 10-90% rise in pixels and MTF in cycles/pixel (C/P).
SFR_LWPH.csv (Database file for appending results: name does not change). Displays 10-90% rise in number/Picture Height (/PH) and MTF in Line Widths per Picture Height (LW/PH).
filename_YA17_MTF.csv Excel .CSV file of MTF results for this run. All channels (R, G, B, and Y (luminance) ) are displayed.The first row has the headers: cy/pxl, LW/PH, MTF(nchan), MTF(corr), MTF(R), MTF(G), MTF(B), MTF(Y), where nchan is the selected channel. The remaining lines contain the data. Can easily be plotted or combined with data from other files.
filename_Y_multi.csv Excel .CSV file of summary results for a multiple ROI run.
filename_Y_sfrbatch.csv Excel .CSF file combining the results of batch runs (several files) with multiple ROIs. Particularly useful for generating easily-readable Excel plots.

Repeated runs

If SFR was previously run with an image of the same pixel dimensions and you click on either of the Run SFR buttons, an image that displays the selected ROIs appears on the left of the screen and you'll be asked, "Do you want the same ROIs as the previous image?" A portion of the previous image and the ROI repeat box for Imatest Studio are shown in the image on the right. Two additional options are available for Imatest Master.


ROI repeat dialog box: Imatest Studio (Pro below)

Yes Use the previous crop. Open SFR input dialog box.
Yes, Express mode Use previous crop and run in Express mode.
Do not open the input dialog box; use saved data instead. Save dialog boxes are also omitted.
Some warnings are suppress. Speeds up repeated runs, e.g., testing several apertures.
Yes, Adjust ROI Open a fine adjustment dialog box (shown below), starting with the previous selection.
Useful for a sequence of runs with similar, but not identical, framing.
Imatest Studio: Only available when a single ROI is selected.
Imatest Master : For multiple ROIs, a window that allows ROIs to be shifted and changed in magnification is opened.
No Crop the image using the Select the ROI... dialog box described above.
Cancel Cancel the run. Return to the main Imatest window.
Automatically refine ROIs
Yes
Imatest Master only 
Refine previous crop (see description below) and run in Express mode.
Automatically refine ROIs
Yes, Express mode
Imatest Master only
Refine previous crop (see description below). Open SFR input dialog box.

Multiple ROI fine adjustment (Imatest Master only)

When different cameras or lenses (or different focal lengths in zoom lenses) are tested using the same target, it is not generally possible to maintain exact alignment from image to image. Starting with Imatest Master 2.6 there are two options for refining (shifting) ROI selections during repeated runs: the Multiple ROI fine adjustment dialog box and Automatic ROI refinement, described below.

The Multiple ROI fine adjustment dialog box, shown greatly reduced on the right, is opened if the previous run used multiple ROIs and Yes, Adjust ROI(s) is selected in the ROI Repeat dialog box. It allows all ROIs or individual ROIs to be shifted (up, down, left, or right), enlarged, and shrunk, and the magnification to be changed. This operation may be followed by Automatic ROI refinement if either of the buttons on the right is pressed.


Multiple ROI fine adjustment dialog box:
Imatest Master

Automatic ROI refinement (Imatest Master only)

This option is very useful for sequences of runs where chart alignment varies slightly; it can be especially valuable for Imatest API in manufacturing environments.

The Imatest Master ROI repeat dialog box offers two options in the light blue box on the right (Yes and Yes, Express mode) that include automatic ROI refinement. Results of the refinement are shown in the crop of the Multi-ROI 2D summary plot on the right. The original (incorrect) ROIs are shown as cyan rectangles; the automatically refined (shifted) ROIs are shown as bold red rectangles filled with the full contrast image.

Automatic ROI refinement works best with charts dedicated to SFR measurement such as the SFR SVG test charts. It may not work as well with the ISO 12233 charts because of the narrowness of the SFR strips and the presence of interfering patterns.

The length of the ROIs should be no larger than 85% of the length of the edge to be measured. Automatic refinement will succeed if no more than 30% of the ROI length is off the edge. The modified ROI is not saved in imatest.ini.

ROI repeat dial
ROI repeat dialog box: Imatest Master
ROI refinement (cyan- original, red bold- final)
Results of automatic ROI Refinement:
Original (cyan) and refined (bold red)

Interpret the results

Multiple regions  If you selected multiple regions of interest and checked one of the 2D image plots in the Multi-ROI plots section of the input dialog box, as shown above, the following summary display appears.

SFR Multiple ROI 2D plot
Multi-ROI 2D summary plot, showing Center-corner distances,
MTF50, MTF20, and Chromatic Aberration (in pixels) superimposed on image.

This display, introduced with Imatest 2.5.8, can be particularly useful because lenses are not always centered properly. (If they were, performance would be a simple function of the distance from image center.) You can quickly scan the summary results, then look at the detailed results for the individual region. The legend explaining the four results boxes next to each ROI is on the right. The boxes contain (1) The ROI number (N) and the center-to-corner distance expressed in %, (2) MTF50 in either cycles/pixels or LW/PH, in boldface for emphasis, (3) MTF20, and (4) Chromatic Aberration in pixels of area.

If you saved the CSV summary output files for sequences of multiple ROI runs (for example, for a sequence of apertures: f/4, f/5.6, f/8, f/11, ...) or if you did a batch run using multiple ROIs, you can combine data from several runs and produce concise summary plots in Excel. The technique is described here. Here is an example.

Multiple run summary
Summary plot for 6 multi-ROI runs (f/5.6-f/32) for the Canon 17-85mm IS lens, EOS-40D (JPEG)
The Excel file was created by combining single-column summary results
from the CSV summary output files for the 6 runs.



Edge and MTF display.

Single region detail  The most detailed Imatest SFR figure, shown on the right, contains the average edge profile on top and MTF (spatial frequency response) on the bottom. (Input-related data on the right of the figure is omitted here.)

Although the edge response in the upper figure is relevant to sharpness, the MTF curve in the lower figure is the preferred measurement because

  1. MTF, and especially MTF50 or MTF50P, the spatial frequencies where contrast drops to half its low frequency or peak levels, correlate well with perceived image sharpness, and
  2. System MTF response is the product of the MTF of individual components. No such simple formula is available for edge responses.

SQF— Subjective Quality Factor is the best measurement of perceived print sharpness because it includes the contrast sensitivity of the human visual system, print size, and estimated viewing distance, in addition to MTF. Its importance will grow as it becomes more familiar. SQF is strongly affected by sharpening.

Other numbers are available for evaluating lenses. The Secondary readout feature allows you to select (spatial frequency for) MTF at any level or MTF at a spatial frequency specified in Cycles/pixel, lp/mm, or lp/in. For example, you could use MTF30 (which results in a higher spatial frequency), or MTF at a fixed spatial frequency (as is done in manufacturer's data sheets, which typically give contrast (MTF) at 10, 20, and 40 (or 10 and 30 line pairs/mm). If you do this you may want to scale the x-axis to cycles (i.e., line pairs) per mm instead of the default cycles/pixel.

Remember, in evaluating lenses, use the results without standardized sharpening (the black curves and text). It's best to uncheck the Standardized sharpening box. Results with standardized sharpening do, however, have some interest: they indicate what can be achieved after sharpening. But they tend to "flatten" differences between lenses.

Clipping can reduce the accuracy of calculations, though the amount of clipping is a poor indicator of the reduction in accuracy. Click here to learn more.

To learn more about sharpness measurements, see Sharpness: What is it and how is it measured?, SFR Tour, and SFR Results: MTF (Sharpness) plot.

Chromatic Aberration is an important aspect of lens performance. CA is best measured on tangential edges near the borders of the image. The best measure of CA is the percentage of the distance from the image center. Interpretation: under 0.04; insignificant. 0.04-0.08: minor; 0.08-0.15: moderate; over 0.15: serious.

For more information, see Chromatic Aberration and SFR Results: Chromatic Aberration ... plot.


Chromatic Aberration display.

Checklist

License holders are encouraged to publish test results in printed publications, websites, and discussion forums, provided they include links to www. imatest.com. The use of the Imatest Logo is encouraged. However you may not use Imatest for advertising or product promotion without explicit permission from Imatest LLC. Contact us if you have questions.

Imatest LLC assumes no legal liability for the contents of published reviews. If you plan to publish test results, you should take care to use good technique. This list summarizes the key points presented above. It's well worth reviewing.

Sturdy camera support Use a sturdy tripod, cable release, and, if possible, mirror-lock.
Target mounting If you are working outdoors, be sure the target doesn't shake in the wind.
Target distance Be sure you're far enough fro the target so the printed edge quality doesn't affect the measurements. Target distance considerations are given here.
Focus Be sure the camera is focused accurately on the target. Note whether you used manual or automatic focus.
Target alignment Make sure the corners, as well as the center, are in focus.
Raw conversion and settings The choice of RAW converter (in or out of the camera) and settings, particularly Sharpening, can make a huge difference. Contrast and White balance are also important. Settings that affect contrast and transfer curve can also have a strong effect. If possible a "Linear" setting (meaning a straight gamma curve with no additional tonal response adjustments) should be used.
Gamma
SFR sharpness results are moderately sensitive to the Gamma setting: A 10% gamma error changes MTF50 by 2.5%. For best results gamma should be measured by running Colorcheck or Stepchart. Ideally a Q-14 target (similar to the Q-13, but larger) should be mounted close to the slanted edge images.
Cleanliness and filters Lens surfaces should be clean. You should note whether you have a protective (UV or Skylight) filter. It can make a difference— more likely reduced contrast than reduced sharpness. With Imatest you can find out.
File formats Use RAW or the highest JPEG quality. Never use less than the maximum resolution or JPEG quality unless you are specifically testing the effects of these settings.
Lens settings Lens performance is a strong function of the aperture (f-stop) and focal length (for zooms). Be sure to record these settings (easy because they're saved with the EXIF data) and include them in your writeup. The optimum (sharpest) aperture is of particular interest. Lens performance is also somewhat affected by the distance to the target.
White balance Should be close as possible to neutral, particularly in Colorcheck.
This may seem like a lot of fuss, but  the technique you develop in testing cameras and lenses will spill over to your daily photography. Alfred Stieglitz tested film and developers extensively when he discovered photography as a student in Berlin. Ansel Adams performed extensive tests in the development of his zone system. Although nobody would claim that testing is responsible for their unique vision, it certainly contributed to the skill that transformed their vision into prints of transcendent beauty.



Subscribe to the Imatest Newsletter