Expand description
This module deals with different colour models and conversions between colour models.
Structs§
- CIELAB
- CIE LAB (also known as CIE Lab* or Lab) a colour model that represents colour as lightness, and a* and b* as the green-red and blue-yellow colour differences respectively. It is designed to be representative of human perception of colour
- CIELUV
- Similar to
CIELAB
but has a different representation of colour. - CIEXYZ
- CIE XYZ standard - assuming a D50 reference white
- Generic1
- A single channel image with no colour model specified
- Generic2
- A two channel image with no colour model specified
- Generic3
- A three channel image with no colour model specified
- Generic4
- A four channel image with no colour model specified
- Generic5
- A five channel image with no colour model specified
- Gray
- Grayscale image
- HSI
- Hue Saturation Intensity image
- HSL
- Hue Saturation Lightness image
- HSV
- Hue Saturation Value image
- RGB
- RGB colour as intended by sRGB and standardised in IEC 61966-2-1:1999
- RGBA
- RGB colour similar to
RGB
type but with an additional channel for alpha transparency - YCrCb
- YCrCb represents an image as luma, red-difference chroma and blue-difference chroma.
Traits§
- Colour
Model - ColourModel trait, this trait reports base parameters for different colour models
Functions§
- hsv_
to_ rgb - Converts a HSV pixel to a RGB pixel
- rgb_
to_ hsv - Converts an RGB pixel to a HSV pixel