Topic 6 - Image Filtering - I DIGITAL IMAGE PROCESSING Course 3624 Department of Physics and Astronomy Professor Bob Warwick.

Slides:



Advertisements
Similar presentations
Environmental Remote Sensing GEOG 2021
Advertisements

Linear Filtering – Part I Selim Aksoy Department of Computer Engineering Bilkent University
Spatial Filtering (Chapter 3)
Image Processing Lecture 4
Spatial Filtering.
Image Filtering. Outline Outline Concept of image filter  Focus on spatial image filter Various types of image filter  Smoothing, noise reductions 
Chapter 3 Image Enhancement in the Spatial Domain.
Lecture 6 Sharpening Filters
Regional Processing Convolutional filters. Smoothing  Convolution can be used to achieve a variety of effects depending on the kernel.  Smoothing, or.
Sliding Window Filters and Edge Detection Longin Jan Latecki Computer Graphics and Image Processing CIS 601 – Fall 2004.
Digital Image Processing
Multimedia communications EG 371Dr Matt Roach Multimedia Communications EG 371 and EE 348 Dr Matt Roach Lecture 6 Image processing (filters)
6/9/2015Digital Image Processing1. 2 Example Histogram.
1 Image filtering Hybrid Images, Oliva et al.,
Low Pass Filtering Spatial frequency is a measure of how rapidly brightness or colour varies as we traverse an image. Figure 7.11a shows that an image.
Median Filter If the objective is to achieve noise reduction rather than blurring, an alternative approach is to use median filters. That is, the gray.
2007Theo Schouten1 Enhancements Techniques for editing an image such that it is more suitable for a specific application than the original image. Spatial.
Digital Image Processing
1 Image Filtering Readings: Ch 5: 5.4, 5.5, 5.6,5.7.3, 5.8 (This lecture does not follow the book.) Images by Pawan SinhaPawan Sinha formal terminology.
Image Enhancement.
2-D, 2nd Order Derivatives for Image Enhancement
Gholamreza Anbarjafari, PhD Video Lecturers on Digital Image Processing Digital Image Processing Spatial Domain Filtering: Part II.
Image Filtering. Problem! Noise is a problem, even in images! Gaussian NoiseSalt and Pepper Noise.
ECE 472/572 - Digital Image Processing Lecture 4 - Image Enhancement - Spatial Filter 09/06/11.
Chapter 3 (cont).  In this section several basic concepts are introduced underlying the use of spatial filters for image processing.  Mainly spatial.
Topic 7 - Fourier Transforms DIGITAL IMAGE PROCESSING Course 3624 Department of Physics and Astronomy Professor Bob Warwick.
Introduction to Image Processing Grass Sky Tree ? ? Review.
Presentation Image Filters
Spatial-based Enhancements Lecture 3 prepared by R. Lathrop 10/99 updated 10/03 ERDAS Field Guide 6th Ed. Ch 5: ;
Machine Vision ENT 273 Image Filters Hema C.R. Lecture 5.
Spatial Filtering: Basics
University of Texas at Austin CS384G - Computer Graphics Fall 2010 Don Fussell Image processing.
Linear Filtering – Part I Selim Aksoy Department of Computer Engineering Bilkent University
Lecture 03 Area Based Image Processing Lecture 03 Area Based Image Processing Mata kuliah: T Computer Vision Tahun: 2010.
Introduction to Image Processing
Digital Image Processing Lecture 10: Image Restoration March 28, 2005 Prof. Charlene Tsai.
Chapter 5: Neighborhood Processing
Digital Image Processing Lecture 10: Image Restoration
Spatial Filtering.
Image Subtraction Mask mode radiography h(x,y) is the mask.
COMP322/S2000/L171 Robot Vision System Major Phases in Robot Vision Systems: A. Data (image) acquisition –Illumination, i.e. lighting consideration –Lenses,
CSC508 Convolution Operators. CSC508 Convolution Arguably the most fundamental operation of computer vision It’s a neighborhood operator –Similar to the.
Digital Image Processing Lecture 16: Segmentation: Detection of Discontinuities Prof. Charlene Tsai.
Mestrado em Ciência de Computadores Mestrado Integrado em Engenharia de Redes e Sistemas Informáticos VC 15/16 – TP7 Spatial Filters Miguel Tavares Coimbra.
Digital Image Processing Lecture 5: Neighborhood Processing: Spatial Filtering March 9, 2004 Prof. Charlene Tsai.
Digital Image Processing Lecture 16: Segmentation: Detection of Discontinuities May 2, 2005 Prof. Charlene Tsai.
Digital Image Processing Part 3 Spatial Domain Processing.
Machine Vision Edge Detection Techniques ENT 273 Lecture 6 Hema C.R.
Digital Filters. What are they?  Local operation (neighborhood operation in GIS terminology) by mask, window, or kernel (different words for the same.
Image Enhancement by Spatial Domain Filtering
Sharpening Spatial Filters ( high pass)  Previously we have looked at smoothing filters which remove fine detail  Sharpening spatial filters seek to.
Digital Image Processing Week V Thurdsak LEAUHATONG.
Digital Image Processing CSC331
September 26, 2013Computer Vision Lecture 8: Edge Detection II 1Gradient In the one-dimensional case, a step edge corresponds to a local peak in the first.
Sliding Window Filters Longin Jan Latecki October 9, 2002.
Filters– Chapter 6. Filter Difference between a Filter and a Point Operation is that a Filter utilizes a neighborhood of pixels from the input image to.
Spatial Filtering (Chapter 3) CS474/674 - Prof. Bebis.
Environmental Remote Sensing GEOG 2021
Miguel Tavares Coimbra
Image Subtraction Mask mode radiography h(x,y) is the mask.
Digital Image Processing Lecture 16: Segmentation: Detection of Discontinuities Prof. Charlene Tsai.
ECE 692 – Advanced Topics in Computer Vision
Filtering – Part I Gokberk Cinbis Department of Computer Engineering
Spatial Filtering - Enhancement
Digital Image Processing
Department of Computer Engineering
Image Filtering Readings: Ch 5: 5. 4, 5. 5, 5. 6, , 5
Digital Filters.
Image Enhancement in the Spatial Domain
Presentation transcript:

Topic 6 - Image Filtering - I DIGITAL IMAGE PROCESSING Course 3624 Department of Physics and Astronomy Professor Bob Warwick

6. Image Filtering I: Spatial Domain Filtering The goal of spatial filtering is typically either to (a) reduce the impact of noise in the image via image smoothing or (b) to sharpen the detail within the image. Both processes involve the suppression and/or enhancement of particular spatial frequency components in the image (see Topic 8). Point process (eg. Mapping) Neighbourhood process (eg. Spatial filtering) For a mask of dimension n x n (n odd), where m = (n-1)/2 is the central element. Calculate for all x & y Note that the denominator is a normalisation factor – sometimes not applicable! (ii) Compute a new image g xy from the old image f xy via: Procedure (i)Define an array of values known variously as the mask, filter, operator etc.. (usually with a 3 x 3 or 5 x 5 or 7 x 7 etc.. format)

3 Computing the 2-d Result original 3x3 average

6.1 Smoothing Filters Smoothing filters involve calculating the average value (with some defined weighting) within the masked region. Assuming a 3 x 3 format, some possibilities are: Replaces the original value with the average of 9 values (the central 11 1 pixel plus its 8 nearest neighbours) Double weighting of the central pixel Replaces the original value with 11 1 the average of 5 values (the central pixel plus its 4 nearest neighbours)

Author: Richard Alan Peters II Smoothing Examples: Original Images

Smoothing Examples: 3  3 Blur

Smoothing Examples: 5  5 Blur

Smoothing Examples: 9  9 Blur

Smoothing Examples: 17  17 Blur

Image Smoothing Examples Original Smoothed

Noise Suppression Example

Calculating the effective noise reduction Example Applying a 3 x 3 smoothing filter with unit coefficients results in a factor 3 reduction in the noise. mean and standard deviation Gaussian Distribution f P(f)

The Median Filter Smoothing filters can be used to reduce the impact of the noise in an image but also cause unwanted blurring. The larger the dimension of the smoothing mask the greater the noise reduction factor but also the greater the blurring. Non-linear filters, such as the Median Filter, can to some degree “decouple” these two effects – but in a way which is hard to quantify The median filter would replace the central value with the median value contained within the mask (or window) region.

Suppression of Impulsive Noise Smoothing Filter Median Filter

Suppression of Impulsive Noise

6.2 Sharpening Filters Smoothing  Averaging Sharpening  Differencing In practice with discrete variables differencing is equivalent to differentiation and both the 1 st and 2 nd differentials can be used to mark the position in an image where there are rapid changes in gray level (ie edges). Continuous variables The objective is to enhance the detail in the image by accentuating edges and boundaries.

Types of Filters Used in Image Sharpening - I Pairs of masks of various formats which give the vertical (a xy ) and horizontal (b xy ) gradients: (i) The Roberts Operators (ii) (iii) The Prewitt Operators Where the final gradient image is calculated as:

Image Sharpening Examples Consider an image consisting of: Applying the following filters gives: (i) (ii) … ….. … ….. … …..

Calculating the Gradient Image Lena

The Sobel Operators Calculating the Gradient Image

Types of Filters Used in Image Sharpening - II (i) (ii) (iii) Masks which give the 2 nd differential or Laplacian image

The 1-d and 2-d Laplacian Mask in Action

The Image Sharpening Process In image sharpening the usual approach is to add the derived ‘gradient’ or ‘Laplacian’ image to the original image in a process known as high frequency emphasis. Thus: Final image = original image + gradient or Laplacian image For the Laplacian case this can be achieved in one step by modifying the 2-d mask to: or

Image Sharpening Examples Consider an image consisting of: Applying the following filters gives: (i) (ii) … ….. … ….. … …..

Image Sharpening Examples

The Mathematical Process of Spatial Filtering Consider the 1-d case of spatial filtering with an n element mask (n odd), where m= (n-1)/2 and ignoring the normalization factor. x i i' i'' a Equation 4 is the discrete version of the CONVOLUTION INTEGRAL. SPATIAL FILTERING IS A CONVOLUTION PROCESS

The Mathematical Process of “Convolution”

Practical Considerations (i)Edge Errors For an n x n mask there is a (n-1)/2 border to the new image where exact values cannot be calculated. Solutions are: (a) Reduce the dimensions of the new image (usually impractical) (b) Calculate approximate values for the border pixels (c) Compute the cyclic convolution (beyond our scope). (ii)Separability A 2-d mask is separable if the successive application of two 1-d masks gives the equivalent result to the application of the 2-d mask. For example, considered as matrices: Therefore this smoothing mask is separable. There are computational advantages if the mask is separable. Note: Both gradient and Laplacian filters can also be used in EDGE DETECTION – see topic 10