Skip to main content

Implements the CAM02-UCS forward transform symbolically, using Theano.

Project description

Implements the CAM02-UCS (Luo et al. (2006), “Uniform Colour Spaces Based on CIECAM02 Colour Appearance Model”) forward transform symbolically, using Theano.

See also: CIECAM02 and Its Recent Developments.

The forward transform is symbolically differentiable in Theano and it may be approximately inverted, subject to gamut boundaries, by constrained function minimization (e.g. projected gradient descent or L-BFGS-B).

Package contents

  • contains constants needed by CAM02-UCS and others which are merely useful.
  • contains compiled Theano functions, as well as NumPy equivalents of other symbolic functions. It also contains ucs_to_srgb() and ucs_to_srgb_b(), which approximately invert the CAM02-UCS forward transform with L-BFGS-B.
  • implements the forward transform symbolically in Theano. The functions therein can be used to construct custom auto-differentiable loss functions to be subject to optimization.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for ucs, version 0.3
Filename, size File type Python version Upload date Hashes
Filename, size ucs-0.3-py3-none-any.whl (7.9 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size ucs-0.3.tar.gz (5.1 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page