Spatial Filtering - Enhancement

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.
Image Filtering. Outline Outline Concept of image filter  Focus on spatial image filter Various types of image filter  Smoothing, noise reductions 
Lecture 6 Sharpening Filters
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
6/9/2015Digital Image Processing1. 2 Example Histogram.
Digital Image Processing: Revision
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
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.
Chap2 Image enhancement (Spatial domain)
Presentation Image Filters
Spring 2012Meetings 5 and 6, 7:20PM-10PM Image Processing with Applications-CSCI567/MATH563/MATH489 Lectures 8, 9, 10,11: Spatial Filtering 8. Linear Filters,
Spatial Filtering: Basics
Digital Image Processing Image Enhancement Part IV.
Digital Image Processing
Linear Filtering – Part I Selim Aksoy Department of Computer Engineering Bilkent University
Introduction to Image Processing Grass Sky Tree ? ? Sharpening Spatial Filters.
Lecture 03 Area Based Image Processing Lecture 03 Area Based Image Processing Mata kuliah: T Computer Vision Tahun: 2010.
Introduction to Image Processing
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 +
Image processing Fourth lecture Image Restoration Image Restoration: Image restoration methods are used to improve the appearance of an image.
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.
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.
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.
Image enhancement Last update Heejune Ahn, SeoulTech.
Digital Image Processing, 2nd ed. © 2002 R. C. Gonzalez & R. E. Woods.
Digital Image Processing Part 3 Spatial Domain Processing.
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.
Digital Image Processing CSC331
Lecture Seven Figures from Gonzales and Woods, Digital Image Processing, Copyright 2002.
Spatial Filtering (Chapter 3) CS474/674 - Prof. Bebis.
Image Enhancement in the Spatial Domain.
Miguel Tavares Coimbra
Image Subtraction Mask mode radiography h(x,y) is the mask.
Fundamentals of Spatial Filtering:
Digital Image Processing CSC331
IMAGE PROCESSING IMAGE RESTORATION AND NOISE REDUCTION
ECE 692 – Advanced Topics in Computer Vision
Digital Image Processing
Filtering – Part I Gokberk Cinbis Department of Computer Engineering
Image Enhancement.
Digital Image Processing
Digital Image Processing
Fundamentals of Image Processing A Seminar on By Alok K. Watve
Lecture 10 Image sharpening.
CIS 350 – 3 Image ENHANCEMENT SPATIAL DOMAIN
Image Enhancement in the Spatial Domain
9th Lecture - Image Filters
Digital Image Processing
Enhancement.
Department of Computer Engineering
Digital Filters.
Image Enhancement in the Spatial Domain
DIGITAL IMAGE PROCESSING Elective 3 (5th Sem.)
Presentation transcript:

Spatial Filtering - Enhancement 9/19/2018 Spatial Filtering

References Gonzalez and Woods, “ Digital Image Processing,” 2nd Edition, Prentice Hall, 2002. Jain, “Fundamentals of Digital Image Processing,” Prentice Hall 1989 9/19/2018 Spatial Filtering

Filters – Powerful Imaging Tool Frequency domain is often used Enhancement by accentuating the features of interest Spatial domain Linear Think of this as weighted average over a mask / filter region Compare to convolution – imaging (smoothing) filters are often symmetric 9/19/2018 Spatial Filtering

Spatial Filtering Computations Result for 3x3 mask g(x,y) = w(-1,-1)f(x-1,y-1) + w(-1,0)f(x-1,y) + w(-1,1) f(x-1,y+1) ……. + w(1,1)f(x+1,y+1) Result for mxn mask g(x,y) = a b ∑ ∑ w(s,t) f(x+s,y+t) s=-a t=-b a = (m-1)/2 b = (n-1)/2 If image size is MxN, then x=0,1,…M-1 and y=0,1,..N-1. From [1] 9/19/2018 Spatial Filtering

Smoothing Filters Weighted average Low pass filter Reduce the noise; remove small artifacts Blurring of edges Two masks: Note multiplication is by 2n, divide once at end of process g(x,y) = a b a b ∑ ∑ w(s,t) f(x+s,y+t) / ∑ ∑ w(s,t) s= -a t= -b s= -a t= -b 9/19/2018 Spatial Filtering

Smoothing - Examples 9/19/2018 Spatial Filtering Suppressed small objects in the scene 9/19/2018 Spatial Filtering

Median Filter Example of Order Statistics Filter. Other examples – max filter or min filter Effective for impulse noise (salt and pepper noise) Median – half the values <= the median value NxN neighborhood, where N is odd Replace center of mask with the median value Stray values are eliminated; uniform neighborhoods not affected 9/19/2018 Spatial Filtering

Sharpening Filters Smoothing Blurring “Averaging” Sharpening is the reverse process Smoothing is the result of integration Sharpening involves differentiation Enhances discontinuities Noise Edges De-emphasizes uniform parts of the image 9/19/2018 Spatial Filtering

Differentiation – Numeric Techniques Derivatives are defined in terms of differences First – order derivative f ' (x) = (f (x) – f (x - Δ)) / Δ Second – order derivative f '' (x) = (f ' (x+Δ) – f ' (x)) / Δ =({f (x + Δ) – f (x)} – {f (x) – f (x - Δ)}) / Δ2 =({f (x + Δ) – 2f (x) – f (x - Δ)}) / Δ2 Δ = smallest unit; for images Δ = 1. 9/19/2018 Spatial Filtering

Example of Derivative Computation Isolated point (noise?) 9/19/2018 Spatial Filtering

Use Derivatives with care What is the gradient? Slope at a local point, may be quite different than the overall trend Often use a smoothing filter to reduce impact of noise Higher the order of the derivative, higher is the impact of local discontinuities 9/19/2018 Spatial Filtering

Laplacian for Enhancement Second order derivatives are better at highlighting finer details Imaging requires derivatives in 2D Laplacian 2 f = fxx + fyy , where fxx = f(x+1,y) + f(x-1,y) – 2 f(x,y) fyy= f(x,y+1) + f(x, y-1) – 2 f(x,y) 9/19/2018 Spatial Filtering

Composite Laplacian for Enhancement Laplacian highlights discontinuities (b and c) The “uniform” regions are suppressed To restore the balance, for image enhancement the original image is added to the Laplacian g(x,y)=f(x,y) - 2 f (x,y) if 2 f (x,y) < 0 g(x,y)=f(x,y) + 2 f (x,y) if 2 f (x,y) >= 0 In difference form g(x,y)=5f(x,y)-{f(x+1,y)+ f(x-1,y)+f(x,y+1)+f(x,y-1)} Leads to new mask Next slide 9/19/2018 Spatial Filtering

Application of Composite Masks 9/19/2018 Spatial Filtering

High Boost Filters For image enhancement the augmented original image is added to the Laplacian g(x,y)= Af(x,y) - 2 f (x,y) if 2 f (x,y) < 0 g(x,y)= Af(x,y) + 2 f (x,y) if 2 f (x,y) >= 0 In difference form g(x,y)=(A+4)f(x,y)-{f(x+1,y)+ f(x-1,y)+f(x,y+1)+f(x,y-1)} 9/19/2018 Spatial Filtering

High Boost Filter with Different A - values 9/19/2018 Spatial Filtering

The Gradient 9/19/2018 Spatial Filtering

Roberts and Sobel Gradient Based Masks 9/19/2018 Spatial Filtering

Sobel Mask – Detects Edges 9/19/2018 Spatial Filtering

Multiple Step Spatial Enhancement 9/19/2018 Spatial Filtering