1mlib_ImageColorConvert1_Fp(m3eMdLiIaBL)ib Library Funmcltiibo_nIsmageColorConvert1_Fp(3MLIB)
2
3
4
6 mlib_ImageColorConvert1_Fp - color conversion using a 3x3 floating-
7 point matrix
8
10 cc [ flag... ] file... -lmlib [ library... ]
11 #include <mlib.h>
12
13 mlib_status mlib_ImageColorConvert1_Fp(mlib_image *dst,
14 const mlib_image *src, const mlib_d64 *cmat);
15
16
18 The mlib_ImageColorConvert1_Fp() function takes a 3x3 floating point
19 conversion matrix and converts the floating-point source color image to
20 the destination color image.
21
22
23 The source and destination images must be three-channel images.
24
25
26 It uses the following equation:
27
28 |dst[x][y][0]| |cmat[0] cmat[1] cmat[2]| |src[x][y][0]|
29 |dst[x][y][1]| = |cmat[3] cmat[4] cmat[5]| * |src[x][y][1]|
30 |dst[x][y][2]| |cmat[6] cmat[7] cmat[8]| |src[x][y][2]|
31
32
34 The function takes the following arguments:
35
36 dst Pointer to destination image.
37
38
39 src Pointer to source image.
40
41
42 cmat Conversion matrix in row major order.
43
44
46 The function returns MLIB_SUCCESS if successful. Otherwise it returns
47 MLIB_FAILURE.
48
50 See attributes(5) for descriptions of the following attributes:
51
52
53
54
55 ┌─────────────────────────────┬─────────────────────────────┐
56 │ ATTRIBUTE TYPE │ ATTRIBUTE VALUE │
57 ├─────────────────────────────┼─────────────────────────────┤
58 │Interface Stability │Committed │
59 ├─────────────────────────────┼─────────────────────────────┤
60 │MT-Level │MT-Safe │
61 └─────────────────────────────┴─────────────────────────────┘
62
64 mlib_ImageColorConvert1(3MLIB), mlib_ImageColorConvert2(3MLIB),
65 mlib_ImageColorConvert2_Fp(3MLIB), mlib_ImageColorRGB2XYZ(3MLIB),
66 mlib_ImageColorRGB2XYZ_Fp(3MLIB), mlib_ImageColorXYZ2RGB(3MLIB),
67 mlib_ImageColorXYZ2RGB_Fp(3MLIB), attributes(5)
68
69
70
71SunOS 5.11 2 Mar 2007 mlib_ImageColorConvert1_Fp(3MLIB)