1mlib_ImageMedianFilter7x7(3mMeLdIiBa)Lib Library Funcmtliiobn_sImageMedianFilter7x7(3MLIB)
2
3
4
6 mlib_ImageMedianFilter7x7 - 7x7 median filter
7
9 cc [ flag... ] file... -lmlib [ library... ]
10 #include <mlib.h>
11
12 mlib_status mlib_ImageMedianFilter7x7(mlib_image *dst,
13 const mlib_image *src, mlib_median_mask mmask, mlib_s32 cmask,
14 mlib_edge edge);
15
16
18 The mlib_ImageMedianFilter7x7() 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(3MLIB), mlib_ImageMedianFilter3x3_Fp(3MLIB),
78 mlib_ImageMedianFilter3x3_US(3MLIB), mlib_ImageMedianFilter5x5(3MLIB),
79 mlib_ImageMedianFilter5x5_Fp(3MLIB), mlib_ImageMedianFil‐
80 ter5x5_US(3MLIB), mlib_ImageMedianFilter7x7_Fp(3MLIB), mlib_ImageMedi‐
81 anFilter7x7_US(3MLIB), mlib_ImageMedianFilterMxN(3MLIB), mlib_ImageMe‐
82 dianFilterMxN_Fp(3MLIB), mlib_ImageMedianFilterMxN_US(3MLIB),
83 mlib_ImageMinFilter3x3(3MLIB), mlib_ImageMinFilter3x3_Fp(3MLIB),
84 mlib_ImageMinFilter5x5(3MLIB), mlib_ImageMinFilter5x5_Fp(3MLIB),
85 mlib_ImageMinFilter7x7(3MLIB), mlib_ImageMinFilter7x7_Fp(3MLIB),
86 mlib_ImageRankFilter3x3(3MLIB), mlib_ImageRankFilter3x3_Fp(3MLIB),
87 mlib_ImageRankFilter3x3_US(3MLIB), mlib_ImageRankFilter5x5(3MLIB),
88 mlib_ImageRankFilter5x5_Fp(3MLIB), mlib_ImageRankFilter5x5_US(3MLIB),
89 mlib_ImageRankFilter7x7(3MLIB), mlib_ImageRankFilter7x7_Fp(3MLIB),
90 mlib_ImageRankFilter7x7_US(3MLIB), mlib_ImageRankFilterMxN(3MLIB),
91 mlib_ImageRankFilterMxN_Fp(3MLIB), mlib_ImageRankFilterMxN_US(3MLIB),
92 attributes(5)
93
94
95
96SunOS 5.11 2 Mar 2007 mlib_ImageMedianFilter7x7(3MLIB)