Spatial Filt+Frequency Domaing
Spatial Filt+Frequency Domaing
Spatial Filt+Frequency Domaing
&
Frequency Domain Image
Enhancement
Sankalp Kallakuri
elsanky@gmail.com
Spatial Filtering
• Involves moving a kernel over the image to enhance the
image
• Kernel size is << Image size
• Odd sized masks are more common
Spatial Filtering
m(-1,-1) m(0,-1) m(1,-1)
• Near the edges parts of the masks may lie beyond the image
boundary.
Examples
1 1 1 1 2 1
1/9 x 1 1 1 1/16 x 2 4 2
1 1 1 1 2 1
Smoothing Spatial Filters
m( s , t ) f ( x s , y t )
g ( x, y ) s at b
a b
m( s , t )
s at b
3 6 9 12