Image Enhancement (Spatial Filtering 2)

Similar documents
Digital Image Processing. Lecture 6 (Enhancement) Bu-Ali Sina University Computer Engineering Dep. Fall 2009

Digital Image Processing: Sharpening Filtering in Spatial Domain CSC Biomedical Imaging and Analysis Dr. Kazunori Okada

Lecture Outline. Basics of Spatial Filtering Smoothing Spatial Filters. Sharpening Spatial Filters

EDGES AND CONTOURS(1)

Numerical Methods - Lecture 2. Numerical Methods. Lecture 2. Analysis of errors in numerical methods

ECE Digital Image Processing and Introduction to Computer Vision. Outline

Enhancement Using Local Histogram

0,0 B 5,0 C 0, 4 3,5. y x. Recitation Worksheet 1A. 1. Plot these points in the xy plane: A

Reading. 3. Image processing. Pixel movement. Image processing Y R I G Q

Math Review and Lessons in Calculus

Chapter 3: Image Enhancement in the. Office room : 841

Review Smoothing Spatial Filters Sharpening Spatial Filters. Spatial Filtering. Dr. Praveen Sankaran. Department of ECE NIT Calicut.

Intensity Transformations and Spatial Filtering: WHICH ONE LOOKS BETTER? Intensity Transformations and Spatial Filtering: WHICH ONE LOOKS BETTER?

Special types of Riemann sums

Definition: Let f(x) be a function of one variable with continuous derivatives of all orders at a the point x 0, then the series.

New method for two-point nonuniformity correction of microbolometer detectors

3.8 Combining Spatial Enhancement Methods 137

The concept of limit

Differentiation. The main problem of differential calculus deals with finding the slope of the tangent line at a point on a curve.

Lecture 7: Edge Detection

CAP 5415 Computer Vision Fall 2011

CAP 5415 Computer Vision

Physics 5153 Classical Mechanics. Solution by Quadrature-1

y,z the subscript y, z indicating that the variables y and z are kept constant. The second partial differential with respect to x is written x 2 y,z

Relating axial motion of optical elements to focal shift

Roberto s Notes on Differential Calculus Chapter 8: Graphical analysis Section 1. Extreme points

A Simple Explanation of the Sobolev Gradient Method

Relating axial motion of optical elements to focal shift

Probabilistic Model of Error in Fixed-Point Arithmetic Gaussian Pyramid

Image Enhancement: Methods. Digital Image Processing. No Explicit definition. Spatial Domain: Frequency Domain:

Lab on Taylor Polynomials. This Lab is accompanied by an Answer Sheet that you are to complete and turn in to your instructor.

Midterm Summary Fall 08. Yao Wang Polytechnic University, Brooklyn, NY 11201

Two-step self-tuning phase-shifting interferometry

Asymptotics of integrals

Physics 231 Lecture 9

Numerical Solution of Ordinary Differential Equations in Fluctuationlessness Theorem Perspective

10. Joint Moments and Joint Characteristic Functions

Image preprocessing in spatial domain

Asymptotics of integrals

Systems & Signals 315

Edge Detection. Introduction to Computer Vision. Useful Mathematics Funcs. The bad news

Exponential and Logarithmic. Functions CHAPTER The Algebra of Functions; Composite

RATIONAL FUNCTIONS. Finding Asymptotes..347 The Domain Finding Intercepts Graphing Rational Functions

EEO 401 Digital Signal Processing Prof. Mark Fowler

MEASUREMENT UNCERTAINTIES

(C) The rationals and the reals as linearly ordered sets. Contents. 1 The characterizing results

Math 2412 Activity 1(Due by EOC Sep. 17)

Mesa College Math SAMPLES

Curve Sketching. The process of curve sketching can be performed in the following steps:

MSE405 Microstructure Characterization XRD-1 Lab X-ray diffraction in crystallography

3. Several Random Variables

8. THEOREM If the partial derivatives f x. and f y exist near (a, b) and are continuous at (a, b), then f is differentiable at (a, b).

! " k x 2k$1 # $ k x 2k. " # p $ 1! px! p " p 1 # !"#$%&'"()'*"+$",&-('./&-/. !"#$%&'()"*#%+!'",' -./#")'.,&'+.0#.1)2,'!%)2%! !"#$%&'"%(")*$+&#,*$,#

AP Calculus Notes: Unit 1 Limits & Continuity. Syllabus Objective: 1.1 The student will calculate limits using the basic limit theorems.

Objectives. By the time the student is finished with this section of the workbook, he/she should be able

( 1) ( 2) ( 1) nan integer, since the potential is no longer simple harmonic.

Example: When describing where a function is increasing, decreasing or constant we use the x- axis values.

Lecture 8 Optimization

Christoffel symbols and Gauss Theorema Egregium

( ) x y z. 3 Functions 36. SECTION D Composite Functions

Local enhancement. Local Enhancement. Local histogram equalized. Histogram equalized. Local Contrast Enhancement. Fig 3.23: Another example

MATHEMATICS: PAPER I TRIAL EXAMINATION 28 AUGUST 2015

Extreme Values of Functions

Embedding Nonsmooth Systems in Digital Controllers. Ryo Kikuuwe

Consider the function f(x, y). Recall that we can approximate f(x, y) with a linear function in x and y:

Answer Key-Math 11- Optional Review Homework For Exam 2

Wind-Driven Circulation: Stommel s gyre & Sverdrup s balance

Digital Image Processing COSC 6380/4393

Probabilistic Optimisation applied to Spacecraft Rendezvous on Keplerian Orbits

Functions Operations. To add, subtract, multiply, and divide functions. To find the composite of two functions.

Supplementary material for Continuous-action planning for discounted infinite-horizon nonlinear optimal control with Lipschitz values

. This is the Basic Chain Rule. x dt y dt z dt Chain Rule in this context.

ENERGY ANALYSIS: CLOSED SYSTEM

Lecture 13: Applications of Fourier transforms (Recipes, Chapter 13)

Optimal Control. with. Aerospace Applications. James M. Longuski. Jose J. Guzman. John E. Prussing

One-Dimensional Motion Review IMPORTANT QUANTITIES Name Symbol Units Basic Equation Name Symbol Units Basic Equation Time t Seconds Velocity v m/s

Additional exercises in Stationary Stochastic Processes

Function Operations. I. Ever since basic math, you have been combining numbers by using addition, subtraction, multiplication, and division.

TLT-5200/5206 COMMUNICATION THEORY, Exercise 3, Fall TLT-5200/5206 COMMUNICATION THEORY, Exercise 3, Fall Problem 1.

2.6 Two-dimensional continuous interpolation 3: Kriging - introduction to geostatistics. References - geostatistics. References geostatistics (cntd.

Basics on 2-D 2 D Random Signal

BANDELET IMAGE APPROXIMATION AND COMPRESSION

This is only a list of questions use a separate sheet to work out the problems. 1. (1.2 and 1.4) Use the given graph to answer each question.

Physics 121. Tuesday, February 19, Physics 121. Tuesday, February 19, Physics 121. Course announcements. Topics:

( x) f = where P and Q are polynomials.

Feasibility of a Multi-Pass Thomson Scattering System with Confocal Spherical Mirrors

CHAPTER 4 Reactor Statics. Table of Contents

A Function of Two Random Variables

The 2nd Texas A&M at Galveston Mathematics Olympiad. September 24, Problems & Solutions

Thu June 16 Lecture Notes: Lattice Exercises I

Telescoping Decomposition Method for Solving First Order Nonlinear Differential Equations

Review of Prerequisite Skills for Unit # 2 (Derivatives) U2L2: Sec.2.1 The Derivative Function

Laplacian Filters. Sobel Filters. Laplacian Filters. Laplacian Filters. Laplacian Filters. Laplacian Filters

Filtration. Praktikum Mechanical Engineering. Spring semester ML F16 Tel.:

9.1 The Square Root Function

Local Enhancement. Local enhancement

Today s lecture. Local neighbourhood processing. The convolution. Removing uncorrelated noise from an image The Fourier transform

2 Frequency-Domain Analysis

APPENDIX 1 ERROR ESTIMATION

ELEG 3143 Probability & Stochastic Process Ch. 4 Multiple Random Variables

Transcription:

Image Enhancement (Spatial Filtering ) Dr. Samir H. Abdul-Jauwad Electrical Engineering Department College o Engineering Sciences King Fahd University o Petroleum & Minerals Dhahran Saudi Arabia samara@kupm.edu.sa

Contents In this lecture we will look at more spatial iltering techniques Spatial iltering reresher Sharpening ilters 1 st derivative ilters nd derivative ilters Combining iltering techniques

Spatial Filtering Reresher Origin Simple 3*3 Neighbourhood e x 3*3 Filter y Image (x, y) a b c d e g h i Original Image Pixels * r s t u v w x y z Filter e processed = v*e + r*a + s*b + t*c + u*d u + w* w + x*g + y*h + z*i Th b i t d i l i th The above is repeated or every pixel in the original image to generate the smoothed image

Sharpening Spatial Filters Previously we have looked at smoothing ilters which remove ine detail Sharpening spatial ilters seek to highlight ine detail Remove blurring rom images Highlight ht edges Sharpening ilters are based on spatial dierentiation

Spatial Dierentiation Dierentiation measures the rate o change o a unction Let s consider a simple 1 dimensional example

Spatial Dierentiation A B

1 st Derivative The ormula or the 1 st derivative o a unction is as ollows: x ( x 1) ( x ) It s just the dierence between subsequent values and measures the rate o change o the unction

1 st Derivative (cont ) 8 7 6 5 4 3 1 0 5 5 4 3 1 0 0 0 6 0 0 0 0 1 3 1 0 0 0 0 7 7 7 7 0-1 -1-1 -1 0 0 6-6 0 0 0 1 - -1 0 0 0 7 0 0 0 8 6 4 0 - -4-6 -8

nd Derivative The ormula or the nd derivative o a unction is as ollows: ( x 1) ( x 1) ( x ) x Simply takes into account the values both beore and ater the current value

nd Derivative (cont ) 8 7 6 5 4 3 1 0 5 5 4 3 1 0 0 0 6 0 0 0 0 1 3 1 0 0 0 0 7 7 7 7-1 0 0 0 0 1 0 6-1 6 0 0 1 1-4 1 1 0 0 7-7 0 0 10 5 0-5 -10-15

Using Second Derivatives For Image Enhancement The nd derivative is more useul or image enhancement than the 1 st derivative Stronger response to ine detail Simpler implementation We will come back to the 1 st order derivative later on The irst sharpening ilter we will look at is the Laplacian Isotropic One o the simplest sharpening ilters We will look at a digital implementation

The Laplacian The Laplacian The Laplacian is deined as ollows: y x where the partial 1 st order derivative in the x direction is deined as ollows: y x ), ( ) 1, ( ) 1, ( y x y x y x and in the y direction as ollows: x ), ( 1), ( 1), ( y x y x y x y

The Laplacian (cont ) So, the Laplacian can be given as ollows: [ ( x 1, y) ( x 1, y) ( x, y 1) ( x, y 1)] 4 ( x, y) We can easily build a ilter based on this 0 1 0 1-4 1 0 1 0

The Laplacian (cont ) Applying the Laplacian to an image we get a new image that highlights edges and other discontinuities Original Laplacian Laplacian Image Filtered Image Filtered Image Scaled or Display

But That Is Not Very Enhanced! The result o a Laplacian iltering is not an enhanced image We have to do more work in order to get our inal image Subtract the Laplacian result rom the original image to generate our inal sharpened enhanced image Laplacian Filtered Image Scaled or Display g ( x, y ) ( x, y )

Laplacian Image Enhancement - = Original Image Laplacian Filtered Image Sharpened Image In the inal sharpened image edges and ine detail are much more obvious

Laplacian Image Enhancement

Simpliied Image Enhancement The entire enhancement can be combined into a single iltering operation g ( x, y ) ( x, y ) ( x, y) [ ( x 1, y) ( x 1, y) ( x, y 1) ( x, y 4 ( x, y )] 1) 5 ( x, y) ( x 1, y) ( x 1, y) ( x, y 1) ( x, y 1)

Simpliied Image Enhancement (cont ) This gives us a new ilter which does the whole job or us in one step 0-1 0-1 5-1 0-1 0

Simpliied Image Enhancement (cont )

Variants On The Simple Laplacian There are lots o slightly dierent versions o the Laplacian that can be used: 0 1 0 1 1 1 1-4 1 Simple Laplacian 1-8 1 0 1 0 1 1 1 Variant o Laplacian -1-1 -1-1 9-1 -1-1 -1

Simple Convolution Tool In Java A great tool or testing out dierent ilters From the book Image Processing tools in Java Available rom webct later on today Available rom webct later on today To launch: java ConvolutionTool Moon.jpg

1 st Derivative Filtering Implementing 1 st derivative ilters is diicult in practice For a unction (x, y) the gradient o at coordinates (x, y) is given as the column vector: G x G y x y

1 st Derivative Filtering (cont ) The magnitude o this vector is given by: mag( ) 1 G G x G y x y For practical reasons this can be simpliied as: G x G y 1

1 st Derivative Filtering (cont ) There is some debate as to how best to calculate these gradients but we will use: z z z z z z 7 8 9 1 z z z z z z 3 6 9 1 which is based on these coordinates 4 3 7 z 1 z z 3 z 4 z 5 z 6 z 7 z 8 z 9

Sobel Operators Based on the previous equations we can derive the Sobel Operators -1 - -1-1 0 1 0 0 0-0 1 1-1 0 1 To ilter an image it is iltered using both operators the results o which are added together

Sobel Example An image o a contact lens which is enhanced in order to make deects (at our and ive o clock in the image) more obvious Sobel ilters are typically used or edge detection

st & nd Derivatives 1 st Comparing the 1 st and nd derivatives we can conclude the ollowing: 1 st order derivatives generally produce thicker edges nd order derivatives have a stronger response to ine detail e.g. thin lines 1 st order derivatives have stronger response to grey level step nd order derivatives produce a double response at step changes in grey level

Summary In this lecture we looked at: Sharpening ilters 1 st derivative ilters nd derivative ilters Combining iltering techniques

Combining Spatial Enhancement Methods Successul image enhancement is typically not achieved using a single operation Rather we combine a range o techniques in order to achieve a inal result This example will ocus on enhancing the bone scan to the right gt

Combining Spatial Enhancement Methods (cont ) (a) Laplacian ilter o bone scan (a) (b) Sharpened version o bone scan achieved (c) by subtracting (a) and (b) Sobel ilter o bone scan (a) (d)

Combining Spatial Enhancement Methods The product o (c) and (e) which will be used as a mask (e) (cont ) Sharpened image which is sum o (a) and () () Result o applying a power-law trans. to (g) (g) (h) Image (d) smoothed with a 5*5 averaging ilter

Combining Spatial Enhancement Methods (cont ) Compare the original and inal images