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 the Ansel project.
3 Copyright (C) 2022, 2024 Aurélien PIERRE.
4 Copyright (C) 2022 Martin Bařinka.
5 Copyright (C) 2022 Pascal Obry.
6
7 Ansel is free software: you can redistribute it and/or modify
8 it under the terms of the GNU General Public License as published by
9 the Free Software Foundation, either version 3 of the License, or
10 (at your option) any later version.
11
12 Ansel is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
16
17 You should have received a copy of the GNU General Public License
18 along with Ansel. If not, see <http://www.gnu.org/licenses/>.
19*/
20
21#ifndef DT_COMMON_COLOR_VOCABULARY_H
22#define DT_COMMON_COLOR_VOCABULARY_H
23
25
26#include <glib.h>
27
28
29// declare a model average ± standard deviation
30typedef struct gaussian_stats_t
31{
32 float avg;
33 float std;
35
36
37// bounds of the range
38typedef struct range_t
39{
40 float bottom;
41 float top;
43
44
45// ID keys for the ethnicities database
56
57
58// Translatable names for ethnicities
64
65
66// Database entry for skin parts color of an ethnicity
75
76
77#define SKINS 16
78
79// returns a color name for color
102
103// Parametric sweeping of Lch boundaries (in CIE Luv 1976) for all known skin tones +/- 2 std
105
106#endif // DT_COMMON_COLOR_VOCABULARY_H
107
108// clang-format off
109// modelines: These editor modelines have been set for all relevant files by tools/update_modelines.py
110// vim: shiftwidth=2 expandtab tabstop=2 cindent
111// kate: tab-indents: off; indent-width 2; replace-tabs on; indent-mode cstyle; remove-trailing-spaces modified;
112// clang-format on
char * Lch_to_color_name(dt_aligned_pixel_t color)
Name the colour at color in plain language, e.g. "salmon" or "olive drab".
void get_skin_tones_range()
ethnicities_t
@ ETHNIE_CAUCASIAN
@ ETHNIE_KURDISH
@ ETHNIE_END
@ ETHNIE_CHINESE
@ ETHNIE_MEXICAN
@ ETHNIE_THAI
@ ETHNIE_AFRICAN_AM
GdkRGBA color[]
Definition geotagging.c:541
DT_ALIGNED_PIXEL float dt_aligned_pixel_t[4]
Definition simd.h:53
ethnicities_t ethnicity
ethnicities_t ethnicity
gaussian_stats_t b
gaussian_stats_t L
gaussian_stats_t a