home *** CD-ROM | disk | FTP | other *** search
/ Magazyn Amiga Shareware Floppies / ma01.dms / ma01.adf / wasp / wasper.doc < prev    next >
Text File  |  1991-11-14  |  1KB  |  24 lines

  1. Program: Wasper
  2. Author:  Steven Reiz
  3. Purpose: Computes the difference between two srgr files.
  4. Usage:   wasper one-srgr-filename another-srgr-filename
  5.  
  6. Wasper can be used to check how big the difference is between
  7. the original of a picture, and the converted version.
  8. In this way, several wasp conversion algorithms can be compared,
  9. or wasp can be compared with other conversion programs.
  10.     Before wasper can do its work, both picture files must
  11. be converted to srgr format. This can be done by wasp,
  12. with the -srgr option. The srgr format is uncompressed 12-bits rgb.
  13. Most gif pictures, and all iff pictures except 24-bits iff can be
  14. converted to srgr format without introducing errors.
  15.     Wasper computes, for every pixel of each file, the absolute
  16. difference of the red, the green, and the blue component. It prints
  17. two values: the sum of all these absolute differences (3*x*y of them
  18. for a picture of x*y pixels), and the sum of the squares of each of
  19. these 3*x*y differences.
  20.     In general, bigger values mean that the difference is bigger.
  21. If the error and error2 value are nearly equal most pixel differences
  22. are small, if the error2 value is much bigger than the error value,
  23. most pixel differences are large.
  24.