1mlib_ImageChannelMerge(3MLImBe)diaLib Library Functiomnlsib_ImageChannelMerge(3MLIB)
2
3
4

NAME

6       mlib_ImageChannelMerge - channel merge
7

SYNOPSIS

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

DESCRIPTION

17       The mlib_ImageChannelMerge() function converts an array of single-chan‐
18       nel images into a multi-channel image.
19
20         A0 A1 A2 ...
21         B0 B1 B2 ...  ===>  A0 B0 C0 A1 B1 C1 A2 B2 C2 ...
22         C0 C1 C2 ...
23
24
25
26       All images must have the same type, same width, and  same  height.  The
27       data  type  of  the  images  can be MLIB_BYTE, MLIB_SHORT, MLIB_USHORT,
28       MLIB_INT, MLIB_FLOAT, or MLIB_DOUBLE. The destination image  must  have
29       the number of channels equal to the number of images in the srcs array.
30       The source images must be single-channel images.
31

PARAMETERS

33       The function takes the following arguments:
34
35       dst     Pointer to a multi-channel destination image.
36
37
38       srcs    Pointer to an array of single-channel source images.
39
40

RETURN VALUES

42       The function returns MLIB_SUCCESS if successful. Otherwise  it  returns
43       MLIB_FAILURE.
44

ATTRIBUTES

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

SEE ALSO

60       mlib_ImageChannelCopy(3MLIB),          mlib_ImageChannelExtract(3MLIB),
61       mlib_ImageChannelInsert(3MLIB),          mlib_ImageChannelSplit(3MLIB),
62       attributes(5)
63
64
65
66SunOS 5.11                        2 Mar 2007     mlib_ImageChannelMerge(3MLIB)
Impressum