Created
May 12, 2018 21:58
-
-
Save Unitoi01/9d65536e8d34468e14b69e8cb2ae3f35 to your computer and use it in GitHub Desktop.
Color Euclidean distance
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def colorDifference(r,g,b,r1,g1,b1): | |
red= abs((r-r1)**2) | |
blue= abs((b-b1)**2) | |
green= abs((g-g1)**2) | |
answer=math.sqrt(red+blue+green) | |
return answer; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment