Ansel 0.0
A darktable fork - bloat + design vision
Loading...
Searching...
No Matches
color_vocabulary.h
Go to the documentation of this file.
1/*
2 This file is part of darktable,
3 Copyright (C) 2022 darktable developers.
4
5 darktable is free software: you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation, either version 3 of the License, or
8 (at your option) any later version.
9
10 darktable is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU General Public License for more details.
14
15 You should have received a copy of the GNU General Public License
16 along with darktable. If not, see <http://www.gnu.org/licenses/>.
17*/
18
20
21#include <glib.h>
22
23
24// declare a model average ± standard deviation
25typedef struct gaussian_stats_t
26{
27 float avg;
28 float std;
30
31
32// bounds of the range
33typedef struct range_t
34{
35 float bottom;
36 float top;
38
39
40// ID keys for the ethnicities database
51
52
53// Translatable names for ethnicities
59
60
61// Database entry for skin parts color of an ethnicity
70
71
72#define SKINS 16
73
74// returns a color name for color
75const char *Lch_to_color_name(dt_aligned_pixel_t color);
76
77// Parametric sweeping of Lch boundaries (in CIE Luv 1976) for all known skin tones +/- 2 std
79
80// clang-format off
81// modelines: These editor modelines have been set for all relevant files by tools/update_modelines.py
82// vim: shiftwidth=2 expandtab tabstop=2 cindent
83// kate: tab-indents: off; indent-width 2; replace-tabs on; indent-mode cstyle; remove-trailing-spaces modified;
84// clang-format on
void get_skin_tones_range()
Definition color_vocabulary.c:362
ethnicities_t
Definition color_vocabulary.h:42
@ ETHNIE_CAUCASIAN
Definition color_vocabulary.h:46
@ ETHNIE_KURDISH
Definition color_vocabulary.h:45
@ ETHNIE_END
Definition color_vocabulary.h:49
@ ETHNIE_CHINESE
Definition color_vocabulary.h:43
@ ETHNIE_MEXICAN
Definition color_vocabulary.h:48
@ ETHNIE_THAI
Definition color_vocabulary.h:44
@ ETHNIE_AFRICAN_AM
Definition color_vocabulary.h:47
const char * Lch_to_color_name(dt_aligned_pixel_t color)
Definition color_vocabulary.c:179
Definition color_vocabulary.h:55
char * name
Definition color_vocabulary.h:56
ethnicities_t ethnicity
Definition color_vocabulary.h:57
Definition color_vocabulary.h:26
float std
Definition color_vocabulary.h:28
float avg
Definition color_vocabulary.h:27
Definition color_vocabulary.h:34
float top
Definition color_vocabulary.h:36
float bottom
Definition color_vocabulary.h:35
Definition color_vocabulary.h:63
ethnicities_t ethnicity
Definition color_vocabulary.h:65
gaussian_stats_t b
Definition color_vocabulary.h:68
gaussian_stats_t L
Definition color_vocabulary.h:66
char * name
Definition color_vocabulary.h:64
gaussian_stats_t a
Definition color_vocabulary.h:67