11namespace smartledz_protocol {
21std::array<uint8_t, 3>
lookup_ct_rgb(uint16_t kelvin,
float duv);
32uint16_t
estimate_cct_from_rgb(uint8_t target_red, uint8_t target_green, uint8_t target_blue,
float duv);
std::array< uint8_t, 3 > lookup_ct_rgb(uint16_t kelvin, float duv)
Converts correlated color temperature and Duv into RGB.
Definition color_math.cpp:50
uint16_t estimate_cct_from_rgb(uint8_t target_red, uint8_t target_green, uint8_t target_blue, float duv)
Estimates correlated color temperature from an RGB sample.
Definition color_math.cpp:101