aboutsummaryrefslogtreecommitdiffstats
path: root/LIBCOLOUR_CIELCHUV.7
blob: cae33cf5e82b92f06888872f66ef5ea24df63091 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
.TH LIBCOLOUR_CIELCHUV 7 libcolour
.SH NAME
LIBCOLOUR_CIELCHUV - CIE LChuv
.SH DESCRIPTION
CIE LCh_uv [\(aq_\(aq denotes subscript of
subsequent characters] (also known as CIE HLC_uv)
colours are presented with either of
.nf

	typedef struct libcolour_cielchuv_f libcolour_cielchuv_f_t;
	typedef struct libcolour_cielchuv_lf libcolour_cielchuv_lf_t;
	typedef struct libcolour_cielchuv_llf libcolour_cielchuv_llf_t;

.fi
These
.BR struct s
use
.BR float ,
.BR double ,
and
.BR long\ double ,
respecitively, for the values stored in them,
and are otherwise identical.
.B struct libcolour_cielchuv_f
is defined as
.nf

	struct libcolour_cielchuv_f {
		enum libcolour_model \fImodel\fP;
		float \fIL\fP;
		float \fIC\fP;
		float \fIh\fP;
		struct libcolour_ciexyz \fIwhite\fP;
		double \fIone_revolution\fP;
	};

.fi
.I .model
shall be set to
.BR LIBCOLOUR_CIELCHUV .
In
.BR union\ libcolour_colour_f ,
.BR union\ libcolour_colour_lf ,
and
.BR union\ libcolour_colour_llf ,
.I .cielchuv
is used for CIE LChuv colours.
.P
.IR .L ,
.IR .C ,
and
.I .h
hold the L* (luma), C*_uv (chroma), and
h_uv (hue) values, respectively,
.I .white
is the white point, and
.I .one_revolution
the The value lowest positive values of
.I .h
that is equivalent to 0. 360 if the hue is measured
in degrees, 400 if the hue is measured in gon, and
2 pi if the hue is measured radian. Any value can
be used.
.I .white
and
.I .one_revolution
are not part of the colour, but rather part of
the colour space.
.P
L* is 0 in black and 100 in white.
.P
The call
.BI libcolour_proper(& c )
on a
.B struct libcolour_cielchuv_t
.I c
sets
.I c.white.model
to
.BR LIBCOLOUR_CIEXYZ ,
and if
.I c.one_revolution
is 0, it is set to 360.
Zero is always returned in this case.
.P
CIE LCh_uv approximates uniform human colour
perception using cylindrical representation.
.P
CIE LCh_uv is not additive. It is a cylindrical
representation of CIE 1976 (L*, u*, v*).
.SH SEE ALSO
.BR libcolour (7)
.SH AUTHORS
Mattias Andrée
.RI < maandree@kth.se >