4 Chapter2
4 Chapter2
IMAGE PROCESSING
CHAPTER 2: IMAGE TRANSFORMATION
▪ Image transforms
▪ Convolution
▪ Fourier series and transform
▪ Wavelets
▪ Filters
Eq. (1)
Eq. (2)
▪ Convolution:
▪ Continuous:
CONVOLUTION
▪ Output function is a scaled shifted version of impulse response
▪ , * - convolution operator ; h(x) – convolution kernel or filter
▪ If h(x) = (x) , then we have an ideal filter (output = input)
▪ Usually h(x) extends over several neighbours
▪ Discrete convolution:
8 10 12 3 5 9 8 7 e F G h i
14 16 18 1 6 6 5 4 = j k L m n
20 22 24 4 7 3 2 1 o p q r s
26 28 30 2 3 t u v w x
▪ The box in red colour is the mask (or filter or kernel), and the values in red
are the values of the mask.
▪ The grey colour box and its values belong to the input image. Now for the
first pixel of the input image, the value will be calculated as:
First pixel = (5*2) + (4*4) + (2*8) + (1*10)
= 10 + 16 + 16 + 10
= 52
▪ Place 52 in the original image at the first index and repeat this procedure
for each pixel of the image
CONVOLUTION: EXAMPLE 2 (AVERAGING)
▪ Spatial domain
Output image
matrix
▪ Frequency domain
FOURIER SERIES & TRANSFORM
FOURIER SERIES & TRANSFORM
The function at the bottom is the sum of the four functions above it
FOURIER SERIES
dx dy
du dv
FOURIER TRANSFORM
Sample applications
WAVELETS
▪ In real world, data or signals ▪ Images with smooth regions
frequently exhibit slowly interrupted by edges or
changing trends or oscillations abrupt changes in contrast
punctuated with transients
WAVELETS
▪ These abrupt changes are often the most interesting parts of the
data both perceptually and in terms of the information they
provide
▪ The Fourier transform is a powerful tool for data analysis.
However, it does not represent abrupt changes efficiently, i.e.:
➢ the Fourier transform represents data as a sum of sine waves
which are not localized in time or space
➢ the sine waves oscillate forever
WAVELETS
▪ Therefore, to accurately analyze signals and images that have
abrupt changes, a new class of functions that are well localized in
time and frequency need to be used
▪ A wavelet is a rapidly decaying wave like oscillation that has
zero mean unlike sinusoids which extends to infinity
▪ A wavelet exists for a finite duration
▪ Wavelet come in different sizes and
shapes
=
WAVELETS
▪ A key strength of
wavelet analysis is to
choose the right
wavelet
➢ need to consider the
application you will
use it for
▪ 2 important wavelet
transform concepts:
scaling and shifting (or
translation)
WAVELETS
▪ Signal of wavelet, Ψ(t):
➢ scaling refers to the process of stretching or shrinking the
signal in time which can be expressed as follows, where:
▪ The most common image transform is to take spatial data and transforms it
into a frequency data
▪ Low-pass filter and high-pass filters are some of the basic frequency
domain filters
THAT’S ALL!
END OF CHAPTER 2