1mlib_ImageColorConvert1(3MLmIeBd)iaLib Library Functimolnisb_ImageColorConvert1(3MLIB)
2
3
4

NAME

6       mlib_ImageColorConvert1  -  color conversion using a 3x3 floating-point
7       matrix
8

SYNOPSIS

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

DESCRIPTION

18       The mlib_ImageColorConvert1() function takes a 3x3 floating-point  con‐
19       version  matrix  and converts the source color image to the destination
20       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

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

RETURN VALUES

46       The function returns MLIB_SUCCESS if successful. Otherwise  it  returns
47       MLIB_FAILURE.
48

ATTRIBUTES

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

SEE ALSO

64       mlib_ImageColorConvert1_Fp(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(3MLIB)
Impressum