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. The lines used to take the cross sections have an 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 normalized to 1, Mean values *255, 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 in the image file
You may crop or lighten the image to view details you might otherwise miss. Lightening the image does not affect the numeric results.
Image Statistics/Viewer can be opened from
- the Utilities dropdown menu or the Im Stats button next to the Im Proc (Image Processing) button on the lower-left 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, two images are entered. They can be rapidly switched for comparison.
Opening Image Statistics/Viewer brings up the following window. Brief instructions are shown below the image.
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 more detailed analyses.
Here is an image shown zoomed in and lightened with pixels whose level is under 100 shown in blue. The zoom will remain unchanged while Cross section, Rectangle/Eyedropper and other operations are performed. Click Full view (zoom out) to view the entire image.
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.)
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.
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.
|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.
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).
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.
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).