Image Summary

(Download Now)

This program summarizes image files (currently only standard 24 bit Windows BMPs, and JPGs). This makes it useful to compare images that are similar to each other for qualities such as contrast or focus. E.g. In a set of images of the same subject under the same lighting conditions, the image with the greatest sum of square of differences value is likely to be the one most in focus.

Output information includes:

luminance mode normalize by area
filename
width
height
sum of pixels X X
sum of differences between pixels X X
sum of square of differences between pixels X X

The windows versions available for download are built with libjpeg-turbo, and so require MMX/SSE.

Usage

Running imgsum.exe with less than 2 arguments prints the "help" message:

options follow the filename; results are returned in the order of the options:

    file: Filename of image
   width: Width of image
  height: Height of image
     sum: Sum of all pixel values
     sdx: Sum of differences - x-axis
     sdy: Sum of differences - y-axis
    sdxy: Sum of differences - x-axis and y-axis
    ssdx: Sum of square of differences - x-axis
    ssdy: Sum of square of differences - y-axis
   ssdxy: Sum of square of differences - x-axis and y-axis

for all options except file, width, and height, prepend with:

       a: value / area
       l: use luminance weighting instead of RGB average
      la: luminance value / area

E.g. running the following command:

imgsum.exe sample.jpg file width height sdx lasum

will produce the following output:

sample.jpg <width of the image> <height of the image> <sum of the difference between pixels along the x-axis only> <average luminance (of the entire image)>

- Samson

Downloads

The available binaries are for Windows only (tested on XP).