diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2020-09-11 14:38:47 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2020-09-11 14:38:47 +0900 |
commit | 884c8093d63402a1ad0b502244b791e3c6782be3 (patch) | |
tree | a600d4ab0d431a2bdfe4c15b70df43c14fbd8dd0 /debian/lcms/lcms-1.19.dfsg2/python/testbed/gamma.py | |
parent | 14e1aa2006796f147f3f4811fb908a6b01e79253 (diff) | |
download | extra-dependencies-884c8093d63402a1ad0b502244b791e3c6782be3.tar.gz extra-dependencies-884c8093d63402a1ad0b502244b791e3c6782be3.zip |
Added debian extra dependency packages.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'debian/lcms/lcms-1.19.dfsg2/python/testbed/gamma.py')
-rwxr-xr-x | debian/lcms/lcms-1.19.dfsg2/python/testbed/gamma.py | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/debian/lcms/lcms-1.19.dfsg2/python/testbed/gamma.py b/debian/lcms/lcms-1.19.dfsg2/python/testbed/gamma.py new file mode 100755 index 00000000..1a1e7247 --- /dev/null +++ b/debian/lcms/lcms-1.19.dfsg2/python/testbed/gamma.py @@ -0,0 +1,60 @@ +# +# Sample: Gamma tables +# + +from lcms import * + + +# +# Allocate a gamma table +# + +Gamma22 = GAMMATABLE(2.2) + +print Gamma22 + +# +# Specify num. of sampled points +# + +Gamma22 = GAMMATABLE(2.2, 1024) + +print Gamma22 + +# +# Reverse a gamma table +# + +Gamma28 = GAMMATABLE(2.8, 1024) +Rev28 = cmsReverseGamma(1024, Gamma28) +print Rev28 + +# +# Joint a Gamma 2.8 with inverse of 2.4 +# + +Joined = cmsJoinGamma(Gamma28, Gamma22) +print Joined + +# +# Same, specifying num. of points +# + +Joined = cmsJoinGammaEx(Gamma28, Gamma22, 2048) +print Joined + +# +# "Smooth" a curve. Second parameter is smothness lambda +# +cmsSmoothGamma(Joined, 0.8) +print Joined + + +# +# This should result on a line +# +Straight = cmsJoinGammaEx(Joined, Joined, 2048) +print Straight + + + |