
The slanted-edge test image
Imatest SFR measures the spatial frequency response, also known as the Modulation Transfer Function (MTF), of digital cameras and digitized film images.

ISO 12233 test chart
with Imatest SFR cropping
indicated by the red rectangle.
It uses a simple slanted-edge (black-to-white) target described in Sharpness: What is it and how is it measured? Although it doesn't provide the as strong a visual indication of MTF as the Log Frequency test chart, it provides a more accurate quantitative measurement.
Imatest SFR also measures Chromatic aberration, noise and Shannon information capacity— a useful but unfamiliar indicator of image quality.
Imatest SFR uses a standardized sharpening algorithm to compensate for the different amounts of sharpening in different cameras, allowing them to be fairly compared.
These instructions also apply to the Slanted-edge SFR module of Rescharts, which is performs identical calculations to Imatest SFR, but has a more interactive interface.
| Origins of Imatest SFR The algorithms for calculating MTF/SFR were adapted from a Matlab program, sfrmat, written by Peter Burns ( |
|
|
|
Imatest Master can analyze edges of nearly any angle. For best results, exact vertical, horizontal, and 45° edges should be avoided. |
![]() |
|
Printing, assembling, and photographing the target
-
Summary
- Obtain a test chart
- Print the chart or Display a pattern on an LCD screen.
- Assemble the printed charts into a target.
- Photograph the target.
- Tips: Lighting | Distance | Exposure | Photographing the target
- Test chart print quality
You can run Imatest SFR with any clean, sharp, straight black-to-white or dark gray-to-white edge. The solid areas need to be smooth and uniform: white on one side and black or dark gray on the other. Since Imatest does not yet sell a printed chart, the quickest way to obtain a chart is to print one on a high quality inkjet printer.
Obtain a test chart.
Several alternatives are available for obtaining test charts.
- Download one of the test images below and print it on a high quality inkjet printer (details below) or send it to a lab for printing, for example, one of the labs listed by Dry Creek Photo.
Create and print a test image with the Imatest Test Charts module. A variety of contrast ratios and highlight colors are available. Several Structured vector graphics (SVG) charts are available in Imatest Master. Some of the slanted square on an m x n grid patterns (example on right) are exceptionally well suited for printing large and for automated testing, and have numerous advantages over the ISO 12233 chart. - Purchase a chart such as the ISO 12233 (QA-72) or QA-77 (available from Applied Image) or as a less expensive alternative from Danes-Picta in the Czech Republic (the DCR3 chart on their Digital Imaging page). The Applied Image charts are printed with much higher resolution than an inkjet printer can achieve, hence they can be use at much closer distances. Their disadvantage is that they have very high contrasts (>=40:1), which often results in reduced accuracy, and they have a great deal of wasted real estate: usable edges may not be found in regions of greatest interest such as the four corners.
- A printable vector-graphics version of the ISO 12233 chart is available courtesy of Stephen H. Westin of the Cornell University Computer Graphics Department. It should be printed as large as possible (17x22 inches (A2) minimum; 24x26 inches (A1) if possible for 8+ megapixel cameras) so measured sharpness is limited by the camera and lens, not the printer. Because of the limitations of the ISO chart (described above), the Imatest SVG charts are generally preferable.
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, as we've learned recently, higher than optimum). The two SVG charts have contrast ratios of 20 and 2. Instructions for their use can be found in 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). | |||
| Contrast = 20, light, gamma = 2.2, white highlights (SVG) | Contrast = 20 (PDF) High enough contrast to excite maximum sharpening in most cameras but low enough to avoid clipping in most cases. | ![]() |
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 | |||
| Edge_chart_low.png (reduced contrast; pixel levels 47, 255) | |||
Test images with a varety of contrast ratios and highlight colors can be created with the Imatest Test Charts module.
| 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.
Most cameras do NOT apply noise reduction and sharpening uniformly throughout an image.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. |
Print the charts

The use of guide marks for tilting the chart
Print the test image with 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. Bitmap images should be printed 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 described in detail in Chart quality and distance, below.
The bitmap charts are intended to be tilted approximately 5.7 degrees (anywhere between 2 and 7 degrees is OK) when they are photographed. They are 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 SVG charts do not need to be tilted.
Alternatively, print it at one of the labs listed by Dry Creek Photo. 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 charts 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.

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.
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. (Thanks to Scott
Kirkpatrick for the suggestion.) 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.
Click here to view a web page with a suitable LCD test image (dark gray and white rather than black and white to minimize clipping). |
Photograph the target.
|
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. |
![]() |
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
|
A letter-sized (8.5x11 inch) chart printed on Permium Luster paper on the Epson 2200 (a high quality pigment-based inkjet photo printer) was analyzed for MTF using the 6.3 megapixel Canon EOS-10D. There was no change when the image field was at least 22 inches (56 cm) wide— twice the length of the chart. Performance fell off slowly for smaller fields.
Choose a camera-to-target distance that gives at least this image field width. The actual distance depends on the sensor size and the focal length of the lens. The minimum image field is illustrated on the right.
Commercial charts are often printed at higher resolutions than inkjet printers can achieve, and hence may be used at shorter distances— microscopic in some cases. For example, the small Applied Image/Sine Patterns ISO-12233 Resolution Charts (.1X, .5X, and 1X) are printed on photographic paper, which is capable of extremely fine resolution. The chart may safely fill the entire frame.
Cameras with more pixels, and hence higher potential resolution, should should have a larger image field width.
Distance/field width guidelines for high quality inkjet charts (You can get closer with photographically-printed charts.) |
|
|||||||||||||||||||||||||||||||||||||||||||||||||
| Image field
width (in inches) > 8.8 × sqrt(megapixels)
( > means "greater than.") Image field width (in cm) > 22 × sqrt(megapixels) — or — There should be no more than 140 sensor pixels per inch of target or 55 sensor pixels per centimeter of the target. — or — The distance to the target should be at least 40X the focal length of the lens for 6-10 megapixel digital SLRs. (25X is the absolute minimun for 6 megapixel DSLRs; 40X leaves some margin.) For compact digital cameras, which have much smaller sensors, the distance should be at least 100X the actual focal length: the field of view is about the same as an SLR with comparable pixel count. The recommended distance is described in more detail in Chart quality and distance, below. |
||||||||||||||||||||||||||||||||||||||||||||||||||
| There is some confusion about lens focal lengths in compact digital cameras. They are often given as the "35mm-equivalent," which many photographers can relate to viewing angle. 35-105mm or 28-140mm are typical "35mm-equivalent" numbers, but they are not the true lens focal length, which is often omitted from the specs. What is given is the sensor size in 1/n inches, a confusing designation based on the outside diameter of long-obsolete vidicon tubes. It The table on the right relates the 1/n designation to the diagonal dimension of the sensor. True focal length = "35mm-equivalent" × (diagonal mm.) / 44.3 |
||||||||||||||||||||||||||||||||||||||||||||||||||
Low contrast test charts (with contrast ratios of 40:1 or lower) are helpful for avoiding clipping.
The above image (taken from the Canon File Viewer Utility) is close to a perfect exposure.
|
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 is not 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 avoid spaces. (Spaces work with Imatest, but they can be troublesome in DOS command lines and web pages.) An example would be Canon_EOS10D_70-200f4L_100mm_f8_ctr.jpg.
You are now ready to run Imatest SFR.
|
|||||||||||||||
|
||||||














