jterrace / pyssim

A Python module for computing the Structural Similarity Image Metric (SSIM)
MIT License
339 stars 62 forks source link

Values reported #4

Open jossi opened 10 years ago

jossi commented 10 years ago

Using other tools such as Avisynth with the SIMM plugin we get different values

Car_ImageWarp.png / Car_source.png SSIM: 0.9829

pyssim reports 0.987784

Using AviSynth coupled with a few plugins

AviSynth 2.5.8 from http://sourceforge.net/projects/avisynth2/files/AviSynth%202.5/AviSynth%202.5.8/Avisynth_258.exe/download Latest ffms2 plugin from https://github.com/FFMS/ffms2/releases SSIM plugin from http://forum.doom9.org/showthread.php?p=370323

jterrace commented 10 years ago

I wonder if that could be floating point error. pyssim is using 32-bit floats. Any idea if Avisynth is using 64-bit floats?

jterrace commented 10 years ago

Looks like they're using doubles. Can you post those two images here and I'll see if switching to numpy.float64 matches their values?