Introduction to Image Processing Grass Sky Tree ? ? Sharpening Spatial Filters.

Slides:



Advertisements
Similar presentations
Spatial Filtering (Chapter 3)
Advertisements

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 
Chapter 3 Image Enhancement in the Spatial Domain.
Edges and Contours– Chapter 7
Lecture 6 Sharpening Filters
EDGE DETECTION ARCHANA IYER AADHAR AUTHENTICATION.
DREAM PLAN IDEA IMPLEMENTATION Introduction to Image Processing Dr. Kourosh Kiani
Sliding Window Filters and Edge Detection Longin Jan Latecki Computer Graphics and Image Processing CIS 601 – Fall 2004.
Digital Image Processing
Lecture 4 Edge Detection
6/9/2015Digital Image Processing1. 2 Example Histogram.
Targil 2 Image enhancement and edge detection. For both we will use image derivatives.
Announcements Mailing list: –you should have received messages Project 1 out today (due in two weeks)
EE663 Image Processing Edge Detection 2 Dr. Samir H. Abdul-Jauwad Electrical Engineering Department King Fahd University of Petroleum & Minerals.
Digital Image Processing
Edge Detection Phil Mlsna, Ph.D. Dept. of Electrical Engineering
Edge Detection Today’s reading Forsyth, chapters 8, 15.1
Introduction to Computer Vision CS / ECE 181B Thursday, April 22, 2004  Edge detection (HO #5)  HW#3 due, next week  No office hours today.
2-D, 2nd Order Derivatives for Image Enhancement
Edge Detection Today’s readings Cipolla and Gee –supplemental: Forsyth, chapter 9Forsyth Watt, From Sandlot ScienceSandlot Science.
Chapter 10: Image Segmentation
Spatial Filtering: Basics
Digital Image Processing
Linear Filtering – Part I Selim Aksoy Department of Computer Engineering Bilkent University
Edges. Edge detection schemes can be grouped in three classes: –Gradient operators: Robert, Sobel, Prewitt, and Laplacian (3x3 and 5x5 masks) –Surface.
Introduction to Image Processing
Edge Detection Today’s reading Cipolla & Gee on edge detection (available online)Cipolla & Gee on edge detection Szeliski, Ch 4.1.2, From Sandlot.
Digital Image Processing, 3rd ed. © 1992–2008 R. C. Gonzalez & R. E. Woods Gonzalez & Woods Chapter 10 Segmentation Chapter.
SHINTA P. Juli What are edges in an image? Edge Detection Edge Detection Methods Edge Operators Matlab Program.
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 Segmentation 1.Process of partitioning a digital image into multiple segments (sets of pixels). 2. Clustering pixels into salient image.
Chapter 10, Part I.  Segmentation subdivides an image into its constituent regions or objects.  Image segmentation methods are generally based on two.
Spatial Filtering.
Edge Detection and Geometric Primitive Extraction Jinxiang Chai.
Sejong Univ. Edge Detection Introduction Simple Edge Detectors First Order Derivative based Edge Detectors Compass Gradient based Edge Detectors Second.
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.
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.
Announcements Project 0 due tomorrow night. Edge Detection Today’s readings Cipolla and Gee (handout) –supplemental: Forsyth, chapter 9Forsyth For Friday.
Lecture 04 Edge Detection Lecture 04 Edge Detection Mata kuliah: T Computer Vision Tahun: 2010.
Machine Vision Edge Detection Techniques ENT 273 Lecture 6 Hema C.R.
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
Sliding Window Filters Longin Jan Latecki October 9, 2002.
1 Edge Operators a kind of filtering that leads to useful features.
Spatial Filtering (Chapter 3) CS474/674 - Prof. Bebis.
Image Enhancement in the Spatial Domain.
EDGE DETECTION Dr. Amnach Khawne. Basic concept An edge in an image is defined as a position where a significant change in gray-level values occur. An.
Miguel Tavares Coimbra
Edge Detection slides taken and adapted from public websites:
Image Filtering Spatial filtering
Edge Detection Phil Mlsna, Ph.D. Dept. of Electrical Engineering Northern Arizona University.
Digital Image Processing CSC331
ECE 692 – Advanced Topics in Computer Vision
Digital Image Processing
Jeremy Bolton, PhD Assistant Teaching Professor
Dr. Chang Shu COMP 4900C Winter 2008
Lecture 10 Image sharpening.
Edge Detection Today’s reading
Digital Image Processing
Edge Detection Today’s reading
Edge Detection Today’s reading
Edge Detection in Computer Vision
Edge Detection Today’s readings Cipolla and Gee Watt,
IT472 Digital Image Processing
IT472 Digital Image Processing
Presentation transcript:

Introduction to Image Processing Grass Sky Tree ? ? Sharpening Spatial Filters

Edge Detection The goal is to mark points at which image intensity changes sharply Sharp changes in image properties reflect important events To detect such changes (edges) find peaks in the 1st derivative of intensity or zero-crossings in the 2nd derivative

The Theory An intensity jump (edge) generates a peak in the 1 st derivative, and the peak generates a zero-crossing in the 2 nd derivative (when the first derivative is at a maximum, the second derivative is zero) Gradient methods detect edges by looking for the maximum and minimum in the first derivative of the image Laplacian methods search for zero crossings in the second derivative of the image to find edges

Sharpening filters are based on computing spatial derivatives of an image. The first-order derivative of a one-dimensional function f(x) is The second-order derivative of a one-dimensional function f(x) is Alternative 1 st and 2 nd Derivatives

Properties of the 1 st and 2 nd Derivatives

Profile for 1 st Derivative

Profile for 2 nd Derivative

1st Derivative in One Dimension I x Derivative of function I at 1: I’(1) = (I(2) - I(0))/2 Rearranging it we have: 2*I’(1) = -1*I(0) + 0*I(1) + 1*I(2) Equivalent to local filter operation using The standard definition of the Sobel operator omits the 1/8 term –doesn’t make a difference for edge detection –the 1/8 term is needed to get the right gradient value, however

Computing 2nd Derivatives I x I’’(1) = (I’(1.5) - I’(0.5))/1 I’(0.5) = (I(1) - I(0))/1 and I’(1.5) = (I(2) - I(1))/1 I’’(1) = 1*I(0) – 2*I(1) + 1*I(2) Equivalent to local filter operation with 1-21 The theory can be carried over to 2D as long as there is a way to approximate the derivative of a 2D image

Roberts cross-gradient operators Prewitt operators Sobel operators 1st Derivative Gradient Operators

Prewitt masks for detecting diagonal edges Sobel masks for detecting diagonal edges 1st Derivative Gradient Operators

First-order derivatives: –The gradient of an image G xy at location (x,y) is defined as the vector: –The magnitude of this vector: –The direction of this vector: Properties of Image Gradient

Gradients in 2D For an image function, I(x,y), the gradient direction, (x,y), gives the direction of steepest image gradient: (x,y)  atan(Gy/Gx) This gives the direction of a line perpendicular to the edge  GxGx GyGy G xy

Sobel Operator Original Sobel

Gradient Operators: Examples

Note that Prewitt operator is a box filter convolved with a derivative operator Also note a Sobel operator is a [1 2 1] filter convolved with a derivative operator Important Observation

Development of the Laplacian method –The two dimensional Laplacian operator for continuous functions: –The Laplacian is a linear operator. Laplacian Operator

Applying the Laplacian to an image we get a new image that highlights edges and other discontinuities Original Image Laplacian Filtered Image Laplacian Filtered Image Scaled for Display Laplacian Operator

But That Is Not Very Enhanced! The result of a Laplacian filtering is not an enhanced image We have to do more work in order to get our final image Subtract the Laplacian result from the original image to generate our final sharpened enhanced image Laplacian Filtered Image Scaled for Display

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

Simplified Image Enhancement The entire enhancement can be combined into a single filtering operation

Composite Laplacian Mask This gives us a new filter which does the whole job for us in one step

Composite Laplacian Mask

1 st & 2 nd Derivatives Comparisons Observations: –1 st order derivatives generally produce thicker edges –2 nd order derivatives have a stronger response to fine detail e.g. thin lines –2 nd order derivatives produce a double response at step changes in grey level The 2 nd derivative is more useful for image enhancement than the 1 st derivative –Stronger response to fine detail –Simpler implementation –Because these kernels approximate a second derivative measurement on the image, they are very sensitive to noise. To counter this, the image is often Gaussian smoothed before applying the Laplacian filter

Acknowlegements Slides are modified based on the original slide set from Dr Li Bai, The University of Nottingham, Jubilee Campus plus the following sources: Digital Image Processing, by Gonzalez and Woods /ImageProcessing6-SpatialFiltering2.ppt