Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide SSIM image (structural similarity index measure) to user #262

Open
garywill opened this issue Mar 1, 2024 · 1 comment
Open

Comments

@garywill
Copy link
Contributor

garywill commented Mar 1, 2024

Is your feature request related to a problem? Please describe.
Users are always uncertain about how big the difference is between the image before and after compression, how much the photo quality has decreased, and whether it has affected the preservation of key information in the photo.

Describe the solution you'd like
Compute difference by SSIM algorithm (or something else) and provide SSIM image to user.
ssim image example
gif

Describe alternatives you've considered
Butteraugli heatmap is also an alternative. But Butteraugli seems slow.

Additional context
The example images are from https://stackoverflow.com/questions/56183201/detect-and-visualize-differences-between-two-images-with-opencv-python

SSIM https://en.wikipedia.org/wiki/Structural_similarity_index_measure

Butteraugli estimates the psychovisual difference between two images https://github.com/google/butteraugli

Guetzli implements butteraugli. Guetzli is a command-line app. open-source . Windows, macOS, and Linux versions of Guetzli are directly available https://github.com/google/guetzli

@Lymphatus
Copy link
Owner

That's an interesting one. Since the core library of Caesium is in Rust I was using DSSIM in my internal tests, but it only outputs a value and not the diff image which might not be ideal.
I will experiment a bit with a couple of libraries. I would not use butteraugli though, because it's very slow and the project is archived.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants