You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

28 lines
341 B

#
# Sample: White point from temperature
#
from lcms import *
Temp = input("Temperature <20>K? ")
WhitexyY = cmsCIExyY(0, 0, 1)
cmsWhitePointFromTemp(Temp, WhitexyY)
WhiteXYZ = cmsCIEXYZ(0, 0, 0)
cmsxyY2XYZ(WhiteXYZ, WhitexyY)
print WhitexyY
print WhiteXYZ
Lab = cmsCIELab(0, 0, 0)
cmsXYZ2Lab(None, Lab, WhiteXYZ)
print "D50", Lab