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

Issue with black and white images #47

Open
DEVXIX opened this issue Nov 28, 2023 · 2 comments
Open

Issue with black and white images #47

DEVXIX opened this issue Nov 28, 2023 · 2 comments

Comments

@DEVXIX
Copy link

DEVXIX commented Nov 28, 2023

The colored images are working neatly, but the second you throw a black and white image it feels kind of scattered around and not accurate at all

@nemanja-m
Copy link
Owner

Hi @DEVXIX

The existing similarity function, optimized for three-channel colored images, calculates squared color differences across all color channels. For grayscale images, a different similarity function may yield better results.

You can find more details here: https://github.com/nemanja-m/gaps/blob/main/gaps/fitness.py

@dnapew
Copy link

dnapew commented Dec 24, 2023

Hi @DEVXIX

The existing similarity function, optimized for three-channel colored images, calculates squared color differences across all color channels. For grayscale images, a different similarity function may yield better results.

You can find more details here: https://github.com/nemanja-m/gaps/blob/main/gaps/fitness.py

It's still do them pretty hard with pages with small details or black and white can you recommend doing something to make it better

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

No branches or pull requests

3 participants