1mlib_ImageColorRGB2Mono_Fp(m3eMdLiIaBL)ib Library Funmcltiibo_nIsmageColorRGB2Mono_Fp(3MLIB)
2
3
4

NAME

6       mlib_ImageColorRGB2Mono_Fp - RGB to monochrome conversion
7

SYNOPSIS

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

DESCRIPTION

17       The  mlib_ImageColorRGB2Mono_Fp() 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] = weight[0]*src[x][y][0] +
26                        weight[1]*src[x][y][1] +
27                        weight[2]*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
39       weight    Array of three blending coefficients. It is recommended  that
40                 these sum to 1.0, but it is not required.
41
42

RETURN VALUES

44       The  function  returns MLIB_SUCCESS if successful. Otherwise it returns
45       MLIB_FAILURE.
46

ATTRIBUTES

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

SEE ALSO

62       mlib_ImageColorRGB2CIEMono(3MLIB),                     mlib_ImageColor‐
63       RGB2CIEMono_Fp(3MLIB), mlib_ImageColorRGB2Mono(3MLIB), attributes(5)
64
65
66
67SunOS 5.11                        2 Mar 2007 mlib_ImageColorRGB2Mono_Fp(3MLIB)
Impressum