1mlib_ImageDilate4(3MLIB)  mediaLib Library Functions  mlib_ImageDilate4(3MLIB)
2
3
4

NAME

6       mlib_ImageDilate4 - four neighbor dilate
7

SYNOPSIS

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

DESCRIPTION

16       The  mlib_ImageDilate4()  function  performs a dilation operation on an
17       image by using each pixel's four orthogonal neighbors. The  source  and
18       destination  images must be single-channel images. The data type can be
19       MLIB_BIT, MLIB_BYTE, MLIB_SHORT, MLIB_USHORT, or MLIB_INT.
20
21
22       For 4-neighbor binary images, it uses the following equation:
23
24         dst[x][y][0] = OR{ src[x][y][0],
25                            src[x-1][y][0], src[x+1][y][0],
26                            src[x][y-1][0], src[x][y+1][0] }
27
28
29
30       For 4-neighbor grayscale images, it uses the following equation:
31
32         dst[x][y][0] = MAX{ src[x][y][0],
33                             src[x-1][y][0], src[x+1][y][0],
34                             src[x][y-1][0], src[x][y+1][0] }
35
36
37
38       where x = 1, ..., w-2; y = 1, ..., h-2.
39

PARAMETERS

41       The function takes the following arguments:
42
43       dst    Pointer to destination image
44
45
46       src    Pointer to source image.
47
48

RETURN VALUES

50       The function returns MLIB_SUCCESS if successful. Otherwise  it  returns
51       MLIB_FAILURE.
52

ATTRIBUTES

54       See attributes(5) for descriptions of the following attributes:
55
56
57
58
59       ┌─────────────────────────────┬─────────────────────────────┐
60       │      ATTRIBUTE TYPE         │      ATTRIBUTE VALUE        │
61       ├─────────────────────────────┼─────────────────────────────┤
62       │Interface Stability          │Committed                    │
63       ├─────────────────────────────┼─────────────────────────────┤
64       │MT-Level                     │MT-Safe                      │
65       └─────────────────────────────┴─────────────────────────────┘
66

SEE ALSO

68       mlib_ImageDilate4_Fp(3MLIB),   mlib_ImageDilate8(3MLIB),  mlib_ImageDi‐
69       late8_Fp(3MLIB), attributes(5)
70
71
72
73SunOS 5.11                        2 Mar 2007          mlib_ImageDilate4(3MLIB)
Impressum