1mlib_ImageMedianFilterMxN(3mMeLdIiBa)Lib Library Funcmtliiobn_sImageMedianFilterMxN(3MLIB)
2
3
4

NAME

6       mlib_ImageMedianFilterMxN - MxN median filter
7

SYNOPSIS

9       cc [ flag... ] file... -lmlib [ library... ]
10       #include <mlib.h>
11
12       mlib_status mlib_ImageMedianFilterMxN(mlib_image *dst,
13            const mlib_image *src, mlib_s32 m, mlib_s32 n, mlib_median_mask mmask,
14            mlib_s32 cmask, mlib_edge edge);
15
16

DESCRIPTION

18       The  mlib_ImageMedianFilterMxN() function performs MxN median filtering
19       on an image. Each pixel of the destination image is the pixel with rank
20       middle in the filter window.
21

PARAMETERS

23       The function takes the following arguments:
24
25       dst      Pointer to destination image.
26
27
28       src      Pointer to source image.
29
30
31       m        Width  of the filter window. m must be odd number greater than
32                1.
33
34
35       n        Height of the filter window. n must be odd number greater than
36                1.
37
38
39       mmask    Shape  of  the mask to be used for median filtering. It can be
40                one of the following:
41
42                  MLIB_MEDIAN_MASK_RECT
43                  MLIB_MEDIAN_MASK_PLUS
44                  MLIB_MEDIAN_MASK_X
45                  MLIB_MEDIAN_MASK_RECT_SEPARABLE
46
47
48
49       cmask    Channel mask to indicate the channels to be filtered. Each bit
50                of  which represents a channel in the image. The channels cor‐
51                responded to 1 bits are those to be processed.
52
53
54       edge     Type of edge condition. It can be one of the following:
55
56                  MLIB_EDGE_DST_NO_WRITE
57                  MLIB_EDGE_DST_FILL_ZERO
58                  MLIB_EDGE_DST_COPY_SRC
59                  MLIB_EDGE_SRC_EXTEND
60
61
62

RETURN VALUES

64       The function returns MLIB_SUCCESS if successful. Otherwise  it  returns
65       MLIB_FAILURE.
66

ATTRIBUTES

68       See attributes(5) for descriptions of the following attributes:
69
70
71
72
73       ┌─────────────────────────────┬─────────────────────────────┐
74       │      ATTRIBUTE TYPE         │      ATTRIBUTE VALUE        │
75       ├─────────────────────────────┼─────────────────────────────┤
76       │Interface Stability          │Committed                    │
77       ├─────────────────────────────┼─────────────────────────────┤
78       │MT-Level                     │MT-Safe                      │
79       └─────────────────────────────┴─────────────────────────────┘
80

SEE ALSO

82       mlib_ImageMaxFilter3x3(3MLIB),        mlib_ImageMaxFilter3x3_Fp(3MLIB),
83       mlib_ImageMaxFilter5x5(3MLIB),        mlib_ImageMaxFilter5x5_Fp(3MLIB),
84       mlib_ImageMaxFilter7x7(3MLIB),        mlib_ImageMaxFilter7x7_Fp(3MLIB),
85       mlib_ImageMedianFilter3x3(3MLIB),  mlib_ImageMedianFilter3x3_Fp(3MLIB),
86       mlib_ImageMedianFilter3x3_US(3MLIB),  mlib_ImageMedianFilter5x5(3MLIB),
87       mlib_ImageMedianFilter5x5_Fp(3MLIB),               mlib_ImageMedianFil‐
88       ter5x5_US(3MLIB),  mlib_ImageMedianFilter7x7(3MLIB),  mlib_ImageMedian‐
89       Filter7x7_Fp(3MLIB), mlib_ImageMedianFilter7x7_US(3MLIB), mlib_ImageMe‐
90       dianFilterMxN_Fp(3MLIB),           mlib_ImageMedianFilterMxN_US(3MLIB),
91       mlib_ImageMinFilter3x3(3MLIB),        mlib_ImageMinFilter3x3_Fp(3MLIB),
92       mlib_ImageMinFilter5x5(3MLIB),        mlib_ImageMinFilter5x5_Fp(3MLIB),
93       mlib_ImageMinFilter7x7(3MLIB),        mlib_ImageMinFilter7x7_Fp(3MLIB),
94       mlib_ImageRankFilter3x3(3MLIB),      mlib_ImageRankFilter3x3_Fp(3MLIB),
95       mlib_ImageRankFilter3x3_US(3MLIB),      mlib_ImageRankFilter5x5(3MLIB),
96       mlib_ImageRankFilter5x5_Fp(3MLIB),   mlib_ImageRankFilter5x5_US(3MLIB),
97       mlib_ImageRankFilter7x7(3MLIB),      mlib_ImageRankFilter7x7_Fp(3MLIB),
98       mlib_ImageRankFilter7x7_US(3MLIB),      mlib_ImageRankFilterMxN(3MLIB),
99       mlib_ImageRankFilterMxN_Fp(3MLIB),   mlib_ImageRankFilterMxN_US(3MLIB),
100       attributes(5)
101
102
103
104SunOS 5.11                        2 Mar 2007  mlib_ImageMedianFilterMxN(3MLIB)
Impressum