Skip to content

A C-based python library to convert CIE formats/calculate Delta E

License

Notifications You must be signed in to change notification settings

ItzSkyReed/CIETools

Repository files navigation

CIE Tools

Convert Formats: RGB/XYZ/LAB/LCH

import cietools

rgb = (150, 24, 51)
xyz = cietools.rgb2xyz(rgb)
lab = cietools.rgb2lab(rgb)
lch = cietools.rgb2lch(rgb)

...
lch_from_xyz = cietools.xyz2lch(xyz)
rgb_from_lch = cietools.lch2rgb(lch)

Calculate Delta E 76/94/CMC/2000

import cietools

lab1 = (43.54, 54.58, 22.87)
lab2 = (43.54, 60.58, 87.87)

delta_76 = cietools.deltaE76(lab1, lab2)
delta_94 = cietools.deltaE94(lab1, lab2)
delta_cmc = cietools.deltaE_CMC(lab1, lab2)
delta_2000 = cietools.deltaE2000(lab1, lab2)

Credits:

  • Icon made by @_Fedor_F

About

A C-based python library to convert CIE formats/calculate Delta E

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published