jterrace / pyssim

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

3x Speed-up #1

Closed w-m closed 11 years ago

w-m commented 11 years ago

These changes result in a ~3x performance improvement (on my machine) without any changes to the API or the results.

jterrace commented 11 years ago

This looks cool! Quick question: did you verify that you get the same results with the two sets of test images in the repo?

w-m commented 11 years ago

I made sure that he results are exactly the same for the two pairs of test images of the repo - when called without further parameters.

Since I fixed what I believe to be a bug in the kernel creation, result values will differ if gaussian_kernel_width is set to something other than 11.

jterrace commented 11 years ago

The results are the same on the test images when I tried it and it runs in half the time. Nice!

jterrace commented 11 years ago

Actually, would you mind adding yourself to the AUTHORS file?