AVG3x3 filter
The standard average or smooth filter is a standard linear filter which works in a 3 by 3 environment. The values in the matrix are:
1 |
1 |
1 |
|
1 |
1 |
1 |
|
1 |
1 |
1 |
Gain factor = 1/9 = 0.111111
When 9 values in an input map are:
17 |
22 |
18 |
|
21 |
15 |
18 |
|
17 |
20 |
23 |
The filter calculates:
(1*17 + 1*22 + 1*18 + 1*21 + 1*15 + 1*18 + 1*17 + 1*21 + 1*23) * 0.111111 = 19
The output value assigned to the central pixel is 19 (the value in the input map was 15) .
See also: