33This utility compares two graphics files based on metrics.
44
55Includes metrics:
6+
67- MSE / MAX^2, MAX = 255
78- PSNR
8- - NHW neatness
9- - NHW convolutional
10- - NHW relative
9+ - [ SMALLFRY] ( https://github.com/dwbuiten/smallfry )
10+ - [ SHARPENBAD] ( https://github.com/ImageProcessing-ElectronicPublications/libsmallfry )
11+ - [ Correlation] ( https://github.com/ImageProcessing-ElectronicPublications/libsmallfry )
12+ - [ NHW neatness] ( https://github.com/rcanut/NHW_Neatness_Metrics )
13+ - [ NHW convolutional] ( https://github.com/rcanut/NHW_Neatness_Metrics/issues/1 )
14+ - [ NHW relative] ( https://github.com/rcanut/NHW_Neatness_Metrics/issues/1 )
1115
1216The value of MSE metrics is from 0.0 (minimum difference) to 1.0 (maximum difference).
1317
1418The value of PSNR metrics is from 1.0 (maximum difference) to inf.
1519
20+ The value of SHARPENBAD metrics is from 1.0 (minimum difference) to -1.0 (maximum difference).
21+
22+ The value of Correlation metrics is from 1.0 (minimum difference) to 0.0 (maximum difference).
23+
1624The value of NHW metrics is from 0.0 (minimum difference) to 1.0 (maximum difference) ([ origin project code] ( https://github.com/rcanut/NHW_Neatness_Metrics/issues/1 ) ).
1725
1826## build
@@ -57,8 +65,9 @@ stbnhwmetrics ${IMAGE_ORIG_PATH} ${IMAGE_COMPARE_PATH} [metric.out.png]
5765## structure
5866
5967- ` dependencies.c ` - API [ stb] ( https://github.com/nothings/stb.git )
60- - ` metricsnhw.h ` - NHW metrics ( [ origin project code ] ( https://github.com/rcanut/NHW_Neatness_Metrics/issues/1 ) )
68+ - ` metricsnhw.h ` - [ NHW metrics] ( https://github.com/rcanut/NHW_Neatness_Metrics/issues/1 )
6169- ` metricspsnr.h ` - metrics PSNR and MSE
70+ - ` smallfry.h ` - metrics [ SMALLFRY, SHARPENBAD and Correlation] ( https://github.com/ImageProcessing-ElectronicPublications/libsmallfry )
6271- ` stb/ ` - [ stb] ( https://github.com/nothings/stb.git )
6372- ` stbimmetrics.c ` - CLI program.
6473- ` ycbcr.h ` - YCbCr color space.
@@ -85,6 +94,9 @@ Save png: lena.quant444.psnr.png
8594
8695* ![ metric] ( https://raw.githubusercontent.com/ImageProcessing-ElectronicPublications/stb-image-metrics-demo/main/images/lena.quant444.mse.png ) MSE: 0.013604
8796* ![ metric] ( https://raw.githubusercontent.com/ImageProcessing-ElectronicPublications/stb-image-metrics-demo/main/images/lena.quant444.psnr.png ) PSNR: 18.663233
97+ * ![ metric] ( https://raw.githubusercontent.com/ImageProcessing-ElectronicPublications/stb-image-metrics-demo/main/images/lena.quant444.smallfry.png ) SMALLFRY: 83.753342
98+ * ![ metric] ( https://raw.githubusercontent.com/ImageProcessing-ElectronicPublications/stb-image-metrics-demo/main/images/lena.quant444.shbad.png ) SHARPENBAD: -0.213132
99+ * ![ metric] ( https://raw.githubusercontent.com/ImageProcessing-ElectronicPublications/stb-image-metrics-demo/main/images/lena.quant444.cor.png ) Corelation: 0.953666
88100* ![ metric] ( https://raw.githubusercontent.com/ImageProcessing-ElectronicPublications/stb-image-metrics-demo/main/images/lena.quant444.nhw-n.png ) NHW-N: 0.072673
89101* ![ metric] ( https://raw.githubusercontent.com/ImageProcessing-ElectronicPublications/stb-image-metrics-demo/main/images/lena.quant444.nhw-c.png ) NHW-C: 0.145290
90102* ![ metric] ( https://raw.githubusercontent.com/ImageProcessing-ElectronicPublications/stb-image-metrics-demo/main/images/lena.quant444.nhw-r.png ) NHW-R: 0.116387
0 commit comments