Skip to content

Python toolbox for lighting and color science

License

Notifications You must be signed in to change notification settings

qianglisinoeusa/luxpy

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Python toolbox for lighting and color science

alt text

  • Author: Kevin A.G. Smet (ksmet1977 at gmail.com)
  • Version: 1.4.14
  • Date: Dec 19, 2019
  • License: GPLv3

DOI

Cite LuxPy:

If you use the package, please cite the following tutorial paper published in LEUKOS: Smet, K. A. G. (2019). Tutorial: The LuxPy Python Toolbox for Lighting and Color Science. LEUKOS, 1–23. DOI: 10.1080/15502724.2018.1518717


What is LuxPy?

Luxpy is an open source package under a GPLv3 license that supports several common lighting, colorimetric, color appearance and other color science related calculations and models, such as:

  • spectral data interpolation (conform CIE15-2018) and normalization
  • calculation of daylight phase, blackbody radiator and other reference illuminant spectra
  • calculation of tristimulus values
  • correlated color temperature and Duv
  • color space transformations
  • chromatic adaptation transforms
  • color appearance models
  • color rendition indices
  • calculation of photobiological quantities
  • multi-component spectrum creation and optimization
  • hyper-spectral image simulation and rendering
  • MacAdam ellipses
  • color differences (cam02ucs, DE2000, ...)
  • modelling of individual observer color matching functions (Asano, 2016)
  • calculation of CIEOP06 (cfr. CIE TC1-97) color matching functions and cone-fundamentals
  • ...

As of May 2019, LuxPy now also has a toolbox spectro for spectral measurements with JETI and OceanOptics spectrometers:

  • spectro.jeti: easy installation (dll's are part of sub-package).
  • spectro.oceanoptics (under development): more tricky installation (requires manual install of seabreeze SDK and python-seabreeze, pyusb, ...; see here or subpackage help for more info)

How to use LuxPy (basics)?

Luxpy can be easily installed from pypi pip install luxpy or anaconda conda install -c ksmet1977 luxpy.

An overview of the basic usage is given in the luxpy basic usage.ipynb jupyter notebook, as well as the tutorial paper published in LEUKOS: Smet, K. A. G. (2019). Tutorial: The LuxPy Python Toolbox for Lighting and Color Science. LEUKOS, 1–23. DOI: 10.1080/15502724.2018.1518717

For more details on structure, functionality, etc., see:

  1. the github pages on: ksmet1977.github.io/luxpy/

  2. the LuxPy_Documentation pdf

  3. or, the __doc__string of each function.

    To get help on, for example the spd_to_xyz() function, type:

        import luxpy as lx
        ?lx.spd_to_xyz
    

    To get a list of functions/modules, type:

        dir(lx)
    

Python tutorials

Some basic tutorials can be found at:

A list of basic and more advanced is given at:

Matlab versus Python:

Udemy.com:

  • Udemy.com offers some great courses. Although some of these are payed, they often come at huge discounted prices.

Youtube.com:

About

Python toolbox for lighting and color science

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 51.6%
  • Jupyter Notebook 48.4%