1mlib_ImageErode4_Fp(3MLIB)mediaLib Library Functionsmlib_ImageErode4_Fp(3MLIB)
2
3
4

NAME

6       mlib_ImageErode4_Fp - four neighbor erode
7

SYNOPSIS

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

DESCRIPTION

16       The  mlib_ImageErode4_Fp()  function  performs an erode 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 of the
19       images 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] = MIN{ 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

PARAMETERS

33       The function takes the following arguments:
34
35       dst    Pointer to destination image.
36
37
38       src    Pointer to 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_ImageErode4(3MLIB),                       mlib_ImageErode8(3MLIB),
61       mlib_ImageErode8_Fp(3MLIB), attributes(5)
62
63
64
65SunOS 5.11                        2 Mar 2007        mlib_ImageErode4_Fp(3MLIB)
Impressum