Image Filtering. Outline Outline Concept of image filter  Focus on spatial image filter Various types of image filter  Smoothing, noise reductions 

Slides:



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

Spatial Filtering (Chapter 3)
Topic 6 - Image Filtering - I DIGITAL IMAGE PROCESSING Course 3624 Department of Physics and Astronomy Professor Bob Warwick.
Digital Image Processing
Spatial Filtering.
Lecture 6 Sharpening Filters
Sliding Window Filters and Edge Detection Longin Jan Latecki Computer Graphics and Image Processing CIS 601 – Fall 2004.
Digital Image Processing
Image Enhancement in the Spatial Domain II Jen-Chang Liu, 2006.
Digital Image Processing In The Name Of God Digital Image Processing Lecture3: Image enhancement M. Ghelich Oghli By: M. Ghelich Oghli
S. Mandayam/ DIP/ECE Dept./Rowan University Digital Image Processing ECE /ECE Fall 2007 Shreekanth Mandayam ECE Department Rowan University.
2007Theo Schouten1 Enhancements Techniques for editing an image such that it is more suitable for a specific application than the original image. Spatial.
MSU CSE 803 Stockman Linear Operations Using Masks Masks are patterns used to define the weights used in averaging the neighbors of a pixel to compute.
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.
1 Lecture 12 Neighbourhood Operations (2) TK3813 DR MASRI AYOB.
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.
MSU CSE 803 Linear Operations Using Masks Masks are patterns used to define the weights used in averaging the neighbors of a pixel to compute some result.
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.
Edge Detection Hao Huy Tran Computer Graphics and Image Processing CIS 581 – Fall 2002 Professor: Dr. Longin Jan Latecki.
Presentation Image Filters
Spatial Filtering: Basics
Digital Image Processing Image Enhancement Part IV.
Effective Computation of Linear Filters The following properties are used to shorten the computation time f  g = g  f, f  (g  h) = (f  g)  h, f 
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
Introduction to Image Processing Grass Sky Tree ? ? Sharpening Spatial Filters.
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.
Introduction to Image Processing
0 - 1 © 2007 Texas Instruments Inc, Content developed in partnership with Tel-Aviv University From MATLAB ® and Simulink ® to Real Time with TI DSPs Edge.
Image Segmentation and Morphological Processing Digital Image Processing in Life- Science Aviad Baram
Image Processing is replacing Original Pixels by new Pixels using a Transform rst uvw xyz Origin x y Image f (x, y) e processed = v *e + r *a + s *b +
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,
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.
CSE 6367 Computer Vision Image Operations and Filtering “You cannot teach a man anything, you can only help him find it within himself.” ― Galileo GalileiGalileo.
Image enhancement Last update Heejune Ahn, SeoulTech.
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
Image Filtering with GLSL DI1.03 蔡依儒. Outline Convolution Convolution Convolution implementation using GLSL Convolution implementation using GLSL Commonly.
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.
Lecture Seven Figures from Gonzales and Woods, Digital Image Processing, Copyright 2002.
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.
Image Enhancement in the Spatial Domain.
Environmental Remote Sensing GEOG 2021
Image Pre-Processing in the Spatial and Frequent Domain
ECE 692 – Advanced Topics in Computer Vision
Spatial Filtering - Enhancement
Digital Image Processing
CIS 350 – 3 Image ENHANCEMENT SPATIAL DOMAIN
9th Lecture - Image Filters
Digital Image Processing
Digital Image Processing Week IV
Linear Operations Using Masks
Enhancement.
Image Filtering Readings: Ch 5: 5. 4, 5. 5, 5. 6, , 5
Image Filtering with GLSL
Digital Filters.
Image Enhancement in the Spatial Domain
Presentation transcript:

Image Filtering

Outline Outline Concept of image filter  Focus on spatial image filter Various types of image filter  Smoothing, noise reductions  Sharpening  Edge detection Implementations

What is spatial image filter What is spatial image filter Image filter is an N*M operator, with center at w(0,0) w(i, j) is coefficient 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) 3x3 image filter

Image filtering (1) Image filtering (1) A typical spatial filtering process is as follows  Move the filter from point to point in an image  At each point (x,y), calculate the response of the filter Response of filtering is calculated by convolution

Image filtering (2) Convolution includes three steps: 1. Position the center of the filter at the first pixel of an image and flip the filter. 2. Calculate the inner product between the filter and the sub-image covered by the filter. 3. Slide to next pixel, repeat steps 2 and 3 until the whole image is processed

Lowpass filtering (1) Lowpass filtering (1) Low pass image filters are used in image smoothing  Reduce noise  Image may become blurred Example:  Average filter  Guassian filter

Lowpass filtering (2) Average filter: Gaussian filter: 1/9 * /16 * D Continuous Gaussian filter

Example of smoothing

Median Filter Median filtering is to replace each pixel value in an image by the median of its neighborhood Procedure of Median filtering (filter size nxm):  Sort the pixel values in the nxm sub-image, centered at (x,y), to find the median;  Replace the pixel value f(x,y) by the median.

Gaussian vs. Median Gaussian vs. Median Source GaussianMedian ( 5 X 5)

Edge detection (1) Edge detection (1) Highpass filtering is used to sharpen the image or detect the edges What is edge?  Gray level discontinuity  An important concept related to edge detection -- Gradient

Edge detection (2) Gradient is defined as a vector Gradient reflects the degree of change of gray levels in x and y directions An edge is detected if the gradient is larger than a threshold

1 st order digital edge detector 1 st order digital edge detector Robert’s operator Prewitt’s operatorSobel’s operator

2 nd order edge detector Also called Laplacian filter Several variations of Laplacian filters exists (see textbook)

An example of edge detection An example of edge detection

How to implement image filtering in MATLAB? How to implement image filtering in MATLAB? Refer to the examples in course website  Lowpass filtering (average filter)  Highpass filtering (Sobel filter)  Get familiar with block processing in MATLAB