All Projects → njsmith → Colorspacious

njsmith / Colorspacious

Licence: mit
A powerful, accurate, and easy-to-use Python library for doing colorspace conversions

Programming Languages

python
139335 projects - #7 most used programming language

Labels

Projects that are alternatives of or similar to Colorspacious

Prominentcolor
golang package to find the K most dominant/prominent colors in an image
Stars: ✭ 98 (-18.33%)
Mutual labels:  color
Smartmaterialspinner
The powerful android spinner library for your application
Stars: ✭ 108 (-10%)
Mutual labels:  color
Dainty Vs
Dainty for Visual Studio – A color theme generator using Lab color space
Stars: ✭ 115 (-4.17%)
Mutual labels:  color
Kaloader
Beautiful animated placeholders for showing loading of data
Stars: ✭ 99 (-17.5%)
Mutual labels:  color
Iceberg.vim
🇦🇶 Bluish color scheme for Vim and Neovim
Stars: ✭ 1,636 (+1263.33%)
Mutual labels:  color
Chalk Animation
🎬 Colorful animations in terminal output
Stars: ✭ 1,489 (+1140.83%)
Mutual labels:  color
Values.js
🍇 Get the tints and shades of a color
Stars: ✭ 97 (-19.17%)
Mutual labels:  color
Box Cli Maker
Make Highly Customized Boxes for your CLI
Stars: ✭ 115 (-4.17%)
Mutual labels:  color
Colorwanted
Screen color picker for Windows (Windows 上的屏幕取色器)
Stars: ✭ 105 (-12.5%)
Mutual labels:  color
Console Logging
Better, prettier commandline logging for Python--with colors! 👻
Stars: ✭ 111 (-7.5%)
Mutual labels:  color
Drawablecolorchange
Android Library to dynamically change color of drawable.
Stars: ✭ 101 (-15.83%)
Mutual labels:  color
Wb srgb
White balance camera-rendered sRGB images (CVPR 2019) [Matlab & Python]
Stars: ✭ 101 (-15.83%)
Mutual labels:  color
Ls colors
A collection of LS_COLORS definitions; needs your contribution!
Stars: ✭ 1,568 (+1206.67%)
Mutual labels:  color
Colored
🎨 Mirror of colored library repository
Stars: ✭ 98 (-18.33%)
Mutual labels:  color
Colors.jl
Color manipulation utilities for Julia
Stars: ✭ 114 (-5%)
Mutual labels:  color
Bootstrap Colorpicker
Bootstrap Colorpicker is a modular color picker plugin for Bootstrap.
Stars: ✭ 1,351 (+1025.83%)
Mutual labels:  color
Monolog Colored Line Formatter
Colored/ANSI Line Formatter for Monolog
Stars: ✭ 108 (-10%)
Mutual labels:  color
Tinycolormap
A header-only, single-file library for colormaps written in C++11
Stars: ✭ 119 (-0.83%)
Mutual labels:  color
Zoya
Truly highly composable logging utility
Stars: ✭ 116 (-3.33%)
Mutual labels:  color
Magit Delta
Use delta (https://github.com/dandavison/delta) when viewing diffs in Magit
Stars: ✭ 109 (-9.17%)
Mutual labels:  color

colorspacious

.. image:: https://travis-ci.org/njsmith/colorspacious.svg?branch=master :target: https://travis-ci.org/njsmith/colorspacious :alt: Automated test status

.. image:: https://codecov.io/gh/njsmith/colorspacious/branch/master/graph/badge.svg :target: https://codecov.io/gh/njsmith/colorspacious :alt: Test coverage

.. image:: https://readthedocs.org/projects/colorspacious/badge/?version=latest :target: http://colorspacious.readthedocs.io/en/latest/?badge=latest :alt: Documentation Status

.. image:: https://zenodo.org/badge/38525000.svg :target: https://zenodo.org/badge/latestdoi/38525000

Colorspacious is a powerful, accurate, and easy-to-use library for performing colorspace conversions.

In addition to the most common standard colorspaces (sRGB, XYZ, xyY, CIELab, CIELCh), we also include: color vision deficiency ("color blindness") simulations using the approach of Machado et al (2009); a complete implementation of CIECAM02 <https://en.wikipedia.org/wiki/CIECAM02>_; and the perceptually uniform CAM02-UCS / CAM02-LCD / CAM02-SCD spaces proposed by Luo et al (2006).

To get started, simply write::

from colorspacious import cspace_convert

Jp, ap, bp = cspace_convert([64, 128, 255], "sRGB255", "CAM02-UCS")

This converts an sRGB value (represented as integers between 0-255) to CAM02-UCS J'a'b' coordinates (assuming standard sRGB viewing conditions by default). This requires passing through 4 intermediate colorspaces; cspace_convert automatically finds the optimal route and applies all conversions in sequence:

This function also of course accepts arbitrary NumPy arrays, so converting a whole image is just as easy as converting a single value.

Documentation: http://colorspacious.readthedocs.org/

Installation: pip install colorspacious

Downloads: https://pypi.python.org/pypi/colorspacious/

Code and bug tracker: https://github.com/njsmith/colorspacious

Contact: Nathaniel J. Smith [email protected]

Dependencies:

  • Python 2.6+, or 3.3+
  • NumPy

Developer dependencies (only needed for hacking on source):

  • nose: needed to run tests

License: MIT, see LICENSE.txt for details.

References for algorithms we implement:

  • Luo, M. R., Cui, G., & Li, C. (2006). Uniform colour spaces based on CIECAM02 colour appearance model. Color Research & Application, 31(4), 320–330. doi:10.1002/col.20227
  • Machado, G. M., Oliveira, M. M., & Fernandes, L. A. (2009). A physiologically-based model for simulation of color vision deficiency. Visualization and Computer Graphics, IEEE Transactions on, 15(6), 1291–1298. http://www.inf.ufrgs.br/~oliveira/pubs_files/CVD_Simulation/CVD_Simulation.html

Other Python packages with similar functionality that you might want to check out as well or instead:

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].