You are on page 1of 9

Digital Image Processing

EE-4325
SLIDE NO. 12

PRESENTED BY: UMAIR MUKATI


Content
• Gaussian filtering
Gaussian filter
• Gaussian filter is a type of linear filter.
• It tends to blur sharp edges.
Gaussian filter
Gaussian filter
• Gaussian filter is smoothing filter in the 2d convolution operation
that is used to remove noise and blur the image.
• Gaussian filter is applied by convoluting each point in the input
array with a gaussian kernel and then summing them up altogether
to produce output array.
1D gaussian equation is given by:
•   2
𝑥
− 2
1 2𝜎
𝑔 (𝑥 )= 𝑒
√2 𝜋 𝜎
2D gaussian equation is given by:
•  
• Here s. dev. is 1.
1 4 7 4 1

4 20 33 20 4

7 33 55 33 7 ¿  331
4 20 33 20 4

1 4 7 4 1
MATLAB Code
• h = fspecial('gaussian',hsize,sigma);
• blurred = imfilter(Image, h);

You might also like