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

[BUG] Similar images are not matched #246

Open
MightyEagle82 opened this issue Jan 4, 2024 · 1 comment
Open

[BUG] Similar images are not matched #246

MightyEagle82 opened this issue Jan 4, 2024 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@MightyEagle82
Copy link

MightyEagle82 commented Jan 4, 2024

Describe the bug
There are 2 images to compare:

  1. test_with_alpha.png - reference image
  2. bc1a_decoded.png - image decoded from DDS file that was produced from the reference image

They are technically similar but the library don't think so (even when pixelToleranceLevel = 0.99 and threshold = 50).

bc1a_result.png - result of comparison

What am I doing wrong?

test_with_alpha.png

test_with_alpha

bc1a_decoded.png

bc1a_decoded

bc1a_result.png

bc1a_result

@MightyEagle82 MightyEagle82 added the bug Something isn't working label Jan 4, 2024
@MightyEagle82 MightyEagle82 changed the title [BUG] [BUG] Similar images are not matched Jan 4, 2024
@EPadronU
Copy link

EPadronU commented Aug 20, 2024

Even at a glance, the images are different:

  • no blurring (hard edges) vs blurring
  • more contrast (less transparency) vs less contrast (more transparency)

image

Instead of looking for equality, for cases like this one you could look for similarity.

In my humble opinion, this is not a bug.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants