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

NAME

6       mlib_ImageDilate8 - eight neighbor dilate
7

SYNOPSIS

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

DESCRIPTION

16       The  mlib_ImageDilate8()  function  performs a dilation operation on an
17       image by using all eight of each pixel's neighbors. The source and des‐
18       tination  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 8-neighbor binary images, it uses the following equation:
23
24         dst[x][y][0] = OR{ src[p][q][0],
25                            x-1 ≤ p ≤ x+1; y-1 ≤ q ≤ y+1 }
26
27
28
29       For 8-neighbor grayscale images, it uses the following equation:
30
31         dst[x][y][0] = MAX{ src[p][q][0],
32                             x-1 ≤ p ≤ x+1; y-1 ≤ q ≤ y+1 }
33
34
35
36       where x = 1, ..., w-2; y = 1, ..., h-2.
37

PARAMETERS

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

RETURN VALUES

48       The function returns MLIB_SUCCESS if successful. Otherwise  it  returns
49       MLIB_FAILURE.
50

ATTRIBUTES

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

SEE ALSO

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