I hereby claim:
- I am kelsolaar on github.
- I am thomasmansencal (https://keybase.io/thomasmansencal) on keybase.
- I have a public key whose fingerprint is 2331 CA52 9DDA 0A42 6B76 37E1 502D 5DCA A231 FF22
To claim this, I am signing this object:
# https://github.com/colour-science/colour/blob/develop/colour/models/derivation.py#L158 | |
import colour | |
sRGB = colour.RGB_COLOURSPACES['sRGB'] | |
colour.RGB_luminance_equation(sRGB.primaries, sRGB.whitepoint) | |
# u'Y = 0.212636821677(R) + 0.715182981841(G) + 0.0721801964814(B)' |
Version 1 | |
From 0 1 | |
Length 1024 | |
Components 1 | |
{ | |
-0.358447488584475 | |
-0.015901280236606 | |
0.041176345334171 | |
0.074564615923278 | |
0.098253970904947 |
import numpy as np | |
import colour | |
xyY = np.asarray(colour.MUNSELL_COLOURS_REAL[2000][1]) | |
# Munsell Renotation System uses C illuminant. | |
# Luminance is in range [0-100], so we need to scale it | |
# back to [0-1]. | |
XYZ = colour.xyY_to_XYZ(xyY) | |
RGB = colour.XYZ_to_sRGB( |
P = np.array( | |
[[0.6650, 0.3220], | |
[0.2950, 0.6070], | |
[0.1500, 0.0600]]) | |
W = np.array([0.3127, 0.3290]) | |
NPM = colour.normalised_primary_matrix(P, W) | |
NPM_i = np.linalg.inv(NPM) |
import numpy as np | |
import matplotlib.pyplot as plt | |
w = 400 | |
h = 300 | |
def normalize(x): | |
x /= np.linalg.norm(x) | |
return x |
I hereby claim:
To claim this, I am signing this object: