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

Fixed memory leak and calculation error in luminance term calculation #230

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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