1mlib_ImageMinFilter3x3(3MLImBe)diaLib Library Functiomnlsib_ImageMinFilter3x3(3MLIB)
2
3
4
6 mlib_ImageMinFilter3x3 - 3x3 Min Filter
7
9 cc [ flag... ] file... -lmlib [ library... ]
10 #include <mlib.h>
11
12 mlib_status mlib_ImageMinFilter3x3(mlib_image *dst, const mlib_image *src);
13
14
16 The mlib_ImageMinFilter3x3() function replaces the center pixel in a
17 neighborhood with the minimum 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] = MIN{ 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
34 The function takes the following arguments:
35
36 dst Pointer to destination image.
37
38
39 src Pointer to source image.
40
41
43 The function returns MLIB_SUCCESS if successful. Otherwise it returns
44 MLIB_FAILURE.
45
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
61 mlib_ImageMaxFilter3x3(3MLIB), mlib_ImageMaxFilter3x3_Fp(3MLIB),
62 mlib_ImageMaxFilter5x5(3MLIB), mlib_ImageMaxFilter5x5_Fp(3MLIB),
63 mlib_ImageMaxFilter7x7(3MLIB), mlib_ImageMaxFilter7x7_Fp(3MLIB),
64 mlib_ImageMedianFilter3x3(3MLIB), mlib_ImageMedianFilter3x3_Fp(3MLIB),
65 mlib_ImageMedianFilter3x3_US(3MLIB), mlib_ImageMedianFilter5x5(3MLIB),
66 mlib_ImageMedianFilter5x5_Fp(3MLIB), mlib_ImageMedianFil‐
67 ter5x5_US(3MLIB), mlib_ImageMedianFilter7x7(3MLIB), mlib_ImageMedian‐
68 Filter7x7_Fp(3MLIB), mlib_ImageMedianFilter7x7_US(3MLIB), mlib_ImageMe‐
69 dianFilterMxN(3MLIB), mlib_ImageMedianFilterMxN_Fp(3MLIB), mlib_Image‐
70 MedianFilterMxN_US(3MLIB), mlib_ImageMinFilter3x3_Fp(3MLIB),
71 mlib_ImageMinFilter5x5(3MLIB), mlib_ImageMinFilter5x5_Fp(3MLIB),
72 mlib_ImageMinFilter7x7(3MLIB), mlib_ImageMinFilter7x7_Fp(3MLIB),
73 mlib_ImageRankFilter3x3(3MLIB), mlib_ImageRankFilter3x3_Fp(3MLIB),
74 mlib_ImageRankFilter3x3_US(3MLIB), mlib_ImageRankFilter5x5(3MLIB),
75 mlib_ImageRankFilter5x5_Fp(3MLIB), mlib_ImageRankFilter5x5_US(3MLIB),
76 mlib_ImageRankFilter7x7(3MLIB), mlib_ImageRankFilter7x7_Fp(3MLIB),
77 mlib_ImageRankFilter7x7_US(3MLIB), mlib_ImageRankFilterMxN(3MLIB),
78 mlib_ImageRankFilterMxN_Fp(3MLIB), mlib_ImageRankFilterMxN_US(3MLIB),
79 attributes(5)
80
81
82
83SunOS 5.11 2 Mar 2007 mlib_ImageMinFilter3x3(3MLIB)