SPATIAL FILTERING IN IMAGE PROCESSING

45,767 views 27 slides Dec 21, 2017
Slide 1
Slide 1 of 27
Slide 1
1
Slide 2
2
Slide 3
3
Slide 4
4
Slide 5
5
Slide 6
6
Slide 7
7
Slide 8
8
Slide 9
9
Slide 10
10
Slide 11
11
Slide 12
12
Slide 13
13
Slide 14
14
Slide 15
15
Slide 16
16
Slide 17
17
Slide 18
18
Slide 19
19
Slide 20
20
Slide 21
21
Slide 22
22
Slide 23
23
Slide 24
24
Slide 25
25
Slide 26
26
Slide 27
27

About This Presentation

It describes smoothing and sharpening techniques of spatial filtering with linear and non linear functions WIT00 H


Slide Content

SPATIAL FILTERING with smoothing & sharpening techniques PRESENTED BY , J.FRIEDA, R.MANI MEGALAI, M.MUTHU LAKSHMI, MPhil (CSE), MS UNIVERSITY, TIRUNELVELI.

IMAGE ENHANCEMENT Image enhancement is to improve the brightness, contrast and appearance of an images.

IMAGE ENHANCEMENT TECHNIQUES

Introduction To Filters FILTER: Filter is a process that removes some unwanted components or small details in a image. TYPES OF FILTERS : SPATIAL DOMAIN FILTERS FREQUENCY DOMAIN FILTERS

SPATIAL FILTER The spatial filter is just moving the filter mask from point to point in an image. The filter mask may be 3x3 mask or 5x5 mask or to be 7x7 mask. Example 3x3 mask in a 5x5 image

Generating Spatial Filter mask Generate mxn linear Spatial filter requires mn mask coefficients.These are selected based on the type of filter. so it computes the sum of products Example , the average of 3x3 neighborhood on ( x,y ) is calculated by using the formula   If we take Gaussian function of 2 values the basic formula as follows ‘ σ ’ is standard deviation , x and y are integers.

The Approaches of Spatial Filtering Spatial filter consist of two steps A neighborhood (small rectangle) A predefined operation performed on image pixels. Filtering creates a new pixel value replaced by old pixel value.

3*3 mask and the image section

Types Of Spatial Filters There are two types of filter, 1.Linear Spatial Filter 2.Non Linear Spatial Filter Each pixel in an image can be replaced with constant value then it is called as linear spatial filter otherwise it is called as non-linear.

Spatial Filter Expression For m x n size of image, we assume m=2a+1 & n=2b+1 where a,b are positive integers. so the linear spatial filter of image MxN with filter size mxn is by following expression.

Spatial Correlation & Convolution Correlation is moving the filter over the image find the sum of products in each location. Convolution process is same as correlation but the filter is first rotate by 180 degree.

Vector Representation Of Linear Filtering The vector representation R should be formed for the linear filter as follows, R = w1 z1+w2 z2+ -------- Wmn Zmn For example, Here we rotate the mask by 180 ,this shown by 3x3 as follows, w1 w2 w3 w4 w5 w6 w7 w8 w9

Smoothing Spatial Filters Smoothing filters are used for blurring and for noise reduction. Blurring is used as preprocessing such as removal of small details from image. Noise reduction is blurring with linear or non linear filter.

IMAGE SMOOTHING

TYPES OF SMOOTHING FREQUENCY FILTER

Smoothing With Linear Filter AVERAGING FILTER: The output of linear spatial filter computes the average of pixels is called averaging filter or low pass filter. The major usage of average filter is reduction of irrelevant detail in an image. 1/9 x 1/16 x 1 1 1 1 1 1 1 1 1 1 2 1 2 4 2 1 2 1

Cont,. Standard average of pixels calculated as follows At the end of filtering the entire image is divided by 9. So mxn is equal to 1/ mn . Thus the coefficients pixels are equal, so the filter is called box filter.

Non- Linear Spatial Filter(order Statistic Filter) MEDIAN FILTER: This filter ordering the pixels by replacing the value of the center pixel with the value of rank list. The best know filter in this category is median filter. This is best for noise reduction. This median filter is effective for impulse noise called as salt & pepper noise.

MAX FILTER: The max filter also used for spatial filtering.This is used for finding the brightest points of an image. Expression of max filter is R=max { Zk | k= 1,2,3,…….9}

MIN FILTER: The min filter also used it is opposite of max that is find the dull points of an image . Expression of max filter is R=min{ Zk | k= 1,2,3,…….9}

Sharpening Spatial Filters The sharpening spatial is to highlight the transactions in intensity . There are many applications, such as electronic priming, medical images, military systems are used this sharpening technique.

Foundation Sharpening filters that are based on two derivatives. 1.First derivatives. 2.Second derivatives. First derivative : Must be zero for area of constant intensity. Must be nonzero of intensity step or map. Must be nonzero along ramp. ( σ f/ σ x) = f (x +1) – f (x).

Second derivative Must be zero in constant areas. Must be nonzero at one end and other end of intensity ramp. Must be zero along ramps.

Image Sharpening(the Laplacian ) This approach uses the second order derivative for construct the filter mask. The laplacian for the image function f( x,y ) of two variable is, The X direction, For Y direction ,

By concluding the above three equations, Taking the derivative of an image results in sharpening of an image. The derivative of an image cam be computing by using gradient

Thank you