Presentation is loading. Please wait.

Presentation is loading. Please wait.

Image Enhancement in Spatial Domain: Neighbourhood Processing

Similar presentations


Presentation on theme: "Image Enhancement in Spatial Domain: Neighbourhood Processing"— Presentation transcript:

1 Image Enhancement in Spatial Domain: Neighbourhood Processing
Lecture 2(b)

2 Neighbourhood Processing
We have seen that an image can be modified by applying a particular function to each pixel value whereby this is known as point processing. Neighbourhood processing may be considered as an extension of this, where a function is applied to a neighbourhood of each pixel. The idea is to move a mask/window/kernel: a rectangle (usually with sides of odd length) or other shape over the given image. As we do this, we create a new image whose pixels have grey values calculated from the grey values under the mask, as shown in Figure 3.1.

3 Neighbourhood Processing

4 Filter The combination of mask and function is called filter.
If the function by which the new grey value is calculated is a linear function of all the grey values in the mask, then the filter is called a linear filter.

5 Linear Filter A linear filter can be implemented by multiplying all elements in the mask by corresponding elements in the neighbourhood, and adding up all these products. Suppose we have a 3 x 5 mask as illustrated below:

6 Linear Filter and that corresponding pixel values from an image are

7 Spatial Filtering

8 Spatial Filtering

9 Spatial Convolution

10 Linear Filtering Example (1)

11 Linear Filtering Example (1)

12 Linear Filtering Example (1)

13

14 Linear Filtering : Math Notation

15 Linear Filtering Example (2)

16 Edges of the Image

17 Filtering in Matlab

18 Separable Filters

19 Edge Sharpening

20 Edge Sharpening

21 Edge Sharpening

22 Edge Sharpening

23 Non-linear Filters A non-linear filter is obtained by a non-linear function of the greyscale values in the mask. Simple examples are the maximum filter, which has as its output the maximum value under the mask, and the corresponding minimum filter, which has as its output the minimum value under the mask. Examples: median filter, maximum filter, minimum filter

24


Download ppt "Image Enhancement in Spatial Domain: Neighbourhood Processing"

Similar presentations


Ads by Google