-
>>> from colour import delta_E
>>> a = [100.00000000, 21.57210357, 272.22819350]
>>> b = [100.00000000, 426.67945353, 72.39590835]
>>> delta_E(a, b, method='CIE 1976')
451.71330197359117
>>> delta_E(a, b, method='CAM16-UCS')
451.71330197359117 |
Beta Was this translation helpful? Give feedback.
Answered by
KelSolaar
Jun 28, 2019
Replies: 2 comments
-
Hi @senyai, I know it is confusing but both methods are indeed using Euclidean distance under the hood, however, the inputs should be different: You cannot use a Lab colour with CAM16-UCS but a
At some point, I will roll the power values of Huang et al. (2015) as described in #370 and the result will be different even with the same input. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
KelSolaar
-
Closing this one for now @senyai, cheers :) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi @senyai,
I know it is confusing but both methods are indeed using Euclidean distance under the hood, however, the inputs should be different: You cannot use a Lab colour with CAM16-UCS but a
J'a'b'
array from the CAM16 CAM:At some point, I will roll the power values of Huang et al. (2015) as described in #370 and the result will be different even with the same input.