Lecture 04 Edge Detection Lecture 04 Edge Detection Mata kuliah: T0283 - Computer Vision Tahun: 2010.

Slides:



Advertisements
Similar presentations
EDGE DETECTION ARCHANA IYER AADHAR AUTHENTICATION.
Advertisements

Instructor: Mircea Nicolescu Lecture 6 CS 485 / 685 Computer Vision.
DREAM PLAN IDEA IMPLEMENTATION Introduction to Image Processing Dr. Kourosh Kiani
EDGE DETECTION.
1Ellen L. Walker Edges Humans easily understand “line drawings” as pictures.
Edge Detection. Our goal is to extract a “line drawing” representation from an image Useful for recognition: edges contain shape information –invariance.
Edge detection Goal: Identify sudden changes (discontinuities) in an image Intuitively, most semantic and shape information from the image can be encoded.
Lecture 4 Edge Detection
CSSE463: Image Recognition Day 6 Yesterday: Yesterday: Local, global, and point operators all operate on entire image, changing one pixel at a time!! Local,
Computer Vision Group Edge Detection Giacomo Boracchi 5/12/2007
Canny Edge Detector.
Edge detection. Edge Detection in Images Finding the contour of objects in a scene.
EE663 Image Processing Edge Detection 2 Dr. Samir H. Abdul-Jauwad Electrical Engineering Department King Fahd University of Petroleum & Minerals.
Canny Edge Detector1 1)Smooth image with a Gaussian optimizes the trade-off between noise filtering and edge localization 2)Compute the Gradient magnitude.
CS485/685 Computer Vision Dr. George Bebis
Segmentation (Section 10.2)
Introduction to Computer Vision CS / ECE 181B Thursday, April 22, 2004  Edge detection (HO #5)  HW#3 due, next week  No office hours today.
EE663 Image Processing Edge Detection 3 Dr. Samir H. Abdul-Jauwad Electrical Engineering Department King Fahd University of Petroleum & Minerals.
Lecture 4: Edge Based Vision Dr Carole Twining Thursday 18th March 2:00pm – 2:50pm.
Edge Detection Today’s readings Cipolla and Gee –supplemental: Forsyth, chapter 9Forsyth Watt, From Sandlot ScienceSandlot Science.
Edge detection Goal: Identify sudden changes (discontinuities) in an image Intuitively, most semantic and shape information from the image can be encoded.
Neighborhood Operations
Computer Vision Spring ,-685 Instructor: S. Narasimhan WH 5409 T-R 10:30 – 11:50am.
Discrete Images (Chapter 7) Fourier Transform on discrete and bounded domains. Given an image: 1.Zero boundary condition 2.Periodic boundary condition.
EDGE DETECTION IN COMPUTER VISION SYSTEMS PRESENTATION BY : ATUL CHOPRA JUNE EE-6358 COMPUTER VISION UNIVERSITY OF TEXAS AT ARLINGTON.
Edge Detection Today’s reading Cipolla & Gee on edge detection (available online)Cipolla & Gee on edge detection From Sandlot ScienceSandlot Science.
Edge Detection Today’s reading Cipolla & Gee on edge detection (available online)Cipolla & Gee on edge detection Szeliski, Ch 4.1.2, From Sandlot.
Instructor: S. Narasimhan
CS654: Digital Image Analysis Lecture 24: Introduction to Image Segmentation: Edge Detection Slide credits: Derek Hoiem, Lana Lazebnik, Steve Seitz, David.
Edge detection Goal: Identify sudden changes (discontinuities) in an image Intuitively, most semantic and shape information from the image can be encoded.
EE 4780 Edge Detection.
October 7, 2014Computer Vision Lecture 9: Edge Detection II 1 Laplacian Filters Idea: Smooth the image, Smooth the image, compute the second derivative.
Edge Detection and Geometric Primitive Extraction Jinxiang Chai.
Brent M. Dingle, Ph.D Game Design and Development Program Mathematics, Statistics and Computer Science University of Wisconsin - Stout Edge Detection.
Sejong Univ. Edge Detection Introduction Simple Edge Detectors First Order Derivative based Edge Detectors Compass Gradient based Edge Detectors Second.
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.
EDGE DETECTION Instructor: Dr. Engr. Junaid Zafar.
Course 5 Edge Detection. Image Features: local, meaningful, detectable parts of an image. edge corner texture … Edges: Edges points, or simply edges,
Machine Vision Edge Detection Techniques ENT 273 Lecture 6 Hema C.R.
Computer Vision Image Features Instructor: Dr. Sherif Sami Lecture 4.
Instructor: Mircea Nicolescu Lecture 7
Instructor: Mircea Nicolescu Lecture 5 CS 485 / 685 Computer Vision.
Lecture 8: Edges and Feature Detection
Digital Image Processing CSC331
Image Features (I) Dr. Chang Shu COMP 4900C Winter 2008.
1 Edge Operators a kind of filtering that leads to useful features.
April 21, 2016Introduction to Artificial Intelligence Lecture 22: Computer Vision II 1 Canny Edge Detector The Canny edge detector is a good approximation.
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:
Edge Detection CS485/685 Computer Vision Dr. George Bebis.
Edge Detection CS 678 Spring 2018.
Lecture 2: Edge detection
Jeremy Bolton, PhD Assistant Teaching Professor
Computer Vision Lecture 9: Edge Detection II
Edge detection Goal: Identify sudden changes (discontinuities) in an image Intuitively, most semantic and shape information from the image can be encoded.
Edge Detection Today’s reading
a kind of filtering that leads to useful features
a kind of filtering that leads to useful features
Edge Detection Today’s reading
Lecture 2: Edge detection
Canny Edge Detector.
Edge Detection Today’s reading
Edge Detection Today’s readings Cipolla and Gee Watt,
Canny Edge Detector Smooth image with a Gaussian
Lecture 2: Edge detection
Winter in Kraków photographed by Marcin Ryczek
IT472 Digital Image Processing
IT472 Digital Image Processing
Presentation transcript:

Lecture 04 Edge Detection Lecture 04 Edge Detection Mata kuliah: T Computer Vision Tahun: 2010

January 20, 2010T Computer Vision3 Learning Objectives After carefullylistening this lecture, students will be able to do the following : After carefully listening this lecture, students will be able to do the following : show basic principles of edge detection techniques show basic principles of edge detection techniques demonstrate various convolution-based edge detection techniques such as LOG and Canny edge detectors demonstrate various convolution-based edge detection techniques such as LOG and Canny edge detectors

January 20, 2010T Computer Vision4 Edge Detection Definition of Edges Edges are significant local changes of intensity in an image Typically occur on the boundary between two different regions in an image Goal of Edge Detection Produce a line drawing of a scene from an image of that scene Important features can be extracted from the edges of an image (e.g., corners, lines, curves) These features are used by higher level computer vision algorithms (e.g., recognition)

January 20, 2010T Computer Vision5 Various physical events cause intensity changes Geometric events Object boundary (discontinuity in depth) Surface boundary (discontinuity in surface orientation and/or surface color and texture) Non-geometric events Specularity (direct reflection of light, such as a mirror) Shadows (from other object or from the same object) Inter-reflections What causes intensity changes ?

January 20, 2010T Computer Vision6 Edge normal Unit vector in the direction of maximum intensity change Edge direction Unit vector perpendicular to the edge normal Edge position or center The image position at which the edge is located Edge strength Related the local image contrast along the normal Edge Descriptors

January 20, 2010T Computer Vision7 The Four Steps of Edge Detection Edge Types Step edge (ramp) Line edge (roof) Searching for Edges Filtering: Smooth image Enhancement: Apply numerical derivative approximation Detection: Threshold to find strong edges Localization/analyze: Reject spurious edges, include weak but justified edges

January 20, 2010T Computer Vision8 Edge Detection Using Derivatives Calculus describe changes of continuous functions using derivatives An image is a 2D function, so operators describing edges are expressed using partial derivatives Points which lie on an edge can be detected by Detecting local maxima or minima of the 1 st derivative Detecting the zero-crossing of the 2 nd derivative 1st derivative 2nd derivative

January 20, 2010T Computer Vision9 Computing the 1 st derivative To compute the derivative of a signal, we approximate the derivative by finite differences : Examples using the edge models and the mask [-1 0 1] (centered about x) S1S S2S2S2S2M MASK M = [-1, 0, 1] S1S S2S2S2S2M

January 20, 2010T Computer Vision10 Computing the 2 nd derivative This approximation is centered about x + 1; by replacing x + 1 by x we obtain

January 20, 2010T Computer Vision11 Examples using edge models S1S S2S2S2S2M MASK M = [-1, 2, -1] S1S S2S2S2S2M S1S S2S2S2S2M S1S S2S2S2S2M

January 20, 2010T Computer Vision12 The gradient of an image: The gradient points in the direction of most rapid change in intensity The gradient direction is given by: The edge strength is given by the gradient magnitude Edge Detection Using The Gradient

January 20, 2010T Computer Vision13 Estimating Gradient with Finite Differences The gradient can be approximated by finite differences 11 MASK M x dan M y

January 20, 2010T Computer Vision14 Robert Edge Detector This approximation can be implemented by the following mask

January 20, 2010T Computer Vision15 Prewitt & Sobel Edge Detector Consider the arrangement of pixels about the pixel (i, j) The partial derivatives can be computed by M x = (a 2 + ca 3 + a 4 ) - (a 0 + ca 7 + a 6 ) M y = (a 6 + ca 5 + a 4 ) - (a 0 + ca 1 + a 2 ) The constant c implies the emphasis given to the pixels closer the center of the mask a0a0a0a0 a1a1a1a1 a2a2a2a2 a7a7a7a7[i,j] a3a3a3a3 a6a6a6a6 a5a5a5a5 a4a4a4a4

January 20, 2010T Computer Vision16 Prewitt & Sobel Edge Detector (cont’d) Setting c = 1, we get the Prewitt operator Setting c = 2, we get the Sobel operator

January 20, 2010T Computer Vision17 Main Steps in Edge Detection using Mask

January 20, 2010T Computer Vision18 Main Steps in Edge Detection using Mask

January 20, 2010T Computer Vision19 (A) Original & smoothed image(B) Robert Cross operator, T = 64 (C) Prewitt operator, T = 225(D) Sobel operator, T = 225 A Comparison of Various Edge Detector

January 20, 2010T Computer Vision20 Criteria for Optimal Edge Detection Good detection The optimal detector must minimize the probability of false positives (detecting spurious edges caused by noise), as well as that of false negatives (missing real edges) Good localization The edges detected must be as close as possible to the true edges Single response constraint The detector must return one point only for each true edge point, that is, minimize the number of local maxima around the true edge (created by noise)

January 20, 2010T Computer Vision21 Canny Edge Detector This is probably the most widely used edge detector in Computer Vision Algorithm Compute f x and f y : Compute the gradient magnitude : Apply non-maxima suppression Apply hysteresis thresholding/edge linking

January 20, 2010T Computer Vision22 Non Maxima Suppression To find the edge points, we need to find the local maxima of the gradient magnitude Broad ridges must be thinned so that only the magnitudes at the points of greatest local change remain All values along the direction of gradient that are not peak values of a ridge are suppressed

January 20, 2010T Computer Vision23 Hysteresis thresholding/Edge linking The output of non-maxima suppression still contains the local maxima created by noise Can we get rid of them just by using a single threshold ? If we set a low threshold some noisy maxima will be accepted too If we set a high threshold, true maxima might be missed (the value of true maxima will fluctuate above and below the threshold, fragmenting the edge) A more effective scheme is to use two thresholds A low threshold t L A high threshold t H, usually t H = 2 t L

January 20, 2010T Computer Vision24 A Comparison of Various Edge Detector

January 20, 2010T Computer Vision25 Edge Detection using 2 nd Derivatives Edge points can be detected by finding the zero-crossing of the second derivative There are two operators in 2D that correspond to the 2 nd derivative : Laplacian and Second directional derivative

January 20, 2010T Computer Vision26 The Laplacian

January 20, 2010T Computer Vision27 Example of Laplacian Mask

January 20, 2010T Computer Vision28 Laplacian of Gaussian (LOG) To reduce the noise effect, the images is first smoothed with a LPF In case of LOG, the LPF is chosen to be a Gaussian It can be shown that :

January 20, 2010T Computer Vision29 Gradient VS LOG : A Comparison Gradient works well when the image contains sharp intensity transitions and low noise Zero-crossing of LOG offer better localization, especially when the edges are not very sharp