Lecture 6 Sharpening Filters

Slides:



Advertisements
Similar presentations
Basis beeldverwerking (8D040) dr. Andrea Fuster dr. Anna Vilanova Prof.dr.ir. Marcel Breeuwer Filtering.
Advertisements

Linear Filtering – Part I Selim Aksoy Department of Computer Engineering Bilkent University
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
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.
Chapter 3 Image Enhancement in the Spatial Domain.
DREAM PLAN IDEA IMPLEMENTATION Introduction to Image Processing Dr. Kourosh Kiani
EE 4780 Image Enhancement. Bahadir K. Gunturk2 Image Enhancement The objective of image enhancement is to process an image so that the result is more.
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
Chapter 3: Image Enhancement in the Spatial Domain
6/9/2015Digital Image Processing1. 2 Example Histogram.
Digital Image Processing Chapter 4: Image Enhancement in the Frequency Domain.
Digital Image Processing
Digital Image Processing
Image Enhancement.
2-D, 2nd Order Derivatives for Image Enhancement
Image Analysis Preprocessing Arithmetic and Logic Operations Spatial Filters Image Quantization.
Lecture 2. Intensity Transformation and Spatial Filtering
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.
Chapter 3: Image Enhancement in the Spatial Domain
Chap2 Image enhancement (Spatial domain)
 Image Enhancement in Spatial Domain.  Spatial domain process on images can be described as g(x, y) = T[f(x, y)] ◦ where f(x,y) is the input image,
Chapter 10: Image Segmentation
Digital Image Processing
Spatial Filtering: Basics
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.
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
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 +
Digital Image Processing CSC331 Image Enhancement 1.
Digital Image Processing, 2nd ed. © 2002 R. C. Gonzalez & R. E. Woods  Process an image so that the result will be more suitable.
Chapter 5: Neighborhood Processing
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.
Sharpening Filters To highlight fine detail or to enhance blurred detail. –smoothing ~ integration –sharpening ~ differentiation Categories of sharpening.
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.
EE 7730 Image Enhancement. Bahadir K. Gunturk2 Image Enhancement The objective of image enhancement is to process an image so that the result is more.
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
Spatial Filtering (Chapter 3) CS474/674 - Prof. Bebis.
Image Enhancement in the Spatial Domain.
Miguel Tavares Coimbra
Fundamentals of Spatial Filtering:
ECE 692 – Advanced Topics in Computer Vision
Filtering – Part I Gokberk Cinbis Department of Computer Engineering
Spatial Filtering - Enhancement
Digital Image Processing
Digital Image Processing
Lecture 10 Image sharpening.
CIS 350 – 3 Image ENHANCEMENT SPATIAL DOMAIN
Image Enhancement in the Spatial Domain
Lecture 3 (2.5.07) Image Enhancement in Spatial Domain
Digital Image Processing
Department of Computer Engineering
Image Enhancement in the Spatial Domain
Presentation transcript:

Lecture 6 Sharpening Filters The concept of sharpening filter First and second order derivatives Laplace filter Unsharp mask High boost filter Gradient mask Sharpening image with MatLab

Sharpening Spatial Filters Department of Computer Engineering, CMU Sharpening Spatial Filters To highlight fine detail in an image or to enhance detail that has been blurred, either in error or as a natural effect of a particular method of image acquisition. Blurring vs. Sharpening Blurring/smooth is done in spatial domain by pixel averaging in a neighbors, it is a process of integration Sharpening is an inverse process, to find the difference by the neighborhood, done by spatial differentiation.

Department of Computer Engineering, CMU Derivative operator The strength of the response of a derivative operator is proportional to the degree of discontinuity of the image at the point at which the operator is applied. Image differentiation enhances edges and other discontinuities (noise) deemphasizes area with slowly varying gray-level values.

Sharpening edge by First and second order derivatives Department of Computer Engineering, CMU Sharpening edge by First and second order derivatives Intensity function f = First derivative f’ = Second-order derivative f’’ = f- f’’ = f’ f f’’ f-f’’

First and second order difference of 1D Department of Computer Engineering, CMU First and second order difference of 1D The basic definition of the first-order derivative of a one-dimensional function f(x) is the difference The second-order derivative of a one-dimensional function f(x) is the difference

First and Second-order derivative of 2D Department of Computer Engineering, CMU First and Second-order derivative of 2D when we consider an image function of two variables, f(x, y), at which time we will dealing with partial derivatives along the two spatial axes. (linear operator) Laplacian operator (non-linear) Gradient operator

Discrete form of Laplacian Department of Computer Engineering, CMU Discrete form of Laplacian from

Department of Computer Engineering, CMU Result Laplacian mask

Laplacian mask implemented an extension of diagonal neighbors

Other implementation of Laplacian masks give the same result, but we have to keep in mind that when combining (add / subtract) a Laplacian-filtered image with another image.

Effect of Laplacian Operator Department of Computer Engineering, CMU Effect of Laplacian Operator as it is a derivative operator, it highlights gray-level discontinuities in an image it deemphasizes regions with slowly varying gray levels tends to produce images that have grayish edge lines and other discontinuities, all superimposed on a dark, featureless background.

Correct the effect of featureless background easily by adding the original and Laplacian image. be careful with the Laplacian filter used if the center coefficient of the Laplacian mask is negative if the center coefficient of the Laplacian mask is positive

Department of Computer Engineering, CMU Example a). image of the North pole of the moon b). Laplacian-filtered image with c). Laplacian image scaled for display purposes d). image enhanced by addition with original image 1 -8

Mask of Laplacian + addition Department of Computer Engineering, CMU Mask of Laplacian + addition to simply the computation, we can create a mask which do both operations, Laplacian Filter and Addition the original image.

Mask of Laplacian + addition Department of Computer Engineering, CMU Mask of Laplacian + addition -1 5

Example

Department of Computer Engineering, CMU Note 1 -1 4 -1 5 + = 1 -1 8 -1 9 + =

Unsharp masking sharpened image = original image – blurred image to subtract a blurred version of an image produces sharpening output image.

Unsharp mask

Department of Computer Engineering, CMU High-boost filtering generalized form of Unsharp masking A  1

High-boost filtering if we use Laplacian filter to create sharpen image fs(x,y) with addition of original image

Department of Computer Engineering, CMU High-boost Masks A  1 if A = 1, it becomes “standard” Laplacian sharpening

Department of Computer Engineering, CMU Example

Gradient Operator first derivatives are implemented using the magnitude of the gradient. the magnitude becomes nonlinear commonly approx.

Department of Computer Engineering, CMU Gradient Mask z1 z2 z3 z4 z5 z6 z7 z8 z9 simplest approximation, 2x2

Gradient Mask z1 z2 z3 z4 z5 z6 z7 z8 z9 Roberts cross-gradient operators, 2x2

Department of Computer Engineering, CMU z1 z2 z3 z4 z5 z6 z7 z8 z9 Gradient Mask Sobel operators, 3x3 the weight value 2 is to achieve smoothing by giving more important to the center point

Example

Example of Combining Spatial Enhancement Methods want to sharpen the original image and bring out more skeletal detail. problems: narrow dynamic range of gray level and high noise content makes the image difficult to enhance

Example of Combining Spatial Enhancement Methods solve : Laplacian to highlight fine detail gradient to enhance prominent edges gray-level transformation to increase the dynamic range of gray levels

Department of Computer Engineering, CMU