1mlib_ImageRankFilterMxN(3MLmIeBd)iaLib Library Functimolnisb_ImageRankFilterMxN(3MLIB)
2
3
4
6 mlib_ImageRankFilterMxN - MxN rank filter
7
9 cc [ flag... ] file... -lmlib [ library... ]
10 #include <mlib.h>
11
12 mlib_status mlib_ImageRankFilterMxN(mlib_image *dst, const mlib_image *src,
13 mlib_s32 m, mlib_s32 n, mlib_s32 rank);
14
15
17 The mlib_ImageRankFilterMxN() function performs MxN rank filtering on
18 an image. Each pixel of the destination image is the pixel with the
19 user-specified rank in the filter window.
20
21
22 The source and destination images must be single-channel images.
23
25 The function takes the following arguments:
26
27 dst Pointer to destination image.
28
29
30 src Pointer to source image.
31
32
33 m Width of the filter window. m must be odd number greater than
34 1.
35
36
37 n Height of the filter window. n must be odd number greater than
38 1.
39
40
41 rank The rank of the destination pixel. The pixel with minimum value
42 is designated rank 0.
43
44
46 The function returns MLIB_SUCCESS if successful. Otherwise it returns
47 MLIB_FAILURE.
48
50 See attributes(5) for descriptions of the following attributes:
51
52
53
54
55 ┌─────────────────────────────┬─────────────────────────────┐
56 │ ATTRIBUTE TYPE │ ATTRIBUTE VALUE │
57 ├─────────────────────────────┼─────────────────────────────┤
58 │Interface Stability │Committed │
59 ├─────────────────────────────┼─────────────────────────────┤
60 │MT-Level │MT-Safe │
61 └─────────────────────────────┴─────────────────────────────┘
62
64 mlib_ImageMaxFilter3x3(3MLIB), mlib_ImageMaxFilter3x3_Fp(3MLIB),
65 mlib_ImageMaxFilter5x5(3MLIB), mlib_ImageMaxFilter5x5_Fp(3MLIB),
66 mlib_ImageMaxFilter7x7(3MLIB), mlib_ImageMaxFilter7x7_Fp(3MLIB),
67 mlib_ImageMedianFilter3x3(3MLIB), mlib_ImageMedianFilter3x3_Fp(3MLIB),
68 mlib_ImageMedianFilter3x3_US(3MLIB), mlib_ImageMedianFilter5x5(3MLIB),
69 mlib_ImageMedianFilter5x5_Fp(3MLIB), mlib_ImageMedianFil‐
70 ter5x5_US(3MLIB), mlib_ImageMedianFilter7x7(3MLIB), mlib_ImageMedian‐
71 Filter7x7_Fp(3MLIB), mlib_ImageMedianFilter7x7_US(3MLIB), mlib_ImageMe‐
72 dianFilterMxN(3MLIB), mlib_ImageMedianFilterMxN_Fp(3MLIB), mlib_Image‐
73 MedianFilterMxN_US(3MLIB), mlib_ImageMinFilter3x3(3MLIB), mlib_ImageM‐
74 inFilter3x3_Fp(3MLIB), mlib_ImageMinFilter5x5(3MLIB), mlib_ImageMinFil‐
75 ter5x5_Fp(3MLIB), mlib_ImageMinFilter7x7(3MLIB), mlib_ImageMinFil‐
76 ter7x7_Fp(3MLIB), mlib_ImageRankFilter3x3(3MLIB), mlib_ImageRankFil‐
77 ter3x3_Fp(3MLIB), mlib_ImageRankFilter3x3_US(3MLIB), mlib_ImageRankFil‐
78 ter5x5(3MLIB), mlib_ImageRankFilter5x5_Fp(3MLIB), mlib_ImageRankFil‐
79 ter5x5_US(3MLIB), mlib_ImageRankFilter7x7(3MLIB), mlib_ImageRankFil‐
80 ter7x7_Fp(3MLIB), mlib_ImageRankFilter7x7_US(3MLIB), mlib_ImageRankFil‐
81 terMxN_Fp(3MLIB), mlib_ImageRankFilterMxN_US(3MLIB), attributes(5)
82
83
84
85SunOS 5.11 2 Mar 2007 mlib_ImageRankFilterMxN(3MLIB)