Documentation – Current v24.2

Using eSFR ISO Part 2

Current Documentation

All documentation versions

Running eSFR ISO

Imatest eSFR ISO performs highly automated measurements of several key image quality factors using one of three versions of the ISO 12233:2017 Edge SFR chart: Standard, Enhanced, or Extended or the Extended ISO 12233:2023 Edge SFR chart. This document shows how to run eSFR ISO in Rescharts and how to save settings for automated runs. Part 1 introduced eSFR ISO and explained how to obtain and photograph the chart. Part 3 illustrates the results.

New in Imatest 4.0 eSFR ISO settings can be updated by clicking Settings, eSFR ISO Auto settings in the Imatest main window without having to read an image file into Rescharts eSFR ISOSetup.

eSFRiso_rescharts_autoOpen Imatest by double-clicking the Imatest icon Imatest_icon_16 on

  • the Desktop,
  • the Windows Start menu,
  • the Imatest folder (typically C:\Program files\Imatest\Master (or …\Image Sensor, etc.) in English language installations).
 

eSFR ISO operates in two modes: interactive/setup and automatic.

To initialte an interactive/setup eSFR ISO run (in Rescharts), press eSFR ISO setup or Rescharts , 9. eSFR ISO. eSFR ISO setup opens a dialog box for reading an eSFR ISO file; Rescharts is more general; it lets you open any Rescharts module. Either of these buttons allows you to analyze an eSFR ISO image, examine detailed results interactively, and save settings for the highly automated eSFR ISO auto runs (or the even more automated Imatest IT EXE or DLL versions). eSFR ISO should be run at least once interactively prior to the first eSFR ISO auto run. eSFR ISO settings can also be updated by pressing Settings, eSFR ISO Auto settings from the Imatest main window.

Rescharts eSFR ISO

Selecting file(s)

The portion of the Rescharts window used for opening files is shown on the right. You can open a file by clicking on Read image file if the correct chart type is displayed, or by selecting a Chart type. One or more files may be selected, as shown below. If you select multiple files, they can be combined (averaged), and you’ll be given the option of saving the combined file.

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.

The folder saved from the previous run appears in the Look in: box on the top. You are free to change it. The file name from the previous run is displayed at the bottom. You can open a single file by simply double-clicking on it. You can select multiple files for combined runs (for interactive or eSFR ISO auto runs) or for batch runs (for eSFR ISO auto-only) 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 are highlighted. Large files can take several seconds to load.

Imagest SFR: Open slanted-edge input file dialog box
File selection

Multiple file selection Several files can be selected in Imatest Master using standard Windows techniques (shift-click or control-click). For eSFR ISO interactive (Rescharts) runs, files can be combined to reduce noise or (in some instances) observe the effects of camera shake or image stabilization. For eSFR ISOauto runs, you can run large batches of images. The multi-image dialog box gives you the option of saving the combined file, which will have the same name as the first selected file with _comb_n appended, where n is the number of files combined.
 
RAW files Imatest can analyze raw files from cameras (using dcraw) or from development systems (using Generalized Read Raw). The files can be demosaiced or Bayer raw: standard files (TIFF, etc.) that contain undemosaiced data. Undemosaiced files are not very useful for measuring MTF because the pixel spacing in each of the four 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

eSFR ISO setup window

When the file (or files) have been opened, the eSFR ISO setup window, shown below, appears. This window allows you to select groups of regions (ROIs; shown as violet rectangles) for analysis. It also lets you select the size of the regions, whether to analyze vertical or horizontal edges, and much more. Pressing More settings on the left opens the eSFR ISO More settings, which allows you to select additional settings that affect the calculations and display. Pressing Auto mode settings lets you select the output figures and files (for eSFR ISO auto mode runs).

LX7_eSFR-ISO_4.7mm_f2.8_settingswindow
eSFR ISO setup window; 18 regions (centers and all inner regions) selected for analysis

eSFR ISO setup window Settings that affect run speed are shown with red background.
Settings area
Channel Select channel to analyze: R, G, B, Y, R-only, G-only, B-only, Y-only. (Y is Luminance channel). Use one channel only to speed up calculations or where other channels are dark or may not contain valid data. Selecting one channel-only can significantly speed up calculations.
Linearization method Specifies the method to use for linearizing the slanted edge ROI image data for edge SFR analysis. Described in more detail below.
Gamma (input) Assumed gamma (inverse gamma) of the system, used for linearizing the slanted edge ROI image data. Default is 0.5. Only used if “Input gamma value” is selected as the Linearization method. Described in more detail below.
Chart contrast
Chart edge contrast (for example, 4:1, 10:1, or 2:1 contrast edges). Can be used to estimate gamma for each slanted edge ROI if “Gamma calculated from chart contrast” is selected as the Linearization method. More details below.
More settings Open the eSFR ISO More settings window, shown below.
Auto mode settings Open the eSFR ISO Auto mode settings window, shown below, for controlling eSFR ISO auto.
ROI Selection & analysis area
Region selection

(Selects which regions to locate. Actual ROIs are located
automatically)

Select the regions (ROIs) to analyze. The number of regions (when Horizontal or Vertical-only is selected) is in parentheses. This is a particularly important setting. We encourage users to become familiar with the settings below. At least 9 regions are required for 3D plots. These settings are different from SFRplus (though similar in principle).

 

1. Ctrs and outer corners (6 or 9 ISO squares) (the default). Note that two regions are always selected for the center square and center regions are included in all region selections except for the two for Edge ID files.

2. Read EdgeID/Zone selection file.

An Edge ID/Zone selection file contains a list of identifiers for slanted edge ROI locations or selection zones, one per line, similar to lists in CSV and JSON output files. There are two types of data line: for individual ROIs and for ROI selection zones. It allows you to freely select edges or zones.

This window opens when you click
 Read EdgeID/Zone selection file. Click to view full size

Click Read EdgeID file to read the file. Then click OK.

Individual edge ROI selection lines:  the format is  Column_Row_Side,  where

  • Column is the column number (x) relative to the center, e.g., -3, 0, 3, etc.
  • Row is the row number (y) relative to the center, e.g., -2, 0, 2, etc. NOTE: Row number increases in a downward direction, e.g., -1 is ABOVE center.
  • Side is L, R, T, or B  (Left, Right, Top, or Bottom) (SFRplus and eSFR ISO modules). (H or V is used instead of L, R, T, B for Checkerboard module-only).
  • Note: the final field from the results files ( _C, _E, etc. for Corner, Edge, etc.) is ignored.

Example:  -2_1_L selects the left edge of the square two columns left of center and one row below center.

Zone ROI selection lines:  the format is Z ii nn or S ii nn, where

  • Z denotes zone for edge selection based on % center-corner distance.
  • S denotes zone for edge selection based on % center-side distance.
  • ii is the minimum % distance. nn is the maximum % distance.

ExampleZ 60 80 selects all edges with centers between 60 and 80% of the way between the image center and the corner. Several zones can be selected.

3. Use most recent EdgeID file.

esfriso_roi_selectionsDefinitions for diagram on right

“9 iso sqs” refers to the 9 squares from the ISO 12233:2017 specification, i.e, the squares included in the Standard E-SFR chart.

“15 sqs” refers to all 15 squares in the Enhanced or Extended charts. These selections (9-14) should not be used with the Standard chart.

1, 4-8. These selections work for all charts including the Standard Chart, which has only 9 squares.

9-15. These selections work with the Enhanced or Extended charts, which have 15 squares. They should not be used with the Standard (9 square) chart.

Other selections may be added on user request.

Vertical, Horizontal edges (or both) Chooses between Vertical and Horizontal edges (or both). Usually Vertical, but Horizontal is useful on occasion. Use both for Lens-style MTF plots. For 3D plots it’s best to plot Horizontal or Vertical-only.
Step chart (checkbox) Perform step chart analysis. Should be unchecked for charts that do not include the step chart (such as transmissive chrome-on-glass charts). Checked by default.
Color chart (dropdown menu)
For the pattern above the center square: Perform color analysis, slanted-edge MTF analysis, or no analysis. Color analysis should only be checked for charts that include the optional color pattern. Be sure the correct Color reference (file name) and Color space has been entered in the Settings region of the More settings window. Unchecked by default.
Wedge If checked, automatically detect the locations of the four wedge pairs and perform a wedge analysis, as described in Wedge.
Negative Check this box for negative images (light squares on dark background). For some Infrared systems.
Speedup (checkbox) Speed up the run by eliminating some calculations that many users don’t require, including SQF/Acutance, noise statistics and histograms.
ROI size Slider that determines the size of the ROI. Use the largest value that keeps a safe distance from edges of squares. May need to be reduced when distortion is severe.
Crop borders Allows borders to be cropped to remove interfering patterns that might otherwise be included in the image. This button is tinted pink whenever the image is cropped.
ROI width
(below ROI size slider)
Width of ROI selection. Normal width for the standard rectangular ROI. Choose Wider or Widest for very fuzzy edges, for enhanced noise analysis, or for more extended low frequency response.
Other controls
Title Title. Defaults to file name. You can add a description.
Help Open this web page in a web browser.
Display … image Selects image for Setup window display: Original (RGB) image, R, G, or B channel
Save & close
Save settings (for use in auto eSFR ISO), but do not continue with run.
OK Save settings and continue with run: Calculate results for all selected region. You will be able to view results interactively.
Cancel Cancel run; do not save settings

After you’ve finished making settings, click OK to save settings and continue with the run. You can Click Save settings to save the settings without continuing.

Speeding up eSFR ISO
Setting Value(s) for fast operation ini file for IT Effect
Channel [S] One channel (typically Y (luminance))-only RGBY_value = 8 Major
Speedup [S] Checked (on). Turns off slow noise & histogram calculations. speedup = 1 Major
Step chart [S] Unchecked (off, unless needed) stepchart = 0 Minor
Wedge [S] Unchecked (off, unless needed)   Moderate
Analyze color patches [S] No color patches (unless needed) colorchart = 0 Minor
Edge roughness Unchecked edgerough = Min Minor
Acutance analysis Unchecked SQF = Min Minor
Noise settings Opens Noise settings window. For speed, Noise calculations (near top) should be set to 1 or 2 (No or Elementary calculations). Visual Noise display settings should be set to 1. No Visual noise.   Major
[S] means this setting is in the eSFR ISO setup window (most are also in More settings). Others are in More settings-only.
IT users: See the knowledge base post, Speeding up Imatest IT with INI File Settings.  INI file settings (above) are for the [esfriso] section of the ini file. 

More settings window

The eSFR ISO More settings window, shown below, opens when

  • More settings is pressed in the eSFR ISO setup or Rescharts windows.
  • Settings, eSFR ISO settings is pressed in the Imatest main window, then the More settings is pressed in the eSFR ISO settings window.

Settings are read from the imatest-v2.ini file (rescharts.ini prior to Imatest 4.2), and saved to imatest-v2.ini when OK is pressed. Settings are similar to the settings in the SFR input dialog box.

esfriso_more_settingseSFR ISO More settings window

You can select either Expert or Simplified mode for the settings window. In Simplified mode many settings are grayed out so they can’t be set. If you press Standard settings, commonly used settings (recommended for beginners) are selected.

This window is divided into sections: Title and Help on top, then Display options, Settings, Optional parameters, and finally, OK or Cancel at the bottom.

Title defaults to the input file name. You may leave it unchanged, replace it, or add descriptive information for the camera, lens, converter settings, etc.— as you please.

Help opens a browser window containing a web page describing the module. The browser window sometimes opens behind other windows; you may need to check if it doesn’t pop right up.

Display options (below Plot) contains settings that affect the display (units, appearance, etc.).

MTF plot units selects the spatial frequency units for MTF plots for for the summary plot. Cycles/pixel (C/P), Cycles/mm (lp/mm), Cycles/inch (lp/in), Line Widths per Picture Height (LW/PH), and Line Pairs per Picture Height (LP/PH) are the choices. (Note that one cycle is the same as one line pair or two line widths.) If you select Cycles per inch or Cycles/mm, you must enter a number for the pixel size— either in pixels per inch, pixels per mm, or microns per pixel. For more detail on pixel size, see the box below. note: for using picture height (LW/PH) or (LP/PH) units with cropped images enter the original picture height into the more settings dimensions input

Maximum MTF plot frequency selects the maximum display frequency for MTF plots. The default is 2x Nyquist (1 cycle/pixel). This works well for high quality digital cameras, not for imaging systems where the edge is spread over several pixels. In such cases, a lower maximum frequency produces a more readable plot. 1x Nyquist (0.5 cycle/pixel), 0.5x Nyquist (0.25 cycle/pixel), and 0.2x Nyquist (0.1 cycle/pixel) are available.

Secondary readout controls the secondary readout display in MTF plots. The primary readout is MTF50 (the half-contrast spatial frequency). Two secondary readouts are available with several options. The first defaults to MTF30 (the spatial frequency where MTF is 30%). The third is used only for Lens-style MTF plots.

Clicking Change opens the window shown on the right. Secondary readout settings are saved between runs. Choices:

  • The first radio button (MTF) for each readout selects MTFnn, the spatial frequency where MTF is nn% of its low frequency value.
  • The second radio button (MTFnnP) selects MTFnnP, the spatial frequency where MTF is nn% of its peak value: useful with strongly oversharpened edges.
  • The third radio button (MTF @ ) selects MTF @ nn units, where nn
    is a spatial frequency in units of Cycles/pixel, LP/mm, or LP/in. If
    you select this button, the pixel spacing should be specified in the Cycles per… line in the Plot section of the input dialog box, shown above. A reminder message is displayed if the pixel spacing has been omitted.
  • The fourth radio button (MTF Area) selects MTF Area, the integral of the MTF from 0 to the Nyquist limit. MTF Area tracks MTF 50 (it increases as sharpening increases), up to the point where an overshoot appears in the sharpened MTF curve then it remains relatively constant. It therefore does not reward excessing sharpening with better numbers. 
  • The fifth radio button (Mean ROI level) selects Mean ROI level. This is the average digital number across each ROI. 
  • The sixth radio button (Peak MTF) selects Peak MTF, which indicates the level of sharpening (peak MTF > 1) in an image. 
  • The seventh radio button (Angle from Tangential SFR) selects the angle from tangential SFR. Edges oriented radially from the image center will have a tangential SFR and will have angles close to 0. Edges oriented tangentially from the image center will have a sagittal SFR and will have orthogonal angles, close to 90. 

Edge plot selects the contents of the upper (edge) plot. The edge can be cropped
(default) or the entire edge can be displayed. Three displays are available.

  1. Edge profile (linear) is the edge profile with gamma-encoding removed. The values in this plot are proportional to light intensity. This is the default display.
  2. Line spread function (LSF) is the derivative of the linear edge profile. MTF is the fast fourier transform (FFT) of the LSF. 
  3. Edge pixel profile is proportional to the edge profile in pixels, which includes the effects of gamma encoding.
  4. Edge linear, unnormalized is similar to Edge profile (1.), but not normalized. Useful in diagnosing situations where one channel may be saturating (and affecting MTF measurements).

Wavelength (um) for diffraction-limited MTF plot. If a number is entered (0.555 um is the default for visible light systems) and pixel spacing is also entered, the diffraction-limited MTF is displayed on the MTF plot and the diffraction-limited edge or Line Spread Function (cross-section of Airy disk) is shown on the edge plot as a faint dashed line.

 

Settings affect the results as well as the display.

Settings area

Speedup Speed up calculatons by eliminating some calculations that many users don’t require, including noise statistics and histograms. Checking Speedup can significantly speed up calculations.

Edge roughness Calculate edge roughness (for including in CSV output). Slows calculations slightly. Required if Edge roughness plot is to be displayed.

MTF noise reduction (mod apod) Reduce noise using the modified apodization technique. Improves MTF accuracy, especially with noisy images, but not an ISO standard calculation. Generally recommended.

Channel specifies the primary channel to display (all channels are analyzed). It’s normally left at it’s default value of Y for the luminance channel,
where Y = 0.3*R + 0.59*G + 0.11*B. R, G, and B color channels can also be selected. Selecting one channel-only can significantly speed up calculations and may help in rare instances where bad data in one channel causes a crash.

Color reference and Color space are used when a color analysis is to be performed (if the image contains the color pattern and the Color chart box is checked in the eSFR ISO setup window). The Color reference dropdown menu allows you to browse for the
reference file, typically a LAB data file in CSV format, supplied with color eSFR ISO charts. It should be stored in a convenient location. The last selected file is saved.

Linearization method specifies the method to use for linearizing the slanted edge ROI image data for edge SFR analysis.

Options for eSFR ISO include:

    1. Input gamma value (default) – The inverse of the value entered into the “Gamma (input)” field is used to linearize the data.

      • Note: The input gamma value represents the “forward” (encoding) gamma value (typically around 0.46 = 1/2.2 for sRGB or Adobe RGB color spaces); the inverse (display gamma) is used for linearization. More information on gamma can be found below.

    2. Gamma calculated from chart contrast – The value selected for the “Chart contrast” setting is used, in combination with the contrast measured from the edge ROI region, to calculate a value for gamma on a per edge ROI basis. The inverse of this gamma is used to linearize the data.

      • The gamma value is estimated from the ratio of the light and dark pixel levels in the slanted-edge region (away from the edge) if the chart contrast ratio (light/dark reflectivity) has been entered (highly recommended to be 10:1 or less for this calculation). Equations for this calculation can be found below.

      • Note: The calculated gamma value(s) are included in the JSON output as the field “gamma_from_chart”, on a per edge ROI basis

    3. No linearization – The data is not linearized.

      • Note: “Input gamma value” of 1 is equivalent to “No linearization”.

    4. Linearly interpolated LUT from step chart (requires step chart analysis to be checked) – A linearly interpolated look-up-table (LUT), representing the inverse of the measured OECF, is calculated from the mean of the grayscale patch (step chart) ROIs and the nominal patch densities (or those from a grayscale reference file). The LUT is used to linearize the data.

      • Note: A grayscale reference file contains measured patch densities and can be loaded from the Rescharts more settings window

    5. Gamma calculated from step chart (requires step chart analysis to be checked) – The mean of the grayscale patch (step chart) ROIs and the nominal patch densities (or those from a grayscale reference file) are used to calculate a value for gamma. The calculated gamma is the slope of a linear fit of the patch densities and log(grayscale patch means). The inverse of this gamma is used to linearize the data.

      • Note: A grayscale reference file contains measured patch densities and can be loaded from the Rescharts more settings window

      • Note: The calculated gamma value is the same as that which appears on the Rescharts Tonal Response plot, also corresponding to the gray dotted line on the plot (the gamma value is the slope of this line). Note that there is also a gray dashed line that represents a 2nd order polynomial fit.

      • Note: The calculated gamma value is included in the JSON output as the field “gamma_from_stepchart”

      • Note: The range of patches is limited for the calculation of gamma, specifically using the patches that have a mean within the central 80% of the total range of patch means. Therefore, some darker or lighter patches may not be used for calculation of this gamma.

Gamma is the average slope of log pixel levels as a function of log exposure for light through dark gray tones). It is used to linearize the input data, i.e., to remove the gamma encoding applied by image processing so that MTF can be correctly calculated (using a Fourier transformation, which requires a linear signal). Gamma defaults to 0.5 = 1/2, which is typical of digital camera color spaces, but may be affected by camera or RAW converter settings. Small errors in gamma have little effect on MTF measurements (a 10% error in gamma results in a 2.5% error in MTF50 for a normal contrast target). Gamma should be set to 0.45 or 0.5 when dcraw is used to convert RAW images into sRGB or a gamma=2.2 (Adobe RGB) color space. It is typically around 1 for converted raw images that haven’t had a gamma curve applied. If gamma  is set to less than 0.3 or greater than 0.8, the background will be changed to pink to indicate an unusual (possibly erroneous) selection.

A value for gamma can be estimated and used for linearization via the Gamma calculated from chart contrast option (uses the entered chart contrast and the pixel levels from the edge ROI) as well as the Gamma calculated from step chart option (uses the tonal response curve, or OECF, measured from the step chart pattern). 

A grayscale step chart pattern is included in SFRplus, eSFR ISO and SFRreg Center ([ct]) charts. Gamma is calculated and displayed in the Tonal Response, Gamma/White Bal plot for these modules. Gamma can also be calculated from any grayscale stepchart by running Color/Tone Interactive, Color/Tone Auto, Colorcheck, or Stepchart. [A nominal value of gamma should be entered, even if the value of gamma derived from the chart (described above) is used to calculate MTF.]

Gamma, Tonal Response, and related concepts contains a detailed explanation of gamma: why it’s used, how to measure it, and much more.

Gamma
Gamma is the exponent of the equation that relates image file pixel level to luminance. For a monitor or print,

Output luminance = (pixel level)gamma_display

When the raw output of the image sensor, which is linear, is converted to image file pixels for a standard color space, the approximate inverse of the above operation is applied.

pixel level = (RAW pixel level)gamma_camera ~= exposuregamma_camera

The total system gamma is gamma_display * gamma_camera. Standard values of display gamma are 1.8 for older color spaces used in the Macintosh and 2.2 for color spaces used in Windows, such as sRGB (the default) and Adobe RGB (1998).

In practice, gamma is equivalent to contrast. More on gamma can be found in SFR Instructions, part 2.

Gamma from ROI pixel levels— Using the Gamma calculated from chart contrast option along with a value for chart contrast ratio (highly recommended to be ≤ 10 for this calculation), camera gamma can be estimated from the ratio of the light and dark pixel levels P1 and P2 in the slanted-edge region (away from the edge). Starting with \(P_1/P_2 = \text{(chart contrast ratio)}^{gamma\_encoding}\),

\(\displaystyle gamma\_encoding = \frac{log(P_1/P_2)}{log(\text{chart  contrast  ratio})}\)

Incident lux (for ISO sensitivity calculations) When a positive value of incident light level (not blank or zero) in lux is entered in this box, ISO sensitivity is calculated and displayed in the Stepchart noise detail figure. More details are on the ISO Sensitivity and Exposure Index page.

Zone weights Weights of the center, part-way, and corner zones. Used for calculating weighted means of key results, displayed in the Multi-ROI and 3D plots. The defaults of 1 (center), 0.75 (part-way), and 0.5 (corners) are for typical pictorial photography; corners should probably be given more weight for technical photography. (Note: The boundary between center and part-way is 30% of the center-corner distance. The boundary between part-way and corner regions is 75%, except for eSFR ISO, where it is 68%.)esfr_regmark_vertical_spacing

Reg. mark vert. spacing in cm (Registration mark vertical spacing) is used to calculate the Field of View (FoV) when Pixel spacing (pitch) has been entered. It is optional (not normally entered). FoV is displayed in Image & Geometry and reported in the CSV output file if calculated.

Lens-to-chart distance in cm is used to calculate the actual lens focal length when Pixel spacing (pitch) and Registration mark spacing have been entered. It is optional. The distance from the lens to target is most conveniently measured with a laser measuring device. Focal length is displayed in Image & Geometry and reported in the CSV output file if calculated.

eSFR ISO noise settings  opens the Noise and Visual Noise settings window described in Multicharts/Multinoise and eSFR ISO Noise measurements. This sets which types of noise are calculated (affects speed), the display x-axis (Density units, EV, dB, etc.), and Visual Noise viewing conditions.

Standardized sharpening Three settings are available:

Standardized sharpening OFF Neither Standardized sharpening nor oversharpening are calculated. Results for individual R, G, and B channels are displayed with more prominence
Standardized sharpening ON Standardized sharpening results are displayed as thick red curves and readouts in the edge and MTF plots. Oversharpening (no longer recommended)
Display oversharpening only
(default)
Oversharpening, which is related to Standardized sharpening, is displayed. It is 0 when the image is sharpened just enough to cause an imperceptible amount of overshoot. It is around -20% for raw images. “Halos” can be objectionable when it’s over 25 or 30%. Results for individual R, G, and B channels are displayed with more prominence

See SFR instructions for more detail.

Reset restores the settings in eSFR ISO More Settings to their default values.

 

Additional parameters (all optional) for Excel .CSV output contains a detailed description of the camera, lens, and test conditions. EXIF data is entered, if available, but can be overridden by manual settings. Description & settings is particularly useful for annotating the test system (it is displayed in MTF Compare).These settings are optional but can be useful when several tests are run for different lenses, focal lengths, apertures, or other settings. The settings are displayed next to the MTF plots. They are saved and reused in subsequent runs for files with the same pixel dimensions. If EXIF data is available (currently, only in JPEG files) it overrides the saved settings. The Reset button clears all entries.

ISO standard SFR If this checkbox is checked, SFR calculations are performed according to the ISO 12233 standard, and the y-axis is labeled SFR (MTF) (ISO standard). This method is slightly less accurate than the normal Imatest calculation, which incorporates a number of refinements, including a better edge detection algorithm and a second-order polynomial fit to the average edge for a more accurate estimate of SFR in the presence of optical distortion. This box is normally left unchecked; it should only be used for comparing normal Imatest calculations to the ISO standard. The difference is typically very small.


When entries are complete, click OK to return control to the eSFR ISO setup window. When all entries are complete, click either Save settings, OK, or Cancel. Save settings saves the settings for use in automated eSFR ISO runs, which can be initiated from the eSFR ISO Auto button in the main Imatest window. OK saves the settings then calculates results for interactive viewing. A sequence of Calculating… boxes show the progress of the calculations. When calculations are complete, results are displayed interactively in the Rescharts window.

Auto mode settings window

Auto mode settings affect plots and output files for eSFR ISO Auto runs as well as Imatest IT/EXE and DLL. It does not directly affect interactive (Rescharts) eSFR ISO runs. The eSFR ISO Auto mode settings window, shown below, opens when

  • Auto mode settings is pressed in the eSFR ISO setup window.
  • More settings is pressed in the Rescharts window, then Switch to eSFR ISO Auto mode setup is pressed in the More settings window.
  • Settings, eSFR ISO settings is pressed in the Imatest main window, then Auto more settings is selected.

esfriso_auto_settings
eSFR ISO auto mode settings

The upper box allows you to select single and multi region figures to be plotted and saved in eSFR ISO auto output. For the most part they are self-explanatory. Note that all plotted figures are saved.

Saved figures, CSV, XML, and JSON files are given names that consist of a root file name (which defaults to the image file name) with a suffix added. Examples:

Canon_17-40_24_f8_C1_1409_YR7_cpp.png
Canon_17-40_24_f8_C1_1409_YR7_MTF.csv

When 3D plot is checked, eSFR ISO auto plots the last 3D plot displayed in Rescharts unless the More 3D plots button has been pressed and one or more plots has been selected. More 3D plots will be displayed in pink in this case. This allows several 3D plots to be displayed and saved by eSFR ISO auto.

Close figures after save should be checked if a large number of figures are to be displayed. It prevents a buildup of figures, which can slow processing.

Figures can be saved as PNG or FIG files. PNG files (a losslessly-compressed image file format) are the default— they require the least storage. Matlab FIG files allow the data to be manipulated– Figures can be resized, zoomed, or rotated (3D figures-only), but FIG files should rarely be used because they can be huge. PNG files are preferred if no additional manipulation is required.

A CSV summary file is saved for all runs. An XML file is saved if Save XML results is checked.

You can select either Save CSV files for individual ROIs or Save summary CSV file only (the summary file is always saved).

Save folder determines where results are stored. It can be set either to subfolder Results of the image folder or to a folder of your choice. Subfolder Results is recommended because it is easy to find if the image folder is known.

Warnings

A Clipping warning is issued if more than 0.5% of the pixels are clipped (saturated), i.e., if dark pixels reach level 0 or light pixels reach the maximum level (255 for bit depth = 8). This warning is emphasized if over 5% of the pixels are clipped. Clipping reduces the accuracy of SFR results. It makes measured sharpness better than reality.  

The percentage of clipped pixels is not a reliable index of the severity of clipping or of MTF measurement error. For example, it is possible to just barely clip a large portion of the image with little loss of accuracy. The plot on the right illustrates strong clipping, indicated by the sharp corner near the “shoulder” on the black line. The MTF measurement is better than reality. The absence of a sharp corner indicates that there is little MTF error.

Clipping can usually be avoided with a correct exposure— neither too dark nor light— and by avoiding high contrast targets (like the old ISO-12233 chart). The maximum recommended edge contrast is 10:1; 4:1 contrast (recommended in the upcoming revision to the ISO-12233 standard) is even better. Low-contrast targets are more reliable overall: in addition to better exposure latitude (reduced risk of clipping), they tend to have less sharpening in cameras with variable signal processing, and MTF results are less sensitive to errors in estimating gamma.

 

Clipping warnings

 

eSFR ISO summary

  • eSFR ISO analyzes images of Imatest’s versions of the ISO 12233:2017 and ISO12233:2023 Edge SFR (E-SFR) test charts. There should be few or no interfering patterns (resembling registration marks) outside the image of the chart itself.
  • Lighting should be even and glare-free. Lighting and alignment recommendations are given in The Imatest test lab.
  • The first time eSFR ISO is run, it should be run through Rescharts (which can be accomplished by pressing eSFR ISO Setup). This allows
    • parameters to be adjusted and saved for later use in the automatic version of eSFR ISO, which is opened with the eSFR ISO Auto button in the Imatest main window.
    • results (listed above) to be examined interactively in the Rescharts window.
  • The eSFR ISO Auto button on the main Imatest window runs eSFR ISO in full automatic mode using settings saved from the most recent Rescharts run.

Next: Using eSFR ISO Part 3: Results

Pixel size

Pixel size is closely related to image quality. For very small pixels, noise, dynamic range and low light performance suffer. Pixel size is rarely given in camera spec sheets: it usually takes some math to find it. If the sensor type and the number of horizontal and vertical pixels (H and V) are available, you can find pixel size from the table on the right and the following equations.

pixel size in mm = (diagonal in mm) / sqrt( H2 + V2 )
pixel size in microns = 1000 (diagonal in mm) / sqrt( H2 + V2 )

Pixel size in microns (microns per pixel) can be entered directly into the SFR settings box. Example, the cute little 5 megapixel Panasonic Lumix DMC-TZ1 has a 1/2.5 inch sensor and a maximum resolution of 2560x1980 pixels. Guessing that the diagonal is 7 mm, pixel size is 2.1875 (rounded, 2.2) microns.You can find detailed sensor specifications in pages from Sony, Panasonic, and Kodak.

Sensor
Designation

(Type)
Diagonal

mm.

Width

mm.

Height

mm.

1/4″ 4.5    
1/3.6″ 5.0 4.0 3.0
1/3.2″ 5.68 4.54 3.42
1/3″ 6.0 4.8 3.6
1/2.7″ 6.59 5.27 3.96
1/2.5″ 6.9 – 7.2    
1/2″ 8.0 6.4 4.8
1/1.8″ 8.93 – 9.1 7.18 5.32
2/3″ 11.0 8.8 6.6
1″ 16.0 12.8 9.6
4/3″ 22.5 18.0 13.5
35mm 44.3 24.0 36.0