1mlib_ImageColorConvert2(3MLmIeBd)iaLib Library Functimolnisb_ImageColorConvert2(3MLIB)
2
3
4

NAME

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

SYNOPSIS

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

DESCRIPTION

18       The mlib_ImageColorConvert2() function takes a 3x3 floating-point  con‐
19       version matrix and a three-element offset and converts the source color
20       image to 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]|  |offset[0]|
29         |dst[x][y][1]| =|cmat[3] cmat[4] cmat[5]| *|src[x][y][1]| +|offset[1]|
30         |dst[x][y][2]|  |cmat[6] cmat[7] cmat[8]|  |src[x][y][2]|  |offset[2]|
31
32

PARAMETERS

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
45       offset    Offset array.
46
47

RETURN VALUES

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

ATTRIBUTES

53       See attributes(5) for descriptions of the following attributes:
54
55
56
57
58       ┌─────────────────────────────┬─────────────────────────────┐
59       │      ATTRIBUTE TYPE         │      ATTRIBUTE VALUE        │
60       ├─────────────────────────────┼─────────────────────────────┤
61       │Interface Stability          │Committed                    │
62       ├─────────────────────────────┼─────────────────────────────┤
63       │MT-Level                     │MT-Safe                      │
64       └─────────────────────────────┴─────────────────────────────┘
65

SEE ALSO

67       mlib_ImageColorConvert1(3MLIB),      mlib_ImageColorConvert1_Fp(3MLIB),
68       mlib_ImageColorConvert2_Fp(3MLIB),       mlib_ImageColorRGB2YCC(3MLIB),
69       mlib_ImageColorRGB2YCC_Fp(3MLIB),        mlib_ImageColorYCC2RGB(3MLIB),
70       mlib_ImageColorYCC2RGB_Fp(3MLIB), attributes(5)
71
72
73
74SunOS 5.11                        2 Mar 2007    mlib_ImageColorConvert2(3MLIB)
Impressum