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.
38 lines
444 B
38 lines
444 B
4 years ago
|
|
||
|
#
|
||
|
# Sample: CIECAM02 appearance model
|
||
|
#
|
||
|
|
||
|
from lcms import *
|
||
|
|
||
|
|
||
|
Wt = cmsCIEXYZ()
|
||
|
|
||
|
Wt.X = 95.05
|
||
|
Wt.Y = 100
|
||
|
Wt.Z = 108.88
|
||
|
|
||
|
vc = cmsViewingConditions(Wt, 20, 20, AVG_SURROUND, 0.997)
|
||
|
|
||
|
cam = cmsCIECAM02Init(vc)
|
||
|
|
||
|
JCh = cmsJCh()
|
||
|
XYZ = cmsCIEXYZ()
|
||
|
|
||
|
XYZ.X = 19.01
|
||
|
XYZ.Y = 20
|
||
|
XYZ.Z = 21.78
|
||
|
|
||
|
print XYZ
|
||
|
|
||
|
cmsCIECAM02Forward(cam, XYZ, JCh)
|
||
|
|
||
|
print JCh
|
||
|
|
||
|
cmsCIECAM02Reverse(cam, JCh, XYZ)
|
||
|
print XYZ
|
||
|
|
||
|
cmsCIECAM02Done(cam)
|
||
|
|
||
|
|