1mlib_ImageMedianFilter3x3(3mMeLdIiBa)Lib Library Funcmtliiobn_sImageMedianFilter3x3(3MLIB)
2
3
4
6 mlib_ImageMedianFilter3x3 - 3x3 median filter
7
9 cc [ flag... ] file... -lmlib [ library... ]
10 #include <mlib.h>
11
12 mlib_status mlib_ImageMedianFilter3x3(mlib_image *dst,
13 const mlib_image *src, mlib_median_mask mmask, mlib_s32 cmask,
14 mlib_edge edge);
15
16
18 The mlib_ImageMedianFilter3x3() function performs median filtering on
19 an image. Each pixel of the destination image is the pixel with rank
20 middle in the filter window.
21
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 mmask Shape of the mask to be used for median filtering. It can be
32 one of the following:
33
34 MLIB_MEDIAN_MASK_RECT
35 MLIB_MEDIAN_MASK_PLUS
36 MLIB_MEDIAN_MASK_X
37 MLIB_MEDIAN_MASK_RECT_SEPARABLE
38
39
40
41 cmask Channel mask to indicate the channels to be filtered. Each bit
42 of which represents a channel in the image. The channels cor‐
43 responded to 1 bits are those to be processed.
44
45
46 edge Type of edge condition. It can be one of the following:
47
48 MLIB_EDGE_DST_NO_WRITE
49 MLIB_EDGE_DST_FILL_ZERO
50 MLIB_EDGE_DST_COPY_SRC
51 MLIB_EDGE_SRC_EXTEND
52
53
54
56 The function returns MLIB_SUCCESS if successful. Otherwise it returns
57 MLIB_FAILURE.
58
60 See attributes(5) for descriptions of the following attributes:
61
62
63
64
65 ┌─────────────────────────────┬─────────────────────────────┐
66 │ ATTRIBUTE TYPE │ ATTRIBUTE VALUE │
67 ├─────────────────────────────┼─────────────────────────────┤
68 │Interface Stability │Committed │
69 ├─────────────────────────────┼─────────────────────────────┤
70 │MT-Level │MT-Safe │
71 └─────────────────────────────┴─────────────────────────────┘
72
74 mlib_ImageMaxFilter3x3(3MLIB), mlib_ImageMaxFilter3x3_Fp(3MLIB),
75 mlib_ImageMaxFilter5x5(3MLIB), mlib_ImageMaxFilter5x5_Fp(3MLIB),
76 mlib_ImageMaxFilter7x7(3MLIB), mlib_ImageMaxFilter7x7_Fp(3MLIB),
77 mlib_ImageMedianFilter3x3_Fp(3MLIB), mlib_ImageMedianFil‐
78 ter3x3_US(3MLIB), mlib_ImageMedianFilter5x5(3MLIB), mlib_ImageMedian‐
79 Filter5x5_Fp(3MLIB), mlib_ImageMedianFilter5x5_US(3MLIB), mlib_ImageMe‐
80 dianFilter7x7(3MLIB), mlib_ImageMedianFilter7x7_Fp(3MLIB), mlib_Image‐
81 MedianFilter7x7_US(3MLIB), mlib_ImageMedianFilterMxN(3MLIB),
82 mlib_ImageMedianFilterMxN_Fp(3MLIB), mlib_ImageMedianFilter‐
83 MxN_US(3MLIB), mlib_ImageMinFilter3x3(3MLIB), mlib_ImageMinFil‐
84 ter3x3_Fp(3MLIB), mlib_ImageMinFilter5x5(3MLIB), mlib_ImageMinFil‐
85 ter5x5_Fp(3MLIB), mlib_ImageMinFilter7x7(3MLIB), mlib_ImageMinFil‐
86 ter7x7_Fp(3MLIB), mlib_ImageRankFilter3x3(3MLIB), mlib_ImageRankFil‐
87 ter3x3_Fp(3MLIB), mlib_ImageRankFilter3x3_US(3MLIB), mlib_ImageRankFil‐
88 ter5x5(3MLIB), mlib_ImageRankFilter5x5_Fp(3MLIB), mlib_ImageRankFil‐
89 ter5x5_US(3MLIB), mlib_ImageRankFilter7x7(3MLIB), mlib_ImageRankFil‐
90 ter7x7_Fp(3MLIB), mlib_ImageRankFilter7x7_US(3MLIB), mlib_ImageRankFil‐
91 terMxN(3MLIB), mlib_ImageRankFilterMxN_Fp(3MLIB), mlib_ImageRankFilter‐
92 MxN_US(3MLIB), attributes(5)
93
94
95
96SunOS 5.11 2 Mar 2007 mlib_ImageMedianFilter3x3(3MLIB)