[Lcms-user] new version of Python bindings to LCMS
An ICC-based CMM for color management
Brought to you by:
mm2
From: Guy K. K. <g....@ma...> - 2009-01-20 22:55:57
|
Hi everybody, I've just finished the next (0.4) version of my ctypes based bindings to LCMS. For the user the biggest improvements are improved profile handling, many colour conversion helpers that just work without the need to know how LCMS is handling it under the hood, and some magic to ease creating LUT based ICC profiles. LUTs can be accessed and created either directly using a NumPy array interface or using callback functions. Although the callback function approach does not use the LCMS callbacks, but a re-implementation in Python that will largely ease the pain of facilitating a "cargo" structure in Python from the underlying C library. I've placed the code here: https://gutefee.massey.ac.nz/moin/GuyKloss If anybody, or more people are interested in it, I can create a sourceforge or Google code project for cooperation and/or ease of access to the development code base. Let me know what you think, Guy Changes in version 0.4: * unit test harnessing migrated to nosetest * split up into littlecms module into a package with several sub-modules * added exception handling for missing files on profile loading * added utility class for easy CIE colour value handling/conversion * changed default behaviour to use the builtin Lab v4 profile (instead of v2) * adding: profile creation * removal of some unnecessary wildcard imports * implementation of CieColour class (conversion/handling of XYZ, Lab and xyY colours) * implementation of LUT class * implementation of Tag and LutTag classes * implementation of custom profile creation and saving -- Guy K. Kloss Institute of Information and Mathematical Sciences Te Kura Pūtaiao o Mōhiohio me Pāngarau Room 2.63, Quad Block A Building Massey University, Auckland, Albany Private Bag 102 904, North Shore Mail Centre voice: +64 9 414-0800 ext. 9585 fax: +64 9 441-8181 eMail: G....@ma... http://iims.massey.ac.nz |