X Tutup
Skip to content

Palette color distance definitions#6362

Merged
bluegr merged 2 commits intoscummvm:masterfrom
OMGPizzaGuy:color-difference
Dec 26, 2024
Merged

Palette color distance definitions#6362
bluegr merged 2 commits intoscummvm:masterfrom
OMGPizzaGuy:color-difference

Conversation

@OMGPizzaGuy
Copy link
Member

These changes define the methods currently used for palette color matching. I have no immediate plans to support additional methods.

For reference: https://en.wikipedia.org/wiki/Color_difference

@bluegr
Copy link
Member

bluegr commented Dec 25, 2024

Do you have a use case for these methods? Can you show the difference when using each method visually (e.g. by using a reference image)?

@OMGPizzaGuy
Copy link
Member Author

Do you have a use case for these methods? Can you show the difference when using each method visually (e.g. by using a reference image)?

I do not have examples. This is clarification of the existing methods - "redmean" is the existing default, and "naive" only used in the Scumm engine.

I could try to add something to testbed to show and image reduced to RGB 332 palette with each method.

@mduggan
Copy link
Contributor

mduggan commented Dec 25, 2024

I used this function by chance in something I wrote yesterday, so I appreciate the clarification of what useNaiveAlg actually means :)

@bluegr
Copy link
Member

bluegr commented Dec 26, 2024

Thanks!

@bluegr bluegr merged commit 3fd3f18 into scummvm:master Dec 26, 2024
@OMGPizzaGuy OMGPizzaGuy deleted the color-difference branch July 1, 2025 01:50
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.

3 participants

X Tutup