Image Sharpening by Unsharp Masking and
Highboost Filtering
1. Blur the original
image
2. Subtract the blurred
image from the
original to get the
mask
3. Add the mask to the
original
Image Sharpening by Unsharp Masking
and Highboost Filtering
g(x, y) f (x, y) k * f (x, y) f (x, y) k0
When 𝑘 > 1, it becomes a highboost filtering.
Example: when 𝑘 = 1
0 0 0 0 0 0 1 1 1 1 1 −1 −1 −1
0 1 0 + 0 1 0 − 1 1 1 = −1 17 −1
9 9 −1 −1 −1
0 0 0 0 0 0 1 1 1
Sum of the coefficients is 1
Original
An Example
Blurred
Unsharp mask
Unsharp masking k=1
Highboost filitering k=4.5
Gradient for Image Sharpening -- Example
Original Sobel gradient
An application in industrial defect detection.
Median Filter (Smoothing Filter)
Why We Need Fourier Transform
• Filtering in frequency domain
Image smoothing Edge Image sharpening
• Efficient computation for convolution
Preliminary Concepts
Im
Complex number C R jI j 1 𝐶
Conjugate C* R jI 𝜃
Re
Polar coordinate representation
𝐶∗
C | C | (cos j sin
| C | R 2 I 2 ,
Euler’s formula e j
cos j sin C | C | e j
Concept of Fourier Series And Transforms
Fourier series: any periodic function can be
represented by a discrete weighted sum of
sines and cosines
Concept of Fourier Series And Transforms
Fourier series: any periodic function can be represented by a
discrete weighted sum of sines and cosines
Fourier transform: an arbitrary function with finite duration
(non-periodic function) can be expressed by a weighted
integrals of sines and cosines
Fourier transform is more general!
Fourier Series
𝑓(𝑡) is a continuous function with period 𝑇, we have
Fourier Transform in 1D
𝒇(𝒕) is an arbitrary non-periodic function
𝐹 𝜔 = න 𝑓(𝑡)𝑒 −𝑗2𝜋𝑓𝑡 𝑑𝑡 Fourier transform
−∞
∞
𝑗2𝜋𝑓𝑡 Inverse fourier transform
𝑓 𝑡 = න 𝐹(𝜔)𝑒 𝑑𝜔
−∞
FT has the property of Linearity
x(t) af (t) bg(t) X ( ) aF ( ) bG( )
FT of a Rectangle Function
Rectangle function Sinc function
Impulse
Impulse
𝐹𝛿 𝑡 = 1
𝐹 𝛿 𝑡 − 𝑡𝑜 = 𝑒 −𝑗2𝜋𝑓𝑡𝑜
Impulse Train
FT of Impulse Train
S(ω) ω
Sampling in Spatial Domain
Convolution
FT of Convolution
Sampling in Frequency Domain
f f F(f)
f
F(f)
F(f)
F(f)
F(f)
Reconstruction
Alising-Undersampling
f
Extension of FT to 2D
Extension of FT to 2D
2D Sampling
Alising in 2D
Alising Example
FT and Phase Angle
FT and Phase Angle
FT- Translation and Rotation