Created by: KelSolaar
What is this Python project?
Colour is a Python colour science package implementing a comprehensive number of colour theory transformations and algorithms.
It is used by Google, Merck Group and studios of the VFX and Games industries to perform colorimetric computations. It leverages Numpy and Scipy to offer vectorised computations.
>>> import colour
>>> colour.uv_to_CCT_Ohno2013([0.1978, 0.3122])
array([ 6.50751282e+03, 3.22335875e-03])
What's the difference between this Python project and similar ones?
Colour is one of the most complete colour science package available across programming languages with a broad set of high quality figures.
Features
Algebra
Kernel Interpolation
Sprague Interpolation
Biochemistry
- Michaelis–Menten kinetics
Colorimetry
Spectral Computation
- Wavelength to XYZ
- Spectral to Tristimulus Values - ASTM E308–15
- Tristimulus Weighting Factors - ASTM E2022–11
- Interpolation - Linear, Cubic Spline, Pchip, Sprague (1880)
- Extrapolation
Spectral Bandpass Correction
- Stearns and Stearns (1988)
RGB and XYZ Colour Matching Functions Spectral Dataset
- CIE 1931 2° Standard Observer XYZ colour matching functions
- CIE 1964 10° Standard Observer XYZ colour matching functions
- CIE 2012 10° Standard Observer XYZ colour matching functions
- CIE 2012 2° Standard Observer XYZ colour matching functions
- Stiles & Burch 1955 2° RGB CMFs RGB colour matching functions
- Stiles & Burch 1959 10° RGB CMFs RGB colour matching functions
- Wright & Guild 1931 2° RGB CMFs RGB colour matching functions
Cone Fundamentals Spectral Dataset
- Stockman & Sharpe 2° Cone Fundamentals
- Stockman & Sharpe 10° Cone Fundamentals
Photopic & Scotopic Luminous Efficiency Functions Spectral Dataset
- CIE 1924 Photopic Standard Observer
- Judd Modified CIE 1951 Photopic Standard Observer
- Judd-Vos Modified CIE 1978 Photopic Standard Observer
- CIE 1964 Photopic 10° Standard Observer
- CIE 2008 2° Physiologically Relevant LEF
- CIE 2008 10° Physiologically Relevant LEF
- CIE 1951 Scotopic Standard Observer
Colour Matching Functions Conversions for Educational Purpose
- Wright & Guild 1931 2° RGB CMFs to CIE 1931 2° Standard Observer
- Stiles & Burch 1959 10° RGB CMFs to CIE 1964 10° Standard Observer
- Stiles & Burch 1959 10° RGB CMFs to Stockman & Sharpe 10° Cone Fundamentals
- Stockman & Sharpe 2° Cone Fundamentals to CIE 2012 2° Standard Observer
- Stockman & Sharpe 10° Cone Fundamentals to CIE 2012 10° Standard Observer
Blackbody Spectral Radiance Computation
Dominant, Complementary Wavelength & Colour Purity Computation
Illuminant Spectral Power Distribution Computation
- CIE Standard Illuminant A
- CIE Standard Illuminant D Series
Illuminant Spectral Dataset
- A
- B
- C
- D50
- D55
- [...] 36 more!
Illuminant Chromaticity Coordinates
Hunter Lab Chromaticity Coordinates
Light Source Dataset
- 3-LED-1 (457/540/605)
- 3-LED-2 (473/545/616)
- 3-LED-2 Yellow
- 3-LED-3 (465/546/614)
- 3-LED-4 (455/547/623)
- [...] 51 more!
Light Source Chromaticity Coordinates
Lightness Computation
- CIE 1976
- Fairchild and Wyble (2010)
- Glasser, McKinney, Reilly and Schnelle (1958)
- Wyszecki (1963)
Luminance Computation
- ASTM D1535-08
- CIE 1976
- Fairchild and Wyble (2010)
- Newhall, Nickerson and Judd (1943)
Whiteness Computation
- ASTM E313
- Berger (1959)
- CIE 2004
- Ganz and Griesser (1979)
- Stensby (1968)
- Taube (1960)
Yellowness Computation
- ASTM D1925
- ASTM E313
Corresponding Chromaticities Computation
Luminous Flux, Efficiency & Efficacy Computation
Colour Temperature & Correlated Colour Temperature
Correlated Colour Temperature Computation Methods
- CIE Illuminant D Series
- Hernández-Andrés, Lee and Romero (1999)
- Kang et al. (2002)
- Krystek (1985)
- McCamy (1992)
- Ohno (2013)
- Roberston (1968)
Colour Models
Colourspaces Transformations
- CAM02LCD to JMh CIECAM02
- CAM02SCD to JMh CIECAM02
- CAM02UCS to JMh CIECAM02
- CIE LCHab to CIE Lab
- CIE LCHuv to CIE Luv
- CIE Lab to CIE LCHab
- CIE Lab to CIE XYZ
- CIE Luv to CIE LCHuv
- CIE Luv to CIE Luv uv
- CIE Luv to CIE XYZ
- CIE Luv uv to CIE xy
- CIE UCS to CIE UCS uv
- CIE UCS to CIE XYZ
- CIE UCS uv to CIE xy
- CIE XYZ to CIE Lab
- CIE XYZ to CIE Luv
- CIE XYZ to CIE UCS
- CIE XYZ to CIE UVW
- CIE XYZ to CIE xy
- CIE XYZ to CIE xyY
- CIE XYZ to Hunter Lab
- CIE XYZ to Hunter Rdab
- CIE XYZ to IPT
- CIE XYZ to RGB
- CIE XYZ to hdr-CIELab
- CIE XYZ to hdr-IPT
- CIE XYZ to sRGB
- CIE xy to CIE XYZ
- CIE xyY to CIE XYZ
- Hunter Lab to CIE XYZ
- ICTCP to RGB
- IPT to CIE XYZ
- JMh CIECAM02 to CAM02LCD
- JMh CIECAM02 to CAM02SCD
- JMh CIECAM02 to CAM02UCS
- Prismatic to RGB
- RGB to CIE XYZ
- RGB to ICTCP
- RGB to Prismatic
- RGB to RGB
- RGB to YCbCr
- RGB to YcCbcCrc
- YCbCr to RGB
- YcCbcCrc to RGB
- hdr-CIELab to CIE XYZ
- hdr-IPT to CIE XYZ
- sRGB to CIE XYZ
OETFs
- ARIB STD-B67
- DCI-P3
- DICOM GSDF
- ITU-R BT.2020
- ITU-R BT.2100 HLG
- ITU-R BT.2100 PQ
- ITU-R BT.601
- ITU-R BT.709
- ProPhoto RGB
- RIMM RGB
- ROMM RGB
- SMPTE 240M
- ST 2084
- sRGB
EOTFs
- DCI-P3
- DICOM GSDF
- ITU-R BT.1886
- ITU-R BT.2020
- ITU-R BT.2100 HLG
- ITU-R BT.2100 PQ
- ProPhoto RGB
- RIMM RGB
- ROMM RGB
- SMPTE 240M
- ST 2084
OOTFs
- ITU-R BT.2100 HLG
- ITU-R BT.2100 PQ
Log Encoding / Decoding Curves
- ACEScc
- ACEScct
- ACESproxy
- ALEXA Log C
- Canon Log
- Canon Log 2
- Canon Log 3
- Cineon
- ERIMM RGB
- Log3G10
- Log3G12
- PLog
- Panalog
- Protune
- REDLog
- REDLogFilm
- S-Log
- S-Log2
- S-Log3
- V-Log
- ViperLog
RGB Colourspaces Derivation
RGB Colourspaces Chromatically Adapted Primaries Computation
RGB Colourspaces Primaries Computation
RGB Colourspaces
- ACES2065-1
- ACEScc
- ACEScct
- ACEScg
- ACESproxy
- ALEXA Wide Gamut
- Adobe RGB (1998)
- Adobe Wide Gamut RGB
- Apple RGB
- Best RGB
- Beta RGB
- CIE RGB
- Cinema Gamut
- ColorMatch RGB
- DCI-P3
- DCI-P3+
- DRAGONcolor
- DRAGONcolor2
- Don RGB 4
- ECI RGB v2
- ERIMM RGB
- Ekta Space PS 5
- ITU-R BT.2020
- ITU-R BT.470 - 525
- ITU-R BT.470 - 625
- ITU-R BT.709
- Max RGB
- NTSC
- Pal/Secam
- ProPhoto RGB
- Protune Native
- REDWideGamutRGB
- REDcolor
- REDcolor2
- REDcolor3
- REDcolor4
- RIMM RGB
- ROMM RGB
- Russell RGB
- S-Gamut
- S-Gamut3
- S-Gamut3.Cine
- SMPTE 240M
- V-Gamut
- Xtreme RGB
- sRGB
Convenience Deprecated Colourspaces Transformations
- RGB to HSV
- HSV to RGB
- RGB to HSL
- HSL to RGB
- RGB to CMY
- CMY to RGB
- CMY to CMYK
- CMYK to CMY
Chromatic Adaptation
Chromatic Adaptation Models
- CIE 1994
- CMCCAT2000
- Fairchild (1990)
- Von Kries
Chromatic Adaptation Transforms
- Bianco and Schettini (2010)
- Bianco and Schettini (2010) PC
- Bradford
- Brill and Süsstrunk (2008) corrected CAT02
- CAT02
- CMCCAT2000
- CMCCAT97
- Fairchild
- Sharp
- Von Kries
- XYZ Scaling
Colour Appearance Models
- ATD95
- CIECAM02
- Hunt
- LLAB
- Nayatani95
- RLAB
Colour Difference
Delta E Computation
- CIE 1976
- CIE 1994
- CIE 2000
- CMC
- CAM02LCD
- CAM02SCD
- CAM02UCS
Colour Notation Systems
Munsell Value Computation
- Priest (1920)
- Munsell (1933)
- Moon (1943)
- Saunderson (1944)
- Ladd (1955)
- McCamy (1987)
- ASTM D1535-08
Munsell Colour Transformations
- xyY to Munsell Colour
- Munsell Colour to xyY
Munsell Colours Dataset
- Munsell Colours All
- Munsell Colours Real
- Munsell Colours 1929
Hexadecimal
- RGB to HEX
- HEX to RGB
Characterisation
Colour Rendition Charts Spectral Dataset
- BabelColor Average
- ColorChecker N. Ohta
Colour Rendition Charts Chromaticity Coordinates
- BabelColor Average
- ColorChecker 1976
- ColorChecker 2005
First Order Colour Fit
Light Quality
- Colour Rendering Index computation
- Colour Quality Scale computation
Optical Phenomena
- Rayleigh Optical Depth
Reflectance Recovery
- Smits (1999)
- Meng, Simon and Hanika (2015)
Volume
- MacAdam Limits - Optimal Colour Stimuli
- Monte Carlo RGB Colourspace Volume Computation
- Monte Carlo Pointer's Gamut Colourspace Coverage Computation
- Monte Carlo Visible Spectrum Colourspace Coverage Computation
Comprehensive Plotting Capabilities
Input & Output
- CSV tabular data files
- IES TM-27-14 spectral data XML files
- X-Rite spectral data files
- Image I/O using OpenImageIO
--
Anyone who agrees with this pull request could vote for it by adding a