Skip to content

ImageProcessing-ElectronicPublications/stb-image-metrics-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 

Repository files navigation

This utility compares two graphics files based on metrics.

Demo of stb-image-metrics.

Metrics

Origin and Compare:

origin compare

Metrcics:

stbimmetrics lena.png lena.quant444.png lena.quant444.psnr.png 
Load: lena.png
image: 256x256:3
Load: lena.quant444.png
image: 256x256:3
type: psnr
metric: 18.663233
Save png: lena.quant444.psnr.png

RGB mode:

Name Image metric Value UM
MSE metric 0.013604 0.208771
PSNR metric 18.663233 0.470890
SDSNR metric 13.888971 0.454668
Corelation metric 0.953666 0.285007
SSIM metric 0.618509 0.050606
VIFP1 metric 0.170903 0.053111
SMALLFRY metric 83.753342 0.341786
SHARPENBAD metric 0.389942 0.138531
NHW-C metric 0.145290 0.422748
NHW-N metric 0.072673 0.550836
NHW-R metric 0.116387 0.381794

YCbCr mode:

Name Image metric Value UM
MSE metric 0.006030 0.255863
PSNR metric 22.196735 0.513536
SDSNR metric 21.873943 0.507061
Corelation metric 0.951516 0.278486
SSIM metric 0.608033 0.046795
VIFP1 metric 0.227644 0.094781
SMALLFRY metric 85.867256 0.385938
SHARPENBAD metric 0.371371 0.125152
NHW-C metric 0.091878 0.474065
NHW-N metric 0.075381 0.545821
NHW-R metric 0.078292 0.421576