1mlib_ImageChannelSplit(3MLImBe)diaLib Library Functiomnlsib_ImageChannelSplit(3MLIB)
2
3
4

NAME

6       mlib_ImageChannelSplit - channel split
7

SYNOPSIS

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

DESCRIPTION

17       The  mlib_ImageChannelSplit()  function  converts a multi-channel image
18       into an array of single-channel images.
19
20                                               A0 A1 A2 ...
21         A0 B0 C0 A1 B1 C1 A2 B2 C2 ...  ===>  B0 B1 B2 ...
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 source image  must  have  the
29       number of channels equal to the number of images in the dsts array. The
30       destination images must be single-channel images.
31

PARAMETERS

33       The function takes the following arguments:
34
35       dsts    Pointer to an array of single-channel destination images.
36
37
38       src     Pointer to a multi-channel source image.
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_ImageChannelMerge(3MLIB),
62       attributes(5)
63
64
65
66SunOS 5.11                        2 Mar 2007     mlib_ImageChannelSplit(3MLIB)
Impressum