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