-
Notifications
You must be signed in to change notification settings - Fork 62
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
Always get a 1.0 value #3
Comments
Have you tried it with the test images? |
Working for me:
|
I am using 32-bit PNGs so maybe that is the problem? I will try with the test images |
bash-3.2$ pyssim test1-1.png test1-2.png that works. But not my images. |
Could you post your images? |
Note that the images are visually identical, but not bit-by-bit identical. Using a similarity index ImageMagik script I get an index of 0.99884 |
I see what's happening. Your images are RGBA and the alpha channel is all 255 values and all transparent pixels are ignored. |
Thanks for the prompt response. |
Converting the PNGs from 32-bit to 24-bit resolves it. $ pyssim Car_source.png Car_ImageWarp.png Thank you! |
I just looked up the PNG spec though and it says this:
So I'm thinking that we're using the wrong value for transparency. We should treat 0 as transparent and 255 as opaque. |
Indeed... Sent from my iPad
|
Closing this and opened #5 instead |
No matter what two images I use the SSIM returned is always 1.0
The text was updated successfully, but these errors were encountered: