Filter
Filter
Filter
October 9, 2002
Linear Image Filters
Linear operations calculate the resulting value in the output
image pixel f(i,j) as a linear combination of brightness in a
local neighborhood of the pixel h(i,j) in the input image.
This equation is called to discrete convolution:
a b
f (i, j ) w * h w(m, n)h(i m, j n)
m a nb
1 2 3
X 4 5 6, w 1 0 1
3 4 1
Image smoothing = image blurring
Averaging of brightness values is a special case of discrete
convolution. For a 3 x 3 neighborhood the convolution mask w is
1 1 1
1
w 1 1 1
9
1 1 1
Applying this mask to an image results in smoothing.
1 1 1 1 2 1
1
1
w 1 2 1 w 2 4 2
10 16
1 1 1 1 2 1
Edge detectors
•locate sharp changes in the intensity function
•edges are pixels where brightness changes abruptly.
Kirsch operator
Nonlinear Image Filters
I1 I 2 I 3 ... I N 2
Median filter selects the middle value as the value of (x,y).
dilation(W ( x, y )) max(W ( x, y ))
erosion (W ( x, y )) min(W ( x, y ))
opening dilation erosion
clo sin g erosion dilation
http://www.ee.siue.edu/~cvip/CVIPtools_demos/mainframe.shtml
Homework 2