You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have been using the library for SSIM in C# http://www.lomont.org/Software/Misc/SSIM/SSIM.html. Now I want to use this more advanced library that handles both SSIM and CW-SSIM. I have a windows 10 machine with python 2.7, with numpy and scipy. However, by doing some regression, I notice quite a critical difference. For two images that I have been using in my research (solar sunspot two dimensional neural network forecasting), the c# code gives me 0.683600449, while the python one give me 1. Clearly the pictures are different, so it should give SSIM<1.
I commented out these two lines from ssim/ssimlib.py:
self.img_gray, self.img_alpha = to_grayscale(self.img)
# if self.img_alpha is not None:
# self.img_gray[self.img_alpha == 255] = 0
Now it outputs 0.8907.
If you construct SSIMImage object with these two lines, the image arrays in grayscale based on the images you supplied are 0s everywhere. Not sure about the reasons yet.
Hi
I have been using the library for SSIM in C# http://www.lomont.org/Software/Misc/SSIM/SSIM.html. Now I want to use this more advanced library that handles both SSIM and CW-SSIM. I have a windows 10 machine with python 2.7, with numpy and scipy. However, by doing some regression, I notice quite a critical difference. For two images that I have been using in my research (solar sunspot two dimensional neural network forecasting), the c# code gives me 0.683600449, while the python one give me 1. Clearly the pictures are different, so it should give SSIM<1.
I also tested with option --cw and that seems to work and gives me
I am using:
Windows 10
numpy (1.11.1+mkl)
Pillow (3.3.1)
pip (8.1.1)
pyssim (0.3)
scipy (0.18.0)
setuptools (20.10.1)
I have attached the two images to allow you guys to debug.
Any idea what I am doing wrong or is there any issue?
Thanks
Eurico Covas
The text was updated successfully, but these errors were encountered: