Skip to content

Conversation

@abhinaukumar
Copy link

Fixes #229 and another minor error in FastSSIM.

Comment on lines +124 to +125
w = (w >> 1) << 1;
h = (h >> 1) << 1;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do you use bit shifting and not bitwise and operation here? I would expect this operation to give the same result and be simpler to read:

w &= ~1

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

Successfully merging this pull request may close these issues.

Memory leak in FastSSIM when image dimensions are not multiples of 32

2 participants