1mlib_ImageColorXYZ2RGB(3MLImBe)diaLib Library Functiomnlsib_ImageColorXYZ2RGB(3MLIB)
2
3
4
6 mlib_ImageColorXYZ2RGB - XYZ to RGB color conversion
7
9 cc [ flag... ] file... -lmlib [ library... ]
10 #include <mlib.h>
11
12 mlib_status mlib_ImageColorXYZ2RGB(mlib_image *dst, const mlib_image *src);
13
14
16 The mlib_ImageColorXYZ2RGB() function performs a color space conversion
17 from CIE XYZ to ITU-R Rec.708 RGB with D64 white point.
18
19
20 The source and destination images must be three-channel images.
21
22
23 It uses the following equation:
24
25 |R| |cmat[0] cmat[1] cmat[2]| |X|
26 |G| = |cmat[3] cmat[4] cmat[5]| * |Y|
27 |B| |cmat[6] cmat[7] cmat[8]| |Z|
28
29
30
31 where
32
33 cmat[] = { 3.240479, -1.537150, -0.498535,
34 -0.969256, 1.875992, 0.041566,
35 0.055648, -0.204043, 1.057311 };
36 src[x][y] = { X, Y, Z };
37 dst[x][y] = { R, G, B };
38
39
41 The function takes the following arguments:
42
43 dst Pointer to destination image.
44
45
46 src Pointer to source image.
47
48
50 The function returns MLIB_SUCCESS if successful. Otherwise it returns
51 MLIB_FAILURE.
52
54 See attributes(5) for descriptions of the following attributes:
55
56
57
58
59 ┌─────────────────────────────┬─────────────────────────────┐
60 │ ATTRIBUTE TYPE │ ATTRIBUTE VALUE │
61 ├─────────────────────────────┼─────────────────────────────┤
62 │Interface Stability │Committed │
63 ├─────────────────────────────┼─────────────────────────────┤
64 │MT-Level │MT-Safe │
65 └─────────────────────────────┴─────────────────────────────┘
66
68 mlib_ImageColorConvert1(3MLIB), mlib_ImageColorConvert1_Fp(3MLIB),
69 mlib_ImageColorRGB2XYZ(3MLIB), mlib_ImageColorRGB2XYZ_Fp(3MLIB),
70 mlib_ImageColorRGB2YCC(3MLIB), mlib_ImageColorRGB2YCC_Fp(3MLIB),
71 mlib_ImageColorXYZ2RGB_Fp(3MLIB), attributes(5)
72
73
74
75SunOS 5.11 2 Mar 2007 mlib_ImageColorXYZ2RGB(3MLIB)