Image Statistics/Viewer

Image Statistics/Viewer is an interactive utility introduced in Imatest 5.0 that lets you examine a number of image properties, including

  • Vertical and horizontal cross-sections with adjustable thickness. Using a larger thickness mitigates the effects of noise.
  • Properties of rectangular or square (eyedropper) regions, including rectangle position, Mean values of R,G,B, and Y (luminance) channels, Log10(mean/max), Noise (sigma), Noise corrected for nonuniformity, SNR (Signal/Noise), SNR dB, and Mean L*a*b* (when color space has been entered).
  • Distance between points in the original image.
  • All points below and/or above specified values as blue and/or red, respectively.
  • Histograms (primarily Luminance channel: R, G, and B channels can be added) for region area greater than 250 pixels.
  • Fourier spectrum with linear or logarithmic axes for regions larger than 100×100 pixels.
  • EXIF data— metadata stored in the image file

You may zoom or lighten the image to view details you might otherwise miss. Zooming makes it easier to select small or tight rectangular regions. It also limits the extent of cross-section displays (so that only regions of interest are displayed). Lightening the image does not affect the numeric results. Images with bit depths of 8 and 16 are supported.

Image Statistics/Viewer can be opened from

  • the Utilities dropdown menu or the Image Stats button in the Utilities tab on the right of the Imatest main window,
  • Rescharts, Multicharts, or Uniformity Interactive, either from the File dropdown menu or from a button in the control area on the right that appears when it’s not used for other purposes,
  • Image Processing, from the Analysis dropdown menu. If both input and output images are present, the two images can be rapidly switched for comparison.

Opening Image Statistics/Viewer brings up the following window. Brief instructions are shown below the image.

Image Statistics/Viewer opening window

The window shows the uncropped image in its original brightness (unless it was changed in a previous run). The file name is at the top and a control area is on the left. There are several things you can do prior to performing one of the image analyses.

  • You can downsample the image, which speeds up operations (especially cross-sections), with the Resize large images dropdown menu (upper-left). Settings 1. Do not resize or 2. Resize large images (imresize) are recommended. Downsampling is not recommend if noise or frequency spectrum are to be analyzed. Settings 3+ (resizing by skipping pixels) are not generally recommended. They have been used to diagnose some unusual demosaicing behavior.
  • You can zoom the image by clicking and dragging the mouse. You can restore it by pressing Full view (zoom out) or by double-clicking on the image (which doesn’t always work). This can make it easier to select small rectangular regions or limit the extent of cross-sections so, for example, you can examine behavior in deep shadows.
  • You can alter the appearance of the image— lighten it, increase saturation, tone map it, etc.— by clicking on the dropdown menu on the upper-left (that shows Original image above). Selections are shown on the right. Lightening the image (there are several methods) enables you to see shadow detail that is invisible in dark images. Altering the image appearance does not affect any of the numeric or graphic analysis results.
  • You can click one of the settings in the Show pixels < or > set level panel to display all pixels lower than a set value as blue and/or higher as red. Set the boxes to 0 for normal display.

Image appearance selections. They do not affect numeric results
Background shown in yellow when anything but Original image is selected.


Here is an image shown zoomed in and lightened where pixels with a level is under 4 (of 255) are shown in blue and over 252 are shown in red. The zoom remains unchanged while Cross section, Rectangle/Eyedropper and other operations are performed. Click Full view (zoom out) to view the entire image.

Image Statistics/Viewer, zoomed in, lightened, pixels under 4 (of 255) shown in blue

Cross sections

Pressing X-Cross section or Y-Cross section in the Cross section panel turns on cross-hairs for selecting a horizontal or vertical cross section. You simply need to click on a point in the image to select the desired cross section, which will be contained inside a pair of red lines (vertical, left of center, in the image below). Dragging the mouse has no effect in Cross section mode. Click on a point outside the image (but not on an active button or text) to turn off the cross-hairs and return to normal mode. Note that most buttons are disabled or made invisible when Cross section mode is active. You need to make settings prior to pressing X or Y-Cross section. (Or course you can always change settings.)

Image Statistics/Viewer, shown with Y (Vertical) Cross Section active, zoomed in.
This file had bit depth = 8. Files with bit depth = 16 tend to show more shadow detail.

Examining the vertical cross-section (with a logarithmic y-axis) enabled us to understand the behavior of this chart/camera combination in very dark areas, where it’s difficult to accomplish visually (we observed short-distance flare light that affected the results). The relatively wide line helped reduce the high noise in the deep shadow region.

Cross section settings  Several options are available for Cross section selection and plots.

  • The Line width dropdown menu lets you select the width of the Cross section. Settings are 1, 3, 5, 7, 9, 11, 13, 15, 21, or 25 pixels. Increasing the value from the default of 1 reduces the noise (by 3 dB every time the width is doubled). In typical cases line width should be set as large as possible within the bounds of the features of interest. The cross section width is contained within the two vertical or horizontal red lines.
  • The plot type dropdown menu lets you select (1) Plot R G B Y (equal emphasis), (2) Plot R G B Y (Y-emphasis) (default; recommended), or (3) Plot Y (luminance)-only.
  • The y (vertical axis) dropdown menu lets you select (1) Linear y-axis, (2) Log10 y-axis (unnormalized), or  (3) Log10 y-axis (normalized). The choice depends on the application: the above chart had logarithmic steps (defined by density units), so a Log10 axes was selected.

Rectangle/Eyedropper analysis

This analysis allows you to examine several properties of rectangles (selected by clicking and dragging the mouse) or square eyedropper regions (selected by a simple mouse click—no drag). You can examine basic statistics, which includes means, noise (without and with a nonuniformity correction), CIELAB L*a*b* values, etc. Or you can view a histogram or frequency spectrum of the region. Click outside the image to turn off the Rectangle/Eyedropper selection. The rectangle and results will remain visible until the next selection is made. Here are the settings.

Selection Measurement
Standard Statistics Rectangle position, size, and diagonal length
RGBY Mean, Noise (corrected and uncorrected), SNR, CIELAB L*a*b* values.
Note: RMS noise is the same as standard deviation (σ).
Histogram (Y)  full x-axis
Histogram (Y)  expand x-axis
Histogram (Y)+RGB  full x-axis
Histogram (Y)+RGB  expand x-axis
Display a histogram of log10(occurrences+1) for the luminance (Y) channel as a bar plot. Minimum region size = 250 pixels. Means are displayed as diamonds ◊ (for the Y-channel) and asterisks * (R, G, and B).
Full x-axes is minimum to maximum for the image (0 to 1, 255, or 65535, depending on the image source and bit depth).
Expand x-axis uses the upper and lower limits of the data to determine the x-axis. +RGB adds a stairs plot for the RGB channels to the histogram. Example below.
Fourier spectrum Linear (>100×100)
Fourier spectrum Log  (>100×100)
One-dimensional plot the 2D Fourier frequency spectrum of the region with linear or logarithmic x and y-axes. Minimum region size = 100×100 pixels. Example below.

Additional settings include

  • Color space, which is used for calculating CIELAB L*a*b* values. Most common color spaces are available: sRGB (the Windows/internet standard) is the default.
  • Eyedropper size. Settings are 1, 3, 5, 7, 9, 11, 13, 15, 21, or 25 (lengths of the sides in pixels). 


Rectangle/Eyedropper standard statistics: Crop of window showing rectangle

Histogram (Y)+RGB  expand x-axis:  Y (luminance) channel is a bar plot; RGB channels are stairs plots.
The change in noise when increasing Exposure index is highly visible in this plot.

Frequency spectrum with logarithmic axes of a Spilled Coins (Dead Leaves) chart
taken with a high-quality camera phone at 900 lux (bright light; low noise).

The original chart was designed to have a 1/f (scale-invariant) frequency spectrum, which would have a slope of -1 in the log-log plot. The image was not downsampled, i.e., Resize large images, which would affect results, was unchecked.

Other controls

Full view (zoom out) restores the original full image view: it zooms out the image (double-click often doesn’t work).

Data cursor lets you see a Data cursor when you click on the image. Example on right. Click on Data cursor (toggle button, which has a yellow background when active) to turn this function on or off. Right-click on the data cursor to remove it.

EXIF displays selected EXIF data (metadata contained in the file) below the image. For full EXIF data, use the File dropdown menu (Phil Harvey’s EXIFtool must be installed and selected).