Colorspaces

Color spaces using numpy to run on arrays.

trollimage.colorspaces.hcl2lab(h__, c__, l__)

HCL to L*ab

trollimage.colorspaces.hcl2rgb(h__, c__, l__)

HCL to RGB

trollimage.colorspaces.lab2hcl(l__, a__, b__)

L*a*b* to HCL

trollimage.colorspaces.lab2rgb(h__, c__, l__)

L*ab to RGB

trollimage.colorspaces.lab2xyz(l__, a__, b__)

Convert L*a*b* to XYZ, L*a*b* expressed within [0, 1].

trollimage.colorspaces.rgb2hcl(r__, g__, b__)

RGB to HCL

trollimage.colorspaces.rgb2lab(r__, g__, b__)

RGB to L*ab

trollimage.colorspaces.rgb2xyz(r__, g__, b__)

RGB to XYZ

trollimage.colorspaces.xyz2lab(x__, y__, z__)

Convert XYZ to L*a*b*.

trollimage.colorspaces.xyz2rgb(x__, y__, z__)

XYZ colorspace to RGB