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

Reproducability with scikit-image ssim #17

Open
MortenHannemose opened this issue Jan 18, 2019 · 3 comments
Open

Reproducability with scikit-image ssim #17

MortenHannemose opened this issue Jan 18, 2019 · 3 comments

Comments

@MortenHannemose
Copy link

It would be great if there was a flag to make the results identical to the output of compare_ssim from scikit image.
Their implementation uses no padding, but there's still a slight difference in my results, that I haven't found.

@veritas9872
Copy link

Hello. I would also like it if there were a comparison with skimage.compare_ssim. Could you include a unit test which asserts that the outputs are at least np.allclose with the outputs from skimage?

@ucalyptus
Copy link

Nice issue

@tmabraham
Copy link

The difference may be from the constants C1=(0.01)**2 and C2=(0.03)**2 which assume the range of pixel values is 0 to 1. If instead it is C1=(0.01*255)**2 and C2=(0.03*255)**2, along which removing padding, then the implementations match.

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

No branches or pull requests

4 participants