1mlib_ImageMaxFilter3x3(3MLImBe)diaLib Library Functiomnlsib_ImageMaxFilter3x3(3MLIB)
2
3
4

NAME

6       mlib_ImageMaxFilter3x3 - 3x3 maximum filter
7

SYNOPSIS

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

DESCRIPTION

16       The  mlib_ImageMaxFilter3x3()  function  replaces the center pixel in a
17       neighborhood with the maximum value in that neighborhood for  each  3x3
18       neighborhood in the image.
19
20
21       The source and destination images must be single-channel images.
22
23
24       It uses the following equation:
25
26         dst[x][y][0] = MAX{ src[p][q][0],
27                             x-1 ≤ p ≤ x+1; y-1 ≤ q ≤ y+1 }
28
29
30
31       where x = 1, ..., w - 2; y = 1, ..., h - 2.
32

PARAMETERS

34       The function takes the following arguments:
35
36       dst    Pointer to destination image.
37
38
39       src    Pointer to source image.
40
41

RETURN VALUES

43       The  function  returns MLIB_SUCCESS if successful. Otherwise it returns
44       MLIB_FAILURE.
45

ATTRIBUTES

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

SEE ALSO

61       mlib_ImageMaxFilter3x3_Fp(3MLIB),        mlib_ImageMaxFilter5x5(3MLIB),
62       mlib_ImageMaxFilter5x5_Fp(3MLIB),        mlib_ImageMaxFilter7x7(3MLIB),
63       mlib_ImageMaxFilter7x7_Fp(3MLIB),     mlib_ImageMedianFilter3x3(3MLIB),
64       mlib_ImageMedianFilter3x3_Fp(3MLIB),               mlib_ImageMedianFil‐
65       ter3x3_US(3MLIB),  mlib_ImageMedianFilter5x5(3MLIB),  mlib_ImageMedian‐
66       Filter5x5_Fp(3MLIB), mlib_ImageMedianFilter5x5_US(3MLIB), mlib_ImageMe‐
67       dianFilter7x7(3MLIB), mlib_ImageMedianFilter7x7_Fp(3MLIB),  mlib_Image‐
68       MedianFilter7x7_US(3MLIB),            mlib_ImageMedianFilterMxN(3MLIB),
69       mlib_ImageMedianFilterMxN_Fp(3MLIB),            mlib_ImageMedianFilter‐
70       MxN_US(3MLIB),     mlib_ImageMinFilter3x3(3MLIB),     mlib_ImageMinFil‐
71       ter3x3_Fp(3MLIB),   mlib_ImageMinFilter5x5(3MLIB),    mlib_ImageMinFil‐
72       ter5x5_Fp(3MLIB),    mlib_ImageMinFilter7x7(3MLIB),   mlib_ImageMinFil‐
73       ter7x7_Fp(3MLIB),  mlib_ImageRankFilter3x3(3MLIB),   mlib_ImageRankFil‐
74       ter3x3_Fp(3MLIB), mlib_ImageRankFilter3x3_US(3MLIB), mlib_ImageRankFil‐
75       ter5x5(3MLIB),  mlib_ImageRankFilter5x5_Fp(3MLIB),   mlib_ImageRankFil‐
76       ter5x5_US(3MLIB),   mlib_ImageRankFilter7x7(3MLIB),  mlib_ImageRankFil‐
77       ter7x7_Fp(3MLIB), mlib_ImageRankFilter7x7_US(3MLIB), mlib_ImageRankFil‐
78       terMxN(3MLIB), mlib_ImageRankFilterMxN_Fp(3MLIB), mlib_ImageRankFilter‐
79       MxN_US(3MLIB), attributes(5)
80
81
82
83SunOS 5.11                        2 Mar 2007     mlib_ImageMaxFilter3x3(3MLIB)
Impressum