![]() |
Ansel 0.0
A darktable fork - bloat + design vision
|
#include "common/color_vocabulary.h"
Functions | |
static range_t | _compute_range (const gaussian_stats_t stats, const float factor) |
char * | _get_ethnicity_name (const ethnicities_t index) |
skin_color_t | get_skin_color (const size_t index) |
const char * | Lch_to_color_name (dt_aligned_pixel_t color) |
void | get_skin_tones_range () |
|
static |
References gaussian_stats_t::avg, range_t::bottom, factor, gaussian_stats_t::std, and range_t::top.
Referenced by get_skin_tones_range(), and Lch_to_color_name().
char * _get_ethnicity_name | ( | const ethnicities_t | index | ) |
References ETHNIE_AFRICAN_AM, ETHNIE_CAUCASIAN, ETHNIE_CHINESE, ETHNIE_END, ETHNIE_KURDISH, ETHNIE_MEXICAN, ETHNIE_THAI, and ethnicity_t::name.
Referenced by Lch_to_color_name().
skin_color_t get_skin_color | ( | const size_t | index | ) |
References ETHNIE_AFRICAN_AM, ETHNIE_CAUCASIAN, ETHNIE_CHINESE, ETHNIE_KURDISH, ETHNIE_MEXICAN, ETHNIE_THAI, skin_color_t::name, and SKINS.
Referenced by get_skin_tones_range(), and Lch_to_color_name().
void get_skin_tones_range | ( | ) |
const char * Lch_to_color_name | ( | dt_aligned_pixel_t | color | ) |
References _compute_range(), _get_ethnicity_name(), skin_color_t::a, skin_color_t::b, range_t::bottom, dt_LCH_2_Lab(), dt_util_dstrcat(), skin_color_t::ethnicity, ETHNIE_END, FALSE, get_skin_color(), skin_color_t::L, Lab(), SKINS, range_t::top, and TRUE.
Referenced by _sample_tooltip_callback().