summaryrefslogtreecommitdiffstats
path: root/debian/lcms/lcms-1.19.dfsg2/python/testbed/cam97.py
diff options
context:
space:
mode:
Diffstat (limited to 'debian/lcms/lcms-1.19.dfsg2/python/testbed/cam97.py')
-rwxr-xr-xdebian/lcms/lcms-1.19.dfsg2/python/testbed/cam97.py37
1 files changed, 37 insertions, 0 deletions
diff --git a/debian/lcms/lcms-1.19.dfsg2/python/testbed/cam97.py b/debian/lcms/lcms-1.19.dfsg2/python/testbed/cam97.py
new file mode 100755
index 00000000..c365c2b1
--- /dev/null
+++ b/debian/lcms/lcms-1.19.dfsg2/python/testbed/cam97.py
@@ -0,0 +1,37 @@
+
+#
+# Sample: CIECAM97s 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 = cmsCIECAM97sInit(vc)
+
+JCh = cmsJCh()
+XYZ = cmsCIEXYZ()
+
+XYZ.X = 19.01
+XYZ.Y = 20
+XYZ.Z = 21.78
+
+print XYZ
+
+cmsCIECAM97sForward(cam, XYZ, JCh)
+
+print JCh
+
+cmsCIECAM97sReverse(cam, JCh, XYZ)
+print XYZ
+
+cmsCIECAM97sDone(cam)
+
+