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