Presentation Image Filters

Slides:



Advertisements
Similar presentations
Linear Filtering – Part I Selim Aksoy Department of Computer Engineering Bilkent University
Advertisements

Spatial Filtering (Chapter 3)
Image Processing Lecture 4
CS & CS Multimedia Processing Lecture 2. Intensity Transformation and Spatial Filtering Spring 2009.
Spatial Filtering.
Local Enhancement Histogram processing methods are global processing, in the sense that pixels are modified by a transformation function based on the gray-level.
Image Filtering. Outline Outline Concept of image filter  Focus on spatial image filter Various types of image filter  Smoothing, noise reductions 
Frequency Domain Filtering (Chapter 4)
1 Image Processing Ch4: Filtering in frequency domain Prepared by: Tahani Khatib AOU.
Image Enhancement in the Frequency Domain Part III
Image processing (spatial &frequency domain) Image processing (spatial &frequency domain) College of Science Computer Science Department
© by Yu Hen Hu 1 ECE533 Digital Image Processing Image Enhancement in Frequency Domain.
Chap 4 Image Enhancement in the Frequency Domain.
Digital Image Processing In The Name Of God Digital Image Processing Lecture3: Image enhancement M. Ghelich Oghli By: M. Ghelich Oghli
Chapter 3: Image Enhancement in the Spatial Domain
6/9/2015Digital Image Processing1. 2 Example Histogram.
Chapter 4 Image Enhancement in the Frequency Domain.
Chap 4-2. Frequency domain processing Jen-Chang Liu, 2006.
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 Chapter 4: Image Enhancement in the Frequency Domain.
Lecture 2. Intensity Transformation and Spatial Filtering
Chapter 4 Image Enhancement in the Frequency Domain.
Chapter 3 Image Enhancement in the Spatial Domain.
Digital Image Processing, 2nd ed. © 2002 R. C. Gonzalez & R. E. Woods Chapter 4 Image Enhancement in the Frequency Domain Chapter.
Filters in the Frequency Domain.  Image Smoothing Using Frequency Domain Filters: ◦ Ideal Lowpass Filters ◦ Butterworth Lowpass Filters ◦ Gaussian Lowpass.
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.
Spatial Filtering: Basics
Chapter 5 Image Restoration.
Digital Image Processing Image Enhancement Part IV.
Digital Image Processing Chapter # 4 Image Enhancement in Frequency Domain Digital Image Processing Chapter # 4 Image Enhancement in Frequency Domain.
Image Processing © 2002 R. C. Gonzalez & R. E. Woods Lecture 4 Image Enhancement in the Frequency Domain Lecture 4 Image Enhancement.
Chapter 3 Image Enhancement in the Spatial Domain.
CS654: Digital Image Analysis
Linear Filtering – Part I Selim Aksoy Department of Computer Engineering Bilkent University
Digital Image Processing Lecture 5: Neighborhood Processing: Spatial Filtering Prof. Charlene Tsai.
Lecture 03 Area Based Image Processing Lecture 03 Area Based Image Processing Mata kuliah: T Computer Vision Tahun: 2010.
Digital Image Processing CSC331 Image Enhancement 1.
ENG4BF3 Medical Image Processing Image Enhancement in Frequency Domain.
Image Restoration Chapter 5.
Chapter 5: Neighborhood Processing
Lecture 5 Mask/Filter Transformation 1.The concept of mask/filters 2.Mathematical model of filtering Correlation, convolution 3.Smoother filters 4.Filter.
Spatial Filtering.
Ch5 Image Restoration CS446 Instructor: Nada ALZaben.
Digital Image Processing, 3rd ed. © 1992–2008 R. C. Gonzalez & R. E. Woods Gonzalez & Woods Chapter 3 Intensity Transformations.
Image Subtraction Mask mode radiography h(x,y) is the mask.
University of Ioannina - Department of Computer Science Filtering in the Frequency Domain (Application) Digital Image Processing Christophoros Nikou
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.
Computer Graphics & Image Processing Chapter # 4 Image Enhancement in Frequency Domain 2/26/20161.
Digital Image Processing Lecture 9: Filtering in Frequency Domain Prof. Charlene Tsai.
Frequency Domain Filtering. Frequency Domain Methods Spatial Domain Frequency Domain.
Digital Image Processing Lecture 8: Image Enhancement in Frequency Domain II Naveed Ejaz.
Image Processing Lab Section 28/3/2016 Prepared by Mahmoud Abdelsatar Demonstrator at IT Dep. Faculty of computers and information Assuit University.
Spatial Filtering (Chapter 3) CS474/674 - Prof. Bebis.
IMAGE PROCESSING FREQUENCY DOMAIN PROCESSING
Fundamentals of Spatial Filtering:
Image Pre-Processing in the Spatial and Frequent Domain
Spatial & Frequency Domain
ECE 692 – Advanced Topics in Computer Vision
Image Enhancement in the
Filtering – Part I Gokberk Cinbis Department of Computer Engineering
Digital Image Processing
ENG4BF3 Medical Image Processing
Fundamentals of Spatial Filtering
4. Image Enhancement in Frequency Domain
Digital Image Processing Week IV
Department of Computer Engineering
Lecture 4 Image Enhancement in Frequency Domain
Image Enhancement in the Spatial Domain
Presentation transcript:

60-520 Presentation Image Filters Student: Xiaoliu Chen Instructor: Dr. I. Ahmad School of Computer Science University of Windsor November 2003

Outline Introduction Spatial Filtering Frequency-Domain Filtering Smoothing Sharpening Frequency-Domain Filtering Low pass High pass Summary Image Filters

Introduction Filtering is the process of replacing a pixel with a value based on some operations or functions. The operations/functions used on the original image are called filters. or masks, kernels, templates, windows… Image Filters

Introduction In digital image processing, filters are usually used to suppress the high frequencies in an image i.e., smoothing the image suppress the low frequencies in an image i.e., enhancing or detecting edges in the image Image Filters

Introduction Image filters fall into two categories: Spatial domain Filters are based on direct manipulation of pixels on an image plane. Frequency domain Filters are based on modifying the Fourier transform (FT) of an image. Image Filters

Spatial Filters The general processes can be denoted by the expression: f(x,y) is the input image g(x,y) is the processed image T is an operator on f, defined over some neighborhood of (x,y) Image Filters

Spatial Filters The principal approach in defining a neighborhood about a point (x,y) use a subimage area centered at (x,y) shapes of the neighborhood circle square rectangular Image Filters

Spatial Filters Example: 3×3 neighborhood about a point (x,y) in an image x (x,y) Image f(x,y) (x+1,y+1) (x,y+1) (x-1,y+1) (x+1,y) (x-1,y) (x+1,y-1) (x,y-1) (x-1,y-1) y Image Filters

x Image f(x,y) y Mask Mask coefficients Pixels under mask f(x+1,y+1) w(1,1) w(0,1) w(-1,1) w(1,0) w(0,0) w(-1,0) w(1,-1) w(0,-1) w(-1,-1) Mask Mask coefficients x y Image Filters

Spatial Filters – linear filters For linear spatial filtering, the result, R, at a point (x,y) is R=w(-1,-1)f(x-1,y-1) + w(0,-1)f(x,y-1) + …+ w(0,0)f(x,y) +… + w(0,1)f(x,y+1) + w(1,1)f(x+1,y+1) Image Filters

Spatial Filters – convolution In general, linear filtering of an image is given by the expression: The image f is of size M×N The filter mask is of size m×n m=2a+1, n=2b+1 Image Filters

Spatial Filters – smoothing Smoothing filters are used for blurring and for noise reduction. Smoothing, linear spatial filter average filters reduce “sharp” transitions side effect Image Filters

Spatial Filters – smoothing, linear 1 Mean filters example: Original Gaussian noise 5×5 mean filter 3×3 mean filter Image Filters

Spatial Filters – smoothing, linear 1 Mean filters example: Salt and pepper 5×5 mean filter 3×3 mean filter Image Filters

Spatial Filters – smoothing, linear Weighted average filters example: general expression: 1 2 4 Image Filters

Spatial Filters – smoothing, nonlinear Order-statistic filters nonlinear spatial filters order/rank the pixels contained in the image area encompassed by the filter Image Filters

Spatial Filters – smoothing, nonlinear Median filters replace a pixel value with the median of its neighboring pixel values example: 23 25 26 30 40 22 24 27 35 18 20 50 34 19 15 33 11 16 10 Neighborhood values: 15, 19, 20, 23, 24, 25, 26, 27, 50 Median value: 24 Image Filters

Spatial Filters – smoothing, nonlinear Median filters have excellent noise-reduction capabilities V.S. Gaussian noise removed by 3×3 mean filter Gaussian noise removed By 3×3 median filter Image Filters

Spatial Filters – smoothing, nonlinear Median filters are particularly effective in salt & pepper V.S. Salt & pepper removed by 3×3 mean filter Salt & pepper removed By 3×3 median filter Image Filters

Spatial Filters – smoothing, nonlinear Max filters maximum of neighboring pixel values useful for finding the brightest points in an image Min filters minimum of neighboring pixel values useful for finding the darkest points in an image Image Filters

Spatial Filters – sharpening Principal objective highlight fine detail in an image enhance detail that has been blurred Sharpening can be accomplished by spatial differentiation Image Filters

Spatial Filters – sharpening For one dimensional function f(x) first order derivative second order derivative Image Filters

Spatial Filters – sharpening A sample (a) a scan line (b) image strip (c) first derivative (d) second derivative (a) (b) (c) (d) 7 1 3 6 2 4 5 -1 -2 -6 -7 -4 -12 Image Filters

Spatial Filters – sharpening The Laplacian second derivative of a two dimensional function f(x,y) = [f(x+1,y)+f(x-1,y)+f(x,y+1)+f(x,y-1)] -4f(x,y) Image Filters

Spatial Filters – sharpening The Laplacian use a convolution mask to approximate 1 -4 1 -8 -1 2 -4 Image Filters

Spatial Filters – sharpening The Laplacian example: Image Filters

Spatial Filters – sharpening The Laplacian example: Image Filters

Frequency Filters – Fourier transform Fourier transform (FT) decompose an image into its sine and cosine components transform real space images into Fourier or frequency space images In a frequency space image, each point represents a particular frequency contained in the real domain image. Image Filters

Frequency Filters – Fourier transform Discrete Fourier transform (DFT) Inverse DFT Image Filters

Frequency Filters – Fourier transform example: FT (log) Image Filters

Frequency Filters Basic steps for filtering in the frequency domain function DFT Inverse f(x,y) Input image g(x,y) Processed image F(u,v) H(u,v)F(u,v) Image Filters

Frequency Filters Frequencies in an image correspond to the rate of change in pixel values High frequencies rapid changes of gray level values Low frequencies slow changes of gray level values Image Filters

Frequency Filters Lowpass filters Highpass filters attenuate high frequencies while “passing” low frequencies Highpass filters attenuate low frequencies while “passing” high frequencies Image Filters

Frequency Filters – lowpass filters Ideal lowpass filters (ILPF) Image Filters

Frequency Filters – lowpass filters Butterworth lowpass filters (BLPF) Image Filters

Frequency Filters – lowpass filters Gaussian lowpass filters (GLPF) Image Filters

Frequency Filters – highpass filters Ideal higpass filters (IHPF) Butterworth highpass filters (BHPF) Gaussian highpass filters (GHPF) Image Filters

Image Filters

Frequency Filters – bandpass filters attenuate very low frequencies and very high frequencies enhance edges while reducing the noise at the same time Image Filters

Frequency Filters Examples: (lowpass filters) BLPF with cut-off frequency of 1/3 BLPF with cut-off frequency of 1/2 ILPF with cut-off frequency of 1/2 ILPF with cut-off frequency of 1/3 Original Gaussian noise Image Filters

Frequency Filters Examples: (highpass filters) Image Filters

Frequency Filters Relationship and comparison with spatial filters spatial filtering frequency filtering Image Filters

Frequency Filters Comparison with spatial filters more computational efficient more intuitive Image Filters

Summary Filtering is the operation of applying a transform on an image in order to enhance it. Filtering techniques can be subdivided into two types Spatial domain filtering Frequency domain filtering Image Filters

Summary Filtering techniques are very useful in image analysis and processing Noise removal Edge detection Image Filters

Thank you & Questions ? The end Image Filters