How can i find out a color's dominant wavelength? #710
Answered
by
Ron024
Edwardlin-zlt
asked this question in
Q&A
Replies: 4 comments
-
Yes, please see dominant wavelength.
<https://colour.readthedocs.io/en/latest/generated/colour.dominant_wavelength.html#colour.dominant_wavelength>
…On Tue, Feb 20, 2018 at 8:20 AM, Edward Amons ***@***.***> wrote:
since I've got a color's CIE-XYZ coordinate, and I try to find out its
dominant wavelength.
can I achieve that by this module?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#386>, or mute the thread
<https://github.com/notifications/unsubscribe-auth/AB1UgovdUNHN9rWf8J8JA8-ZzKFb-Kxuks5tWsaHgaJpZM4SL8D_>
.
|
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
KelSolaar
-
Hi @Edwardlin-zlt, Yes, as @Ron024 said this is performed with the definition he linked. Typical usage is as follows: >>> import colour
>>> xy = [0.26415, 0.37770]
>>> xy_n = [0.31270, 0.32900]
>>> colour.dominant_wavelength(xy, xy_n)
(array(504.0),
array([ 0.00369694, 0.63895775]),
array([ 0.00369694, 0.63895775])) |
Beta Was this translation helpful? Give feedback.
0 replies
-
Thanks~ |
Beta Was this translation helpful? Give feedback.
0 replies
-
Cheers and you are welcome @Edwardlin-zlt ! |
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
-
since I've got a color's CIE-XYZ coordinate, and I try to find out its dominant wavelength.
can I achieve that by this module?
Beta Was this translation helpful? Give feedback.
All reactions