1mlib_ImageColorRGB2CIEMono(m3eMdLiIaBL)ib Library Funmcltiibo_nIsmageColorRGB2CIEMono(3MLIB)
2
3
4

NAME

6       mlib_ImageColorRGB2CIEMono - RGB to monochrome conversion
7

SYNOPSIS

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

DESCRIPTION

17       The  mlib_ImageColorRGB2CIEMono() function performs a conversion from a
18       red/green/blue to a monochromatic image. The source  image  must  be  a
19       three-channel  image.  The  destination  image must be a single-channel
20       image.
21
22
23       It uses the following equation:
24
25         dst[x][y][0] = 0.2125*src[x][y][0] +
26                        0.7154*src[x][y][1] +
27                        0.0721*src[x][y][2]
28
29

PARAMETERS

31       The function takes the following arguments:
32
33       dst    Pointer to destination image.
34
35
36       src    Pointer to source image.
37
38

RETURN VALUES

40       The function returns MLIB_SUCCESS if successful. Otherwise  it  returns
41       MLIB_FAILURE.
42

ATTRIBUTES

44       See attributes(5) for descriptions of the following attributes:
45
46
47
48
49       ┌─────────────────────────────┬─────────────────────────────┐
50       │      ATTRIBUTE TYPE         │      ATTRIBUTE VALUE        │
51       ├─────────────────────────────┼─────────────────────────────┤
52       │Interface Stability          │Committed                    │
53       ├─────────────────────────────┼─────────────────────────────┤
54       │MT-Level                     │MT-Safe                      │
55       └─────────────────────────────┴─────────────────────────────┘
56

SEE ALSO

58       mlib_ImageColorRGB2CIEMono_Fp(3MLIB),   mlib_ImageColorRGB2Mono(3MLIB),
59       mlib_ImageColorRGB2Mono_Fp(3MLIB), attributes(5)
60
61
62
63SunOS 5.11                        2 Mar 2007 mlib_ImageColorRGB2CIEMono(3MLIB)
Impressum