Skip to content

Commit 2f3c156

Browse files
committed
Don't average that!
1 parent 71cdd14 commit 2f3c156

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

README.md

+13-2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
# RGBA Structural Similarity
22

3-
This tool computes (dis)similarity between two (or more) PNG images using algorithm approximating human vision.
3+
This tool computes (dis)similarity between two or more PNG images using an algorithm approximating human vision.
44

55
Comparison is done using [the SSIM algorithm](https://ece.uwaterloo.ca/~z70wang/research/ssim/) (based on [Rabah Mehdi's implementation](http://mehdi.rabah.free.fr/SSIM/)) at multiple weighed resolutions.
66

7-
The value returned is 1/SSIM-1, where 0 means identical image, and >0 (unbounded) is amount of difference. Values are not directly comparable with other tools.
7+
The value returned is 1/SSIM-1, where 0 means identical image, and >0 (unbounded) is amount of difference. Values are not directly comparable with other tools. [See below](#interpreting-the-values) on interpreting the values.
88

99
## Features
1010

@@ -28,6 +28,17 @@ You can save an image visualising the difference between the files:
2828

2929
The `dssim.c` file is also usable as a C library.
3030

31+
### Interpreting the values
32+
33+
The amount of difference goes from 0 to infinity. It's not a percentage.
34+
35+
If you're comparing two different image compression codecs, then ensure you either:
36+
37+
* compress images to the same file size, and then use DSSIM to compare which one is closests to the original, or
38+
* compress images to the same DSSIM value, and compare file sizes to see how much file size gain each option gives.
39+
40+
[More about benchmarking image compression](https://pornel.net/faircomparison).
41+
3142
## Build or Download
3243

3344
You need libpng, zlib, pkg-config and make

0 commit comments

Comments
 (0)