home *** CD-ROM | disk | FTP | other *** search
/ The Datafile PD-CD 3 / PDCD_3.iso / utilities / utilss / sprtools / docs / spr_diff < prev    next >
Text File  |  1995-03-10  |  2KB  |  76 lines

  1. spr_diff
  2. ========
  3.  
  4. Version 1.00 (20-Oct-1993)
  5. SPRtools block 1c release.
  6. (C) 1993,4 DEEJ Technology PLC
  7.  
  8. Features
  9. --------
  10. Compares two sprite files.
  11. Generates some statistics which can be used to gauge the difference between
  12. sprites. Can be use to compare an image before and after the processing to
  13. see how well it compares to the original.
  14.  
  15. Restrictions
  16. ------------
  17. The sprite files must contain sprites of the same size (bpp can be different).
  18. Only the first sprite in each file is recognised.
  19.  
  20. Syntax
  21. ------
  22. spr_diff <sprite file 1> <sprite file 2>
  23.  
  24. Results are printed on stdout, progress or errors on stderr.
  25.  
  26. Info
  27. ----
  28. Information returned using example of pixel R1,G1,B1 from first image and
  29. R2,G2,B2 from second. Red, green and blue weighting are 3,6 and 1 respectively.
  30.  
  31. Least Squares difference   : (((R1-R2)^2)*red_weight   +
  32.                               ((G1-G2)^2)*green_weight +
  33.                   ((B1-B2)^2)*blue_weight) / sum_of_weights
  34. accumulated for the whole image and given as value and percentage of the
  35. total least squares sum of the images.
  36.  
  37. Least Squares diff average : as above but given as the average difference
  38.                  per pixel 0-255 and as a percentage.
  39.  
  40. Intensity difference       : (abs(R1-R2)*red_weight   +
  41.                   abs(G1-G2)*green_weight +
  42.                   abs(B1-B2)*blue_weight) / sum_of_weights
  43. accumulated for the whole image and given as value and percentage of the
  44. intensity sum of the images. 
  45.  
  46. Intensity diff average     : as above but given as the average difference
  47.                  per pixel 0-255 and as a percentage.
  48.  
  49. Chrominance difference     : (abs(R1-R2) + abs(G1-G2) + abs(B1-B2))/3
  50. accumulated for the whole image and given as value and percentage of the
  51. chrominance sum of the images. 
  52.  
  53. Chrominance diff average   : as above but given as the average difference
  54.                              per pixel 0-255 and as a percentage.
  55.  
  56. Red difference             : abs(R1-R2)
  57. accumulated for the whole image and given as value and percentage of the
  58. red sum of the images. 
  59.  
  60. Green difference           : abs(G1-G2)
  61. accumulated for the whole image and given as value and percentage of the
  62. green sum of the images.
  63.  
  64. Blue difference            : abs(B1-B2)
  65. accumulated for the whole image and given as value and percentage of the
  66. blue sum of the images.
  67.  
  68. Accumulated difference     : (R1-R2)+(G1-G2)+(B1-B2)
  69. sum of component differences given as a value and percentage of the sum
  70. of the components of the images.
  71.  
  72. See also spr_info.
  73.  
  74. !ComndCTRL configuration file: spr_diff
  75.  
  76.