2. INTRODUCTION
Convolution & Correlation are the two basic
operations that are similar to each other.
These operations will be performed to extract
information from images.
These operations have two key features: they
are shift-invariant and linear.
3. Convolution is a mathematical operation on
two functions to produce a third function.
Convolution is similar to cross-correlation.
Convolution in spatial domain is equivalent to
the multiplication in frequency domain.
Convolution is mainly 2 types:
1)Linear Convolution
2)Circular Convolution
4. 1.Linear convolution:
• The Linear convolution of y(n) is
y(n)=x(n)*h(n)
• Linear convolution is divided into 3 types ,
a)Graphical method
b)Tabular method
c)Third method
• Ex: x[n] = {1,2,3} & h[n] = {-1,2,2}
Length=L+M-1=3+3-1=5
* Convoluted output
y[n] = [ -1, -2+2, -3+4+2, 6+4, 6]
= [-1, 0, 3, 10, 6]
5. 2.Cicular convolution:
• The Circular convolution of y(n) is
y(n)=x(n) ʘ h (n)
• Circular convolution is divided into 3 types ,
a)Matrix
b)Concentric circle
c)Using DFT&IDFT
• Ex: x[n] = {-2,4,6,0,0}
h[n] = {1,2,-3,4,-5}
Length=Max(L,M)=Max(5,5)=5
* Convoluted output
y(n) =[2,-30,20,-8,8]
6. Correlation is a mathematical operation that is
very similar to convolution which provides a
measure of similarity between the two
functions.
Correlation is a way to detect a known
waveform in a noisy background.
There are 2 types of Correlation:
1.Auto Correlation
2.Cross Correlation
7. 1.Auto correlation
• Auto correlation gives comparison of the function
with its shifted version.
• Auto correlation provides a nice way to
determine the spectral content of random signal.
• Example: x(n)={1,2,3} & x(-n)={3,2,1}
*Auto correlation of x(n)&x(-n) is y(n)
y(n)=[3,8,14,8,3]
8. 2.Cross correlation
• Cross correlation is a measure of similarity of two
series as a function.
• To compare two different functions , we use the
cross correlation function.
• Cross correlation and convolution are similar to
each other.
• Ex:x[n]={2,2,-1}&h[n]={1,2,3}
x[-n]={-1,2,2}
*The correlated output is
y[n] = [ -1, -2+2, -3+4+2, 6+4, 6]
= [-1, 0, 3, 10, 6]