home *** CD-ROM | disk | FTP | other *** search
- spr_diff
- ========
-
- Version 1.00 (20-Oct-1993)
- SPRtools block 1c release.
- (C) 1993,4 DEEJ Technology PLC
-
- Features
- --------
- Compares two sprite files.
- Generates some statistics which can be used to gauge the difference between
- sprites. Can be use to compare an image before and after the processing to
- see how well it compares to the original.
-
- Restrictions
- ------------
- The sprite files must contain sprites of the same size (bpp can be different).
- Only the first sprite in each file is recognised.
-
- Syntax
- ------
- spr_diff <sprite file 1> <sprite file 2>
-
- Results are printed on stdout, progress or errors on stderr.
-
- Info
- ----
- Information returned using example of pixel R1,G1,B1 from first image and
- R2,G2,B2 from second. Red, green and blue weighting are 3,6 and 1 respectively.
-
- Least Squares difference : (((R1-R2)^2)*red_weight +
- ((G1-G2)^2)*green_weight +
- ((B1-B2)^2)*blue_weight) / sum_of_weights
- accumulated for the whole image and given as value and percentage of the
- total least squares sum of the images.
-
- Least Squares diff average : as above but given as the average difference
- per pixel 0-255 and as a percentage.
-
- Intensity difference : (abs(R1-R2)*red_weight +
- abs(G1-G2)*green_weight +
- abs(B1-B2)*blue_weight) / sum_of_weights
- accumulated for the whole image and given as value and percentage of the
- intensity sum of the images.
-
- Intensity diff average : as above but given as the average difference
- per pixel 0-255 and as a percentage.
-
- Chrominance difference : (abs(R1-R2) + abs(G1-G2) + abs(B1-B2))/3
- accumulated for the whole image and given as value and percentage of the
- chrominance sum of the images.
-
- Chrominance diff average : as above but given as the average difference
- per pixel 0-255 and as a percentage.
-
- Red difference : abs(R1-R2)
- accumulated for the whole image and given as value and percentage of the
- red sum of the images.
-
- Green difference : abs(G1-G2)
- accumulated for the whole image and given as value and percentage of the
- green sum of the images.
-
- Blue difference : abs(B1-B2)
- accumulated for the whole image and given as value and percentage of the
- blue sum of the images.
-
- Accumulated difference : (R1-R2)+(G1-G2)+(B1-B2)
- sum of component differences given as a value and percentage of the sum
- of the components of the images.
-
- See also spr_info.
-
- !ComndCTRL configuration file: spr_diff
-
-