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
Comparing two images I get NaN as the returned MS-SSIM value unless the width and height of them is divisible by the window size.
However SSIM often returns correctly. Inspecting it appears one of the SSIM comparisons always returns NaN and by multiplying them together the overall becomes NaN.
I have also noticed the test browser incorrectly specifies image width, where it uses the default width instead of canvas.width:
Comparing two images I get
NaN
as the returned MS-SSIM value unless the width and height of them is divisible by the window size.However SSIM often returns correctly. Inspecting it appears one of the SSIM comparisons always returns
NaN
and by multiplying them together the overall becomesNaN
.I have also noticed the test browser incorrectly specifies image width, where it uses the default width instead of
canvas.width
:image-ms-ssim-js/test/browser_test.html
Line 187 in c47ada6
The text was updated successfully, but these errors were encountered: