Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

versionzero/dssim

Open more actions menu
 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#RGBA Structural Similarity

This tool computes (dis)similarity between two PNG images using (my approximation of) algorithms approximating human vision.

Comparison is done in L*a*b* color space† using SSIM algorithm.

It's a rewrite of Rabah Mehdi's C++ implementation:

  • No C++ (C99)
  • No OpenCV dependency (only libpng)
  • Supports alpha channel
  • Supports gamma correction

Values output are not comparable with other tools. This tool is meant to be fast, and I'm not giving any guarantees about correctness (or speed :)

†) conversion assumes D65 white point and uses gamma from PNG file, defaulting to 2.2.

##Usage

dssim file.png file-modified.png

Will output something like 0.2341. 0 means exactly the same image, >0 (unbounded) is amount of difference.

dssim file.png file-modified.png totally-rad-visualisation.png

Will also output map of differences. Transparent areas will have funky pattern added.

About

DSSIM C implementation

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
Morty Proxy This is a proxified and sanitized view of the page, visit original site.