1mlib_ImageColorConvert2_Fp(m3eMdLiIaBL)ib Library Funmcltiibo_nIsmageColorConvert2_Fp(3MLIB)
2
3
4

NAME

6       mlib_ImageColorConvert2_Fp  -  color  conversion  using a 3x3 floating-
7       point matrix and a three-element offset
8

SYNOPSIS

10       cc [ flag... ] file... -lmlib [ library... ]
11       #include <mlib.h>
12
13       mlib_status mlib_ImageColorConvert2_Fp(mlib_image *dst,
14            const mlib_image *src, const mlib_d64 *cmat,
15            const mlib_d64 *offset);
16
17

DESCRIPTION

19       The mlib_ImageColorConvert2_Fp() function takes  a  3x3  floating-point
20       conversion matrix and a three-element offset and converts the floating-
21       point source color image to the destination color image.
22
23
24       The source and destination images must be three-channel images.
25
26
27       It uses the following equation:
28
29         |dst[x][y][0]|  |cmat[0] cmat[1] cmat[2]|  |src[x][y][0]|  |offset[0]|
30         |dst[x][y][1]| =|cmat[3] cmat[4] cmat[5]| *|src[x][y][1]| +|offset[1]|
31         |dst[x][y][2]|  |cmat[6] cmat[7] cmat[8]|  |src[x][y][2]|  |offset[2]|
32
33

PARAMETERS

35       The function takes the following arguments:
36
37       dst       Pointer to destination image.
38
39
40       src       Pointer to source image.
41
42
43       cmat      Conversion matrix in row major order.
44
45
46       offset    Offset array.
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_ImageColorConvert2(3MLIB),          mlib_ImageColorRGB2YCC(3MLIB),
70       mlib_ImageColorRGB2YCC_Fp(3MLIB),        mlib_ImageColorYCC2RGB(3MLIB),
71       mlib_ImageColorYCC2RGB_Fp(3MLIB), attributes(5)
72
73
74
75SunOS 5.11                        2 Mar 2007 mlib_ImageColorConvert2_Fp(3MLIB)
Impressum