Commits

Robert Kern committed df3713f

Example.

  • Participants
  • Parent commits 18917ab

Comments (0)

Files changed (3)

File example.py

-from numpy import *
-from scipy.sandbox import image
-
-import lcms
-
-r, g, b = mgrid[0.:1:17j, 0.:1:17j, 0.:1:17j]
-srgb_image = column_stack([r.flat, g.flat, b.flat])
-scipy_xyz_image = image.rgb2xyz(image.rgbp2rgb(srgb_image))
-
-xyz = lcms.ICCProfile()
-xyz.xyz_profile()
-srgb = lcms.ICCProfile()
-srgb.srgb_profile()
-xform = lcms.Transform()
-xform.between_profiles(srgb, xyz, lcms.formats.rgb, lcms.formats.xyz)
-
-lcms_xyz_image = xform.do_transform(srgb_image)
-
-
-#### EOF #######################################################################

File examples/MyPrinter.icc

Binary file added.

File examples/example.py

+from numpy import *
+from scipy.sandbox import image
+
+import lcms
+
+r, g, b = mgrid[0.:1:17j, 0.:1:17j, 0.:1:17j]
+srgb_image = column_stack([r.flat, g.flat, b.flat])
+scipy_xyz_image = image.rgb2xyz(image.rgbp2rgb(srgb_image))
+
+xyz = lcms.ICCProfile()
+xyz.xyz_profile()
+srgb = lcms.ICCProfile()
+srgb.srgb_profile()
+xform = lcms.Transform()
+xform.between_profiles(srgb, xyz, lcms.formats.rgb, lcms.formats.xyz)
+
+lcms_xyz_image = xform.do_transform(srgb_image)
+
+
+#### EOF #######################################################################