Introduction to SQF
SQF (Subjective Quality Factor) is a measurement of perceived print sharpness that has been used for years in the photographic industry but has remained unfamiliar to most photographers. It includes the effects of
- MTF: the imaging system's Modulation Transfer Function, which is synonymous with Spatial Frequency Response (SFR),
- CSF: the human eye's Contrast Sensitivity Function,
- print height, and
- viewing distance.
SQF was introduced in the paper, "An optical merit function (SQF), which correlates with subjective image judgments ," by E. M. (Ed) Granger and K. N. Cupery of Eastman Kodak, published in Photographic Science and Engineering, Vol. 16, no. 3, May-June 1973, pp. 221-230. (If you do an Internet search, note that Granger's name is often misspelled Grainger.) It has been used by Kodak and Polaroid for product development and by Popular Photography for lens tests. This technical paper verified its correlation with viewer preference. But SQF is rarely mentioned on photography websites with the notable exception of Bob Atkins' excellent description, which includes an explanation of Pop Photo's methods.
SQF has remained obscure for only one reason. It was difficult to measure— until now.
SQF and MTF
The following table compares MTF and SQF. In essence, MTF is a measurement of device or system sharpness; SQF is a measurement of perceived print sharpness. SQF is derived from MTF, the contrast sensitivity function (CSF) of the human visual system, and an assumption about the relationship between print height and viewing distance.
| MTF (Modulation Transfer Function) | SQF (Subjective Quality Factor) |
| Measures image contrast as a function of spatial frequency. Describes device or system sharpness. Indirectly related to perceived image sharpness in a print or display. | Measures perceived sharpness as a function of print or display height and viewing distance. Describes viewer experience. Requires an assumption about viewing distance (can be constant or proportional to the square root or cube root of print height). |
| Omits viewing distance and the human visual system. | Includes the effects of viewing distance and the human visual system. |
| Abstract: Plots of MTF (contrast) vs. spatial frequency require technical skill to interpret. | Concrete: Plots of SQF (perceived sharpness) vs. print height require little interpretation. SQF has the same subjective meaning regardless of print size. It can be used to precisely answer questions like, "How much larger can I print with a 12.8 Megapixel full-frame DSLR than with an 8.3 Megapixel APS-C DSLR?" |
| 1.0 at low spatial frequencies. Decreases at high spatial frequencies, but may peak at intermediate frequencies due to sharpening. A peak over 1.4 indicates oversharpening, which can result un unpleasant "halos" at edges, especially for large print sizes. | 100 (%) for small print heights. Decreases for large print heights, but may increase at intermediate print heights due to sharpening. A peak value over about 105% may indicate oversharpening (and over 108% definitely indicates oversharpening). In such cases you should examine the MTF plot and edge profile. |
| The frequency where it drops by half (MTF50) is a reasonable indicator of relative perceived sharpness, but requires interpretation and is not as precise as SQF. | An SQF difference of 5 corresponds to a clearly perceptible difference in sharpness, and can be used as the basis of a ranking system. |
| Familiar to imaging scientists Gradually becomming familiar to a wider public, though vanishing resolution is still better known. | Unfamiliar Used internally in Kodak and Polaroid, but difficult to measure prior to the advent of digital imaging. |
| Both are strongly affected by sharpening, which is routinely performed to improve perceived sharpness, hence SQF would be expected to increase. SQF measurements with standardized sharpening can help determine the optimum sharpening radius for a desired print size. | |
Starting with Imatest 2.0.3, released in October 2006, SQF is calculated as a part of the SFR module. All you need to do is check the SQF checkbox in the SFR input dialog box. The SQF calculation is completely backwards-compatible: you can calculate SQF for all existing image files that contain slanted-edges for SFR analysis. Here is a sample result.

The large plot on top shows SQF without ( —— ) and with ( - - - ) standardized sharpening for print heights from 5 to 60 cm (~2 to 24 inches), assuming viewing distance (cm) = 30 √(picture height/10). For this mildly oversharpened camera, standardized sharpening decreases the sharpness (removes the strong overshoot), and hence reduces the SQF, which is highly sensitive to sharpening. The large plot also shows viewing distance ( - - - ). The plot on the lower right is the MTF without and with standardized sharpening, displayed in the main SFR/MTF figure, but repeated here to make this figure self-contained. The lower middle contains a thumbnail of the image showing the selected ROI in red. The text on the left contains calculation details and image properties.
What do the SQF numbers mean?
Ed Granger developed SQF to be linearly proportional to perceived sharpness. A change in SQF of 5 corresponds to a perceptible change in in sharpness— somewhat more than one "Just Noticeable Difference" (JND). Since SQF is a new feature of Imatest (version 2.0.3, Oct. 2006), we haven't had time to build our own database of SQF impressions. So we'll draw on the experience of others.
Popular Photography has been using SQF for testing lenses for years. They've developed the only generally-available SQF ranking system. Their scale isn't quite linear. {C, C+} takes up 20 SQF units; twice as many as {A, A+}, {B, B+}, or D. But it seems to be a good starting point for interpreting the numbers.
| A+ | A | B+ | B | C+ | C | D | F |
| 94-100 | 89-94 | 84-89 | 79-84 | 69-79 | 59-69 | 49-59 | Under 49 |
We encourage readers to examine Popular Photography's lens test results and to search its site for SQF. Imatest results should correlate with Pop Photo's results, but there are a few significant differences.
- Pop Photo measures SQF for lenses alone, while Imatest measures SQF for the entire imaging system. This means that Imatest results are sensitive to signal processing (sharpening and noise reduction; often applied nonlinearly) in the camera and RAW converter. This makes is difficult to compare lenses from measurements taken on different cameras. On the other hand, it means that you know what your camera/lens combination can achieve, and it's excellent for comparing lenses measured on one camera type (with consistent settings).
- Pop Photo's algorithm for calculating SQF (the SQF equation and the viewing distance assumption; both discussed below) is not known.

Quality as a function of SQF
The scale on the right was developed by Bror Hultgren of Image Integration, based on extensive category scaling tests. According to Bror, the perceived quality level depends on the set of test images (particularly how bad the worst of them is) as well as the task (e.g., a group of cameraphone users would rank images differently from a group of art gallery curators), but the relationships between categories remains relatively stable. These levels are comparable to Popular Photography's scale.
Additional considerations in interpreting SQF:
- SQF has the same interpretation regardless of print size. That means a print with SQF = 92 would have the same quality "feel" for a 4x6 print as for a 24x36 inch print. This is in contrast to MTF measurements, where MTF measured at the print surface is interpreted differently for different sizes of prints: you tend to accept lower MTF for larger prints because you view them from larger distances (though the relationship, described here, is far from linear). Viewing distance is built into SQF.
- The SQF calculation omits printer sharpness (for now). It assumes that modern high quality inkjet printers can print as sharp as the unassisted eye can see at normal viewing distances— a fairly safe assumption for large prints (≥ 20 cm high).
Measuring SQF
SQF is measured as a part of Imatest SFR. All you need to do is check the SQF checkbox in the Imatest SFR input dialog box. Settings will be remembered in succeeding runs.

Imatest SFR input dialog, showing SQF
Clicking on to the right of the SQF checkbox opens this dialog box for setting SQF options. Most of the time you'll want to leave them (except for Maximum print height, which doesn't affect the calculations) at their default values, which you can always restore by pressing .

SQF Options
CSF equation selects the equation for the Contrast Sensitivity function. There are two choices.
- Flat from 3 to 12 cpd (where cpd is cycles per degree) is the simplifying approximation originally used by Granger and Cupery in 1972, and by a number of authors since. (Granger actually used 10 to 40 cycles/mm at the retina, which translates to 3-12 cycles/degree when the eye's focal length of 17 mm is tossed into the equation.) This setting is recommended only for comparing results between the new and old explanation.
- Equation: (a + bf) exp(-bf) (the default setting) is discussed in detail in the section on Contrast Sensitivity function. This setting is recommended.
SQF integral is the form of the integral used in the SQF calculation. The default setting, 2. Integral( CSF(f) MTF(f) d(ln f) ), is recommended. The other values are experimental and not recommended; they are discussed below.
Viewing distance allows four choices.
- Fixed assumes a fixed viewing distance, which can be selected in the Base viewing distance... box.
- Square root of PH (15 cm min.) (the default setting) assumes that viewing distance is proportional to the square root of the picture height, (d = (base distance) (PH /10)1/2 ), with a minimum of 15 cm. This is the recommended setting, appropriate for typical gallery viewing. We tend to look at large prints at greater distances than small prints. With this assumption, if you viewed a 4x6 inch print at 12 inches (a number often found in the literature), you would view a 16x24 inch print at 24 inches.
- Cube root of PH (15 cm min.) assumes that viewing distance is proportional to the cube root of the picture height, (d = (base distance) (PH /10)1/3 ). With this assumption, if you viewed a 4x6 inch print at 12 inches (a number often found in the literature), you would view a 32x48 inch print at 24 inches. This seems to be a little close, but it could be appropriate in some situations.
- Fixed print height; Distance from 1 cm to max. This option is different from the others. Maximum viewing distance (cm) and Print height (cm) are entered instead of Base viewing distance and Maximum print height. SQF is plotted for viewing distances from 1 cm to the maximum for the fixed print height.
Of course Viewing distance is a broad average: we often move in and out when we critically examine a print. But some assumption must be made for the SQF calculation to proceed. We believe that choice 2, Viewing distance proportional the square root of the picture height, best represents the typical impression of sharpness for a range of prints. If we come across research that suggests a different fuction, we'll add it to the choices.
Base distance Defined according to the Viewing distance setting. It should be left at its default value of 30 cm (12 inches) unless there is good reason to change it. 34 centimeters has also been used for measuring perceived quality in 10 cm high (4x6 inch) prints.
For Viewing distance = 1. Fixed, base distance is the viewing distance in cm.
For Viewing distance = 2. Square root or 3. Cube root (of picture height), base distance is the viewing distance for 10 cm (4 inch) high prints.
Maximum print height is the maximum to plot. (Note that the height setting assumes landscape orientation: wider than tall.) It has no effect on the calculations. The default is 40 cm (16 inches), which is about as large as prints from consumer digital cameras get. Picture heights of 60 cm (24 inches) and larger are of interest to users of professional-quality digital SLRs. 20 cm is a stretch for cameraphone images.
resets settings to their default values. (It doesn't affect Maximum print height, which has no effect on the calculations.) We recommend keeping all settings at their default values, unless there is good reason to change them. This will help ensure standardized measurements and minimize confusion.
The SQF equation
Following the convention elsewhere in the Imatest site, we put the math in green boxes, which can be skipped by non-technical readers. The gist of the box below is that Granger presented the full equation for calculating SQF in 1972, but he used a simplified approximation for his calculations. Although the exact equation is strongly recommended, Imatest can use the simplified approximation where needed for comparing new and old calculations. In reviewing older publications, you should determine which calculation was used.
|
Contrast sensitivity function (CSF)

Contrast sensitivity function
The human eye's contrast sensitivity function (CSF) is limited by the eye's optical system and cone density at high spatial (or angular) frequencies and by signal processing in the retina (neuronal interactions; lateral inhibition) at low frequencies. Various studies place the peak response at bright light levels (typical of print viewing conditions) between 6 and 8 cycles per degree. We have chosen a formula, described below, that peaks just below 8 cycles/degree.
You may learn something about your own eye's CSF by viewing the chart below at various distances and observing where the pattern appears to vanish. Chart contrast is proportional to (y/h)2, for image height h. To my eyes (which underwent Lasik refractive surgery in 1998 to correct for 10 diopter nearsightedness) it appears that the peak in the curve on the right should be considerably broader. But this isn't quite the case because of the eye's nonlinear response to contrast. Although the chart below appears to decrease in contrast linearly from top to bottom, the middle of the chart has 1/4 the contrast as the top.

Log frequency-Contrast chart, created by Test Charts.
|
|
Links
Bob Atkins' excellent introduction to MTF and SQF is highly recommended.
Bror Hultgren, with 26 years of experience as an imaging scientist at the Polaroid Corporation, has developed a number of tools that relate SQF to viewer preferences, using category scaling and subjective testing. Bror is available for consulting.
Popular Photography has been using SQF for testing lenses for years. Their test results are well worth exploring.
