1mlib_ImageDilate4_Fp(3MLIB)mediaLib Library Functionsmlib_ImageDilate4_Fp(3MLIB)
2
3
4
6 mlib_ImageDilate4_Fp - four neighbor dilate
7
9 cc [ flag... ] file... -lmlib [ library... ]
10 #include <mlib.h>
11
12 mlib_status mlib_ImageDilate4_Fp(mlib_image *dst, const mlib_image *src);
13
14
16 The mlib_ImageDilate4_Fp() function performs a floating-point dilation
17 operation on an image by using each pixel's four orthogonal neighbors.
18 The source and destination images must be single-channel images. The
19 data type can be MLIB_FLOAT or MLIB_DOUBLE.
20
21
22 For 4-neighbor grayscale images, it uses the following equation:
23
24 dst[x][y][0] = MAX{ 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 where x = 1, ..., w-2; y = 1, ..., h-2.
31
33 The function takes the following arguments:
34
35 dst Pointer to destination image.
36
37
38 src Pointer to source image.
39
40
42 The function returns MLIB_SUCCESS if successful. Otherwise it returns
43 MLIB_FAILURE.
44
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
60 mlib_ImageDilate4(3MLIB), mlib_ImageDilate8(3MLIB), mlib_ImageDi‐
61 late8_Fp(3MLIB), attributes(5)
62
63
64
65SunOS 5.11 2 Mar 2007 mlib_ImageDilate4_Fp(3MLIB)