You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+14-10Lines changed: 14 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -1,8 +1,6 @@
1
1
# RGBA Structural Similarity
2
2
3
-
This tool computes (dis)similarity between two or more PNG images using an algorithm approximating human vision.
4
-
5
-
Comparison is done using a derivation of [the SSIM algorithm](https://ece.uwaterloo.ca/~z70wang/research/ssim/).
3
+
This tool computes (dis)similarity between two or more images using an algorithm approximating human vision. Comparison is done using a variant of [the SSIM algorithm](https://ece.uwaterloo.ca/~z70wang/research/ssim/).
6
4
7
5
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.
8
6
@@ -11,8 +9,10 @@ The value returned is 1/SSIM-1, where 0 means identical image, and >0 (unbounded
11
9
* Improved algorithm
12
10
* Compares at multiple weighed resolutions, and scaling is done in linear-light RGB. It's sensitive to distortions of various sizes and blends colors correctly to detect e.g. chroma subsampling errors.
13
11
* Uses L\*a\*b\* color space for the SSIM algorithm. It measures brightness and color much better than metrics from average of RGB channels.
14
-
* Uses mean absolute deviation for pooling of SSIM values.
15
12
* Supports alpha channel.
13
+
* Supports images with color profiles.
14
+
* Takes advantage of multi-core CPUs.
15
+
* Can be used as a library in C, Rust, and WASM.
16
16
* No OpenCV or MATLAB needed.
17
17
18
18
## Usage
@@ -31,7 +31,7 @@ You can save an image visualising the difference between the files:
31
31
32
32
It's also usable [as a library](https://docs.rs/dssim).
33
33
34
-
Please be careful about color profiles in the images. Different profiles, or lack of support for profiles, can make images appear different even when the pixels are the same.
34
+
Please be mindful about color profiles in the images. Different profiles, or lack of support for profiles in other tools, can make images appear different even when the pixels are the same.
35
35
36
36
### Interpreting the values
37
37
@@ -44,12 +44,16 @@ If you're comparing two different image compression codecs, then ensure you eith
44
44
45
45
[More about benchmarking image compression](https://kornel.ski/faircomparison).
46
46
47
-
When you quote results, please include DSSIM version, since the scale has changed between versions.
47
+
When you quote results, please include the DSSIM version. The scale has changed between versions.
48
48
The version is printed when you run `dssim -h`.
49
49
50
-
## Build or Download
50
+
## Download
51
+
52
+
[Download from releases page](https://github.com/kornelski/dssim/releases). It's also available in Mac Homebrew and Ubuntu Snaps.
53
+
54
+
### Build from source
51
55
52
-
You need Rust 1.48 or later.
56
+
You'll need [Rust 1.48](https://rustup.rs) or later. Clone the repo and run:
53
57
54
58
cargo build --release
55
59
@@ -80,7 +84,7 @@ DSSIM is dual-licensed under [AGPL](LICENSE) or [commercial](https://supso.org/p
80
84
81
85
* The comparison is done on multiple weighed scales (based on IWSSIM) to measure features of different sizes. A single-scale SSIM is biased towards differences smaller than its gaussian kernel.
82
86
* Scaling is done in linear-light RGB to model physical effects of viewing distance/lenses. Scaling in sRGB or Lab would have incorrect gamma and mask distortions caused by chroma subsampling.
83
-
*ab channels of Lab are compared with lower spatial precision to simulate eyes' higher sensitivity to brightness than color changes.
87
+
*a/b channels of Lab are compared with lower spatial precision to simulate eyes' higher sensitivity to brightness than color changes.
84
88
* The lightness component of SSIM is ignored when comparing color channels.
85
-
* SSIM score is pooled using a combination of local maximums and global averages. You can get per-pixel SSIM from the API to implement custom pooling.
89
+
* SSIM score is pooled using mean absolute deviation. You can get per-pixel SSIM from the API to implement custom pooling.
0 commit comments