Skip to content

Conversion between RGB colour space and La*b* colour space

License

Notifications You must be signed in to change notification settings

nevernervous78/rgb_to_Lab

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

rgb_to_Lab

Python script implementing the conversion between RGB colour space and Lab colour space.

It specifically accepts RGBC data as produced by the Adafruit TCS34725 RGB Color Sensor Module, but it can be modified to accept conventional RGB values.

The maths behind the matrix conversion is explained at this site and on Wikipedia at this page.

Example usage: L,a,b = rgb2lab(140,107,96,255, illuminant='D50')

About

Conversion between RGB colour space and La*b* colour space

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages