Edge enhancement by linear (and nonlinear) filtering Dr. Dileepan Joseph Dept. of Engineering Science University of Oxford, UK.

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
Image Processing Lecture 4
Spatial Filtering.
Chapter 3 Image Enhancement in the Spatial Domain.
Lecture 6 Sharpening Filters
Digital Image Processing
Digital Image Processing In The Name Of God Digital Image Processing Lecture3: Image enhancement M. Ghelich Oghli By: M. Ghelich Oghli
6/9/2015Digital Image Processing1. 2 Example Histogram.
Computer Vision - A Modern Approach Set: Linear Filters Slides by D.A. Forsyth Differentiation and convolution Recall Now this is linear and shift invariant,
7. Neighbourhood operations A single pixel considered in isolation conveys information on the intensity and colour at a single location in an image, but.
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
Image Analysis Preprocessing Arithmetic and Logic Operations Spatial Filters Image Quantization.
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.
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.
Lecture 1: Images and image filtering CS4670/5670: Intro to Computer Vision Kavita Bala Hybrid Images, Oliva et al.,
Chap2 Image enhancement (Spatial domain)
Chapter 10: Image Segmentation
Presentation Image Filters
Machine Vision ENT 273 Image Filters Hema C.R. Lecture 5.
Computer Vision – Enhancement(Part II) Hanyang University Jong-Il Park.
Spatial Filtering: Basics
Digital Image Processing
Linear Filtering – Part I Selim Aksoy Department of Computer Engineering Bilkent University
CIS 601 Image ENHANCEMENT in the SPATIAL DOMAIN Dr. Rolf Lakaemper.
Digital Image Processing Lecture 5: Neighborhood Processing: Spatial Filtering Prof. Charlene Tsai.
Image Processing Edge detection Filtering: Noise suppresion.
1 Chapter 1: Introduction 1.1 Images and Pictures Human have evolved very precise visual skills: We can identify a face in an instant We can differentiate.
1 © 2010 Cengage Learning Engineering. All Rights Reserved. 1 Introduction to Digital Image Processing with MATLAB ® Asia Edition McAndrew ‧ Wang ‧ Tseng.
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 +
Chapter 5: Neighborhood Processing
Machine Vision ENT 273 Image Filters Hema C.R. Lecture 5.
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.
COMP322/S2000/L171 Robot Vision System Major Phases in Robot Vision Systems: A. Data (image) acquisition –Illumination, i.e. lighting consideration –Lenses,
Sharpening Filters To highlight fine detail or to enhance blurred detail. –smoothing ~ integration –sharpening ~ differentiation Categories of sharpening.
Digital Image Processing Lecture 5: Neighborhood Processing: Spatial Filtering March 9, 2004 Prof. Charlene Tsai.
Non-linear Filters Non-linear filter (nelineární filtr) –spatial non-linear operator that produces the output image array g(x,y) from the input image array.
Digital Image Processing Part 3 Spatial Domain Processing.
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 CSC331
Lecture Seven Figures from Gonzales and Woods, Digital Image Processing, Copyright 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.
Image Subtraction Mask mode radiography h(x,y) is the mask.
Digital Image Processing CSC331
IMAGE ENHANCEMENT TECHNIQUES
ECE 692 – Advanced Topics in Computer Vision
IMAGE PROCESSING INTENSITY TRANSFORMATION AND SPATIAL FILTERING
Spatial Filtering - Enhancement
Digital Image Processing
CIS 350 – 3 Image ENHANCEMENT SPATIAL DOMAIN
Digital Image Processing
CSC 381/481 Quarter: Fall 03/04 Daniela Stan Raicu
Digital Image Processing
Enhancement.
© 2010 Cengage Learning Engineering. All Rights Reserved.
CIS 4350 Image ENHANCEMENT SPATIAL DOMAIN
Image Enhancement in Spatial Domain: Neighbourhood Processing
DIGITAL IMAGE PROCESSING Elective 3 (5th Sem.)
Presentation transcript:

Edge enhancement by linear (and nonlinear) filtering Dr. Dileepan Joseph Dept. of Engineering Science University of Oxford, UK

Objectives Learn what edge enhancement is, why it is useful & how it differs from edge detection Define linear and nonlinear spatial filtering Design linear filters to either smoothen or sharpen the edges in an image and show how the two operations are related Appreciate that human vision enhances edges using local operations

Edge enhancement The purpose of edge enhancement is to highlight fine detail in an image or to restore, at least partially, detail that has been blurred (either in error or as a consequence of a particular method of image acquisition) Applications of edge enhancement include electronic printing, medical imaging, industrial inspection, and autonomous target detection in smart weapons

Edge enhancement Edge enhancement involves sharpening the outlines of objects and features with respect to their background Edge detection involves isolating the outlines of objects and features The former is easier to do than the latter

Spatial filtering Image processing in the spatial domain may be expressed as g(x,y) = H{f(x,y)} where f is the input image, g is the output image, and H is an operator on f, defined over some neighbour- hood of pixel (x,y)

Spatial filtering The neighbourhood of pixel (x,y), for image f, may be expressed as a column vector w(x,y) of pixel values e.g. Consider a 3 by 3 square neighbourhood centred on the pixel (x,y) of interest

Spatial filtering A spatial filter H is linear if (and only if)  H{a∙f(x,y)} = a∙H{f(x,y)}  H{f 1 (x,y)+f 2 (x,y)} = H{f 1 (x,y)}+H{f 2 (x,y)} For any linear spatial filter H, we may write g(x,y) = hw(x,y) where g is the output image, w is the neighbourhood vector of the input image f, and is the inner product operator The column vector h is called a mask and it defines the properties of the linear filter

Spatial filtering It is easier to visualize linear spatial filtering as an inner product of h and w over the shape of the neighbourhood e.g. For a 3 by 3 square neighbourhood centred on the pixel (x,y) of interest g(x,y) = h1h1 h2h2 h3h3 h4h4 h5h5 h6h6 h7h7 h8h8 h9h9 w1w1 w2w2 w3w3 w4w4 w5w5 w6w6 w7w7 w8w8 w9w9 h 1 w 1 +h 2 w 2 …+h 9 w 9 = f(x,y)f(x,y)

Smoothing filter To understand how to sharpen edges, we first consider how to smoothen them The simplest way to smoothen an image f is to use the neighbourhood average of pixel values to define the image g g(x,y) = 1/9 w1w1 w2w2 w3w3 w4w4 w5w5 w6w6 w7w7 w8w8 w9w9 f(x,y)f(x,y)

Smoothing filter Middle region of the original image: Middle region of the smoothed image:

Embossing filter Compared to the original image, edges in the smoothed image are slightly blurred Thus, the difference between the original and smooth images, which may be derived by spatial filtering, holds edge information g(x,y) = −1/9 8/9−1/9 w1w1 w2w2 w3w3 w4w4 w5w5 w6w6 w7w7 w8w8 w9w9 f(x,y)f(x,y)

Embossing filter Middle region of the original image: Middle region of the embossed image:

Sharpening filter The embossed image holds edge inform- ation over a uniform (zero) background Thus, the sum of the original and embossed images, which may be derived by spatial filtering, will reinforce edges of the former g(x,y) = −1/9 17/9−1/9 w1w1 w2w2 w3w3 w4w4 w5w5 w6w6 w7w7 w8w8 w9w9 f(x,y)f(x,y)

Sharpening filter Middle region of the original image: Middle region of the sharpened image:

Edge enhancement Without amplification: Emboss = Original − Smooth Sharp = Original + Emboss = 2∙Original − Smooth With amplification A: Sharp = Original + A∙Emboss = (1+A)∙Original − A∙Smooth e.g. Consider the mask h of a 3 by 3 square neighbourhood

Edge enhancement A = 0A = 1A = 2

Mach Bands illusion This image has three sections: on the left, luminance is at a constant high; on the right, luminance is at a constant low; in the middle, it declines at a constant rate The thin bands seen on either side of the ramp (and named after their discoverer) are illusory

Mach Bands illusion Sensory tissue is often organized so that ex- citation of any location produces inhibition of surrounding nerves In human vision, this lateral inhibition enhances edges by producing overshoot and undershoot

Review Edge enhancement involves sharpening the outlines of objects and features in an image with respect to their background Image processing in the spatial domain may be expressed as g(x,y) = H{f(x,y)} where f is the input image, g is the output image, and H is a linear or nonlinear operator on f, defined over some neighbourhood of pixel (x,y) Linear filtering may be expressed by an inner product of a mask and the neighbourhood

Review Smoothing of edges may be achieved by neighbourhood averaging Sharpening of edges may be achieved by subtracting a multiple, A, of the neighbour- hood average from a larger multiple, 1+A, of the neighbourhood centre The Mach Bands illusion may be understood in terms of edge enhancement by lateral inhibition in human vision

Resources Gonzales and Woods, Digital Image Processing, Second Edition, Prentice Hall, 2002 (get the first two chapters free from Matlab Image Processing Toolbox ch3/mb/mb.html (Mach Bands illusion) ch3/mb/mb.html HyperVis/vision/latinib.htm (lateral inhibition) HyperVis/vision/latinib.htm