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

  • constants.py contains constants needed by CAM02-UCS and others which are merely useful.

  • functions.py 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.

  • symbolic.py 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.

Source Distribution

ucs-0.3.tar.gz (5.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ucs-0.3-py3-none-any.whl (7.9 kB view details)

Uploaded Python 3

File details

Details for the file ucs-0.3.tar.gz.

File metadata

  • Download URL: ucs-0.3.tar.gz
  • Upload date:
  • Size: 5.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for ucs-0.3.tar.gz
Algorithm Hash digest
SHA256 4d887c563edb33d48db8c390540f786e4bea24989f5b630cb4a518c7846e3117
MD5 e7c6ffa4f9d7e0f6100ad32f20552b61
BLAKE2b-256 7a3dfcf3c2b22ace4afd82ceed8a6cf8d4edbfce1249594a37cedfa5839614f8

See more details on using hashes here.

File details

Details for the file ucs-0.3-py3-none-any.whl.

File metadata

  • Download URL: ucs-0.3-py3-none-any.whl
  • Upload date:
  • Size: 7.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for ucs-0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 5aed9995c77afec946962bfc3742eb06309fa9ca17322b378d5b4436a191337a
MD5 864dff8d3d0b637aa4e70de1c3d24797
BLAKE2b-256 7c7683ff7d08dad783210797eae0bafa4fcd691dd5f3087a3797445863dcd542

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page