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

Add shortcut in euclidean_distance_rgba #17

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

Conversation

lencioni
Copy link
Contributor

If the pixels are the same, the Euclidean distance will always be 0.0.
We can save a bunch of function calls and maths if we take this
shortcut.

Matching PR submitted to ChunkyPNG at
wvanbergen/chunky_png#113

If the pixels are the same, the Euclidean distance will always be 0.0.
We can save a bunch of function calls and maths if we take this
shortcut.

Matching PR submitted to ChunkyPNG at
wvanbergen/chunky_png#113
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