Skip to content

Fix the color difference comparison's handling of alpha#1639

Merged
cameronwhite merged 1 commit into
masterfrom
fix/color-difference
Jul 27, 2025
Merged

Fix the color difference comparison's handling of alpha#1639
cameronwhite merged 1 commit into
masterfrom
fix/color-difference

Conversation

@cameronwhite

Copy link
Copy Markdown
Member
  • If ColorBgra is using premultiplied alpha, this doesn't need to scale by alpha again and can just compute a Euclidean distance as-is

  • Remove unused ColorDifferenceSquared() method

Bug: #1553

- If ColorBgra is using premultiplied alpha, this doesn't need to scale by alpha again and can just compute a Euclidean distance as-is

- Remove unused ColorDifferenceSquared() method

Bug: #1553
@cameronwhite cameronwhite merged commit fce85b5 into master Jul 27, 2025
11 checks passed
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.

1 participant