1mlib_ImageColorRGB2XYZ(3MLImBe)diaLib Library Functiomnlsib_ImageColorRGB2XYZ(3MLIB)
2
3
4

NAME

6       mlib_ImageColorRGB2XYZ - RGB to XYZ color conversion
7

SYNOPSIS

9       cc [ flag... ] file... -lmlib [ library... ]
10       #include <mlib.h>
11
12       mlib_status mlib_ImageColorRGB2XYZ(mlib_image *dst, const mlib_image *src);
13
14

DESCRIPTION

16       The mlib_ImageColorRGB2XYZ() function performs a color space conversion
17       from ITU-R Rec.708 RGB with D64 white point to CIE XYZ.
18
19
20       The source and destination images must be three-channel images.
21
22
23       It uses the following equation:
24
25         |X|   |cmat[0] cmat[1] cmat[2]|   |R|
26         |Y| = |cmat[3] cmat[4] cmat[5]| * |G|
27         |Z|   |cmat[6] cmat[7] cmat[8]|   |B|
28
29
30
31       where
32
33         cmat[] = { 0.412453, 0.357580, 0.180423,
34                    0.212671, 0.715160, 0.072169,
35                    0.019334, 0.119193, 0.950227 };
36         src[x][y] = { R, G, B };
37         dst[x][y] = { X, Y, Z };
38
39

PARAMETERS

41       The function takes the following arguments:
42
43       dst    Pointer to destination image.
44
45
46       src    Pointer to source image.
47
48

RETURN VALUES

50       The function returns MLIB_SUCCESS if successful. Otherwise  it  returns
51       MLIB_FAILURE.
52

ATTRIBUTES

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

SEE ALSO

68       mlib_ImageColorConvert1(3MLIB),      mlib_ImageColorConvert1_Fp(3MLIB),
69       mlib_ImageColorRGB2XYZ_Fp(3MLIB),        mlib_ImageColorXYZ2RGB(3MLIB),
70       mlib_ImageColorXYZ2RGB_Fp(3MLIB),        mlib_ImageColorYCC2RGB(3MLIB),
71       mlib_ImageColorYCC2RGB_Fp(3MLIB), attributes(5)
72
73
74
75SunOS 5.11                        2 Mar 2007     mlib_ImageColorRGB2XYZ(3MLIB)
Impressum