Skip to content

Commit d449211

Browse files
authored
Update README.md
1 parent 458ebb1 commit d449211

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

modules/filter/README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,16 @@
33
## **Filter Algorithm: Mean Filter**
44
The mean filter algorithm replaces each pixel value with the average of all
55
pixel values in an N by N window (N = 3, 5, 7, etc), where the pixel to
6-
replace is the centering pixel. Assuming that the centering pixel is in (0, 0)
6+
replace is the centring pixel. Assuming that the centering pixel is in (0, 0)
77
position:
88

9-
$
9+
$$
1010
img(row, col) = \sum_{i = -N/2}^{N/2} {\sum_{j = -N/2}^{-N/2} {img(row + i, col + j)}}
11-
$
11+
$$
1212

1313
Also, it can computed using a convolution like:
1414

15-
$
15+
$$
1616
img(row, col) = \begin{bmatrix}
1717
\frac{1}{N^{2}} & \dots & \frac{1}{N^{2}} \\
1818
\vdots & \ddots & \vdots \\
@@ -24,7 +24,7 @@ img(row, col) = \begin{bmatrix}
2424
\vdots & \ddots & \vdots \\
2525
img(row + N/2, col - N/2) & \dots & img(row + N/2, col + N/2)
2626
\end{bmatrix}
27-
$
27+
$$
2828

2929

3030
## **Usage**

0 commit comments

Comments
 (0)