What Are Edges? Lecture 5: Gradients and Edge Detection. Boundaries of objects. Boundaries of Lighting. Types of Edges (1D Profiles)

Similar documents
Edge Detection. CSC320: Introduction to Visual Computing Michael Guerzhoy. René Magritte, Decalcomania. Many slides from Derek Hoiem, Robert Collins

Lecture 6: Edge Detection

Digital Image Processing. Image Enhancement - Filtering

Biomedical Image Analysis. Point, Edge and Line Detection

Edge detection. Goal: Identify sudden. an image. Ideal: artist s line drawing. object-level knowledge)

CS334: Digital Imaging and Multimedia Edges and Contours. Ahmed Elgammal Dept. of Computer Science Rutgers University

Lecture 7: Most Common Edge Detectors

Vehicle Image Classification using Image Fusion at Pixel Level based on Edge Image

convolution shift invariant linear system Fourier Transform Aliasing and sampling scale representation edge detection corner detection

Edge detection. Stefano Ferrari. Università degli Studi di Milano Elaborazione delle immagini (Image processing I)

CS5670: Computer Vision

Image Analysis. Edge Detection

CS534: Introduction to Computer Vision Edges and Contours. Ahmed Elgammal Dept. of Computer Science Rutgers University

Announcements. Edge Detection. An Isotropic Gaussian. Filters are templates. Assignment 2 on tracking due this Friday Midterm: Tuesday, May 3.

Edge detection. Winter in Kraków photographed by Marcin Ryczek

Edge Detection CSC 767

Edge detection. Winter in Kraków photographed by Marcin Ryczek

Topic 4 Image Segmentation

Computer Vision I. Announcements. Fourier Tansform. Efficient Implementation. Edge and Corner Detection. CSE252A Lecture 13.

Visualizing Images. Lecture 2: Intensity Surfaces and Gradients. Images as Surfaces. Bridging the Gap. Examples. Examples

Robert Collins CSE486, Penn State. Lecture 2: Intensity Surfaces and Gradients

Computer Vision I. Announcement. Corners. Edges. Numerical Derivatives f(x) Edge and Corner Detection. CSE252A Lecture 11

Local Image preprocessing (cont d)

Image Analysis. Edge Detection

CS 4495 Computer Vision. Linear Filtering 2: Templates, Edges. Aaron Bobick. School of Interactive Computing. Templates/Edges

EECS490: Digital Image Processing. Lecture #19

Feature Detectors - Canny Edge Detector

Edge Detection. Today s reading. Cipolla & Gee on edge detection (available online) From Sandlot Science

Edge Detection. Announcements. Edge detection. Origin of Edges. Mailing list: you should have received messages

Filtering and Edge Detection. Computer Vision I. CSE252A Lecture 10. Announcement

SRCEM, Banmore(M.P.), India

Edge and Texture. CS 554 Computer Vision Pinar Duygulu Bilkent University

Image Processing

Other Linear Filters CS 211A

DIGITAL IMAGE PROCESSING

Edges and Binary Images

Edge Detection Lecture 03 Computer Vision

Neighborhood operations

[ ] Review. Edges and Binary Images. Edge detection. Derivative of Gaussian filter. Image gradient. Tuesday, Sept 16

CS4670: Computer Vision Noah Snavely

Edge Detection (with a sidelight introduction to linear, associative operators). Images

EECS490: Digital Image Processing. Lecture #20

Digital Image Processing COSC 6380/4393

Line, edge, blob and corner detection

Anno accademico 2006/2007. Davide Migliore

Multimedia Computing: Algorithms, Systems, and Applications: Edge Detection

Edge detection. Convert a 2D image into a set of curves. Extracts salient features of the scene More compact than pixels

Prof. Feng Liu. Winter /15/2019

Ulrik Söderström 16 Feb Image Processing. Segmentation

Image Processing. BITS Pilani. Dr Jagadish Nayak. Dubai Campus

Edge Detection. CS664 Computer Vision. 3. Edges. Several Causes of Edges. Detecting Edges. Finite Differences. The Gradient

Edge Detection. CMPUT 206: Introduction to Digital Image Processing. Nilanjan Ray. Source:

Edge and corner detection

Segmentation and Grouping

Edge Detection. CSE 576 Ali Farhadi. Many slides from Steve Seitz and Larry Zitnick

Edge and local feature detection - 2. Importance of edge detection in computer vision

Feature Detectors - Sobel Edge Detector

Comparison between Various Edge Detection Methods on Satellite Image

Comparative Analysis of Various Edge Detection Techniques in Biometric Application

Review of Filtering. Filtering in frequency domain

A Comparative Assessment of the Performances of Different Edge Detection Operator using Harris Corner Detection Method

What is an edge? Paint. Depth discontinuity. Material change. Texture boundary

An Algorithm for Blurred Thermal image edge enhancement for security by image processing technique

Effects Of Shadow On Canny Edge Detection through a camera

COMPARATIVE STUDY OF IMAGE EDGE DETECTION ALGORITHMS

Lecture 4: Image Processing

Announcements. Edges. Last Lecture. Gradients: Numerical Derivatives f(x) Edge Detection, Lines. Intro Computer Vision. CSE 152 Lecture 10

the most common approach for detecting meaningful discontinuities in gray level. we discuss approaches for implementing

Chapter 10: Image Segmentation. Office room : 841

Image Understanding Edge Detection

Image gradients and edges

EDGE DETECTION-APPLICATION OF (FIRST AND SECOND) ORDER DERIVATIVE IN IMAGE PROCESSING

EDGE BASED REGION GROWING

Lecture: Edge Detection

Biometrics Technology: Image Processing & Pattern Recognition (by Dr. Dickson Tong)

SURVEY ON IMAGE PROCESSING IN THE FIELD OF DE-NOISING TECHNIQUES AND EDGE DETECTION TECHNIQUES ON RADIOGRAPHIC IMAGES

Solution: filter the image, then subsample F 1 F 2. subsample blur subsample. blur

Image Processing. Traitement d images. Yuliya Tarabalka Tel.

Texture. Frequency Descriptors. Frequency Descriptors. Frequency Descriptors. Frequency Descriptors. Frequency Descriptors

CHAPTER 4 EDGE DETECTION TECHNIQUE

Filtering and Enhancing Images

EN1610 Image Understanding Lab # 3: Edges

Linear Operations Using Masks

Concepts in. Edge Detection

Lecture 9: Hough Transform and Thresholding base Segmentation

Image Segmentation Image Thresholds Edge-detection Edge-detection, the 1 st derivative Edge-detection, the 2 nd derivative Horizontal Edges Vertical

Dynamic Thresholding Based Edge Detection

Edges and Binary Image Analysis. Thurs Jan 26 Kristen Grauman UT Austin. Today. Edge detection and matching

Edges, interpolation, templates. Nuno Vasconcelos ECE Department, UCSD (with thanks to David Forsyth)

Edge Detection. EE/CSE 576 Linda Shapiro

Filtering in frequency domain

PERFORMANCE ANALYSIS OF CANNY AND OTHER COMMONLY USED EDGE DETECTORS Sandeep Dhawan Director of Technology, OTTE, NEW YORK

Previously. Edge detection. Today. Thresholding. Gradients -> edges 2/1/2011. Edges and Binary Image Analysis

Segmentation I: Edges and Lines

Adaptative Elimination of False Edges for First Order Detectors

How and what do we see? Segmentation and Grouping. Fundamental Problems. Polyhedral objects. Reducing the combinatorics of pose estimation

Edges and Binary Image Analysis April 12 th, 2018

Edge Detection. Computer Vision Shiv Ram Dubey, IIIT Sri City

Introduction to Computer Vision

EE795: Computer Vision and Intelligent Systems

Transcription:

What Are Edges? Simple answer: discontinuities in intensity. Lecture 5: Gradients and Edge Detection Reading: T&V Section 4.1 and 4. Boundaries of objects Boundaries of Material Properties D.Jacobs, U.Maryland Boundaries of Lighting Types of Edges (1D Profiles) Edges can be modeled according to their intensity profiles: Step edge: step the image intensity abruptly changes from one value to one side of the discontinuity to a different value on the opposite side. ramp Ramp edge: a step edge where the intensity change is not instantaneous but occurs over a finite distance. D.Jacobs, U.Maryland step ramp 1

Types of Edges (1D Profiles) Ridge edge: the image intensity abruptly changes value but then returns to the starting value within some short distance generated usually by lines Types of Edges (1D Profiles) Roof edge: a ridge edge where the intensity change is not instantaneous but occurs over a finite distance generated usually by the intersection of surfaces

Step/Ramp Edge Terminology Edge descriptors Edge normal: unit vector in the direction of maximum intensity change. Edge direction: unit vector along edge (perpendicular to edge normal). Edge position or center: the image position at which the edge is located. Edge strength or magnitude: local image contrast along the normal. Summary of Gradients Gradient Vector: =[, ] T Important point: All of this information can be computed from the gradient vector field!! Magnitude: Orientation Simple Edge Detection Using Gradients A simple edge detector using gradient magnitude Compute gradient vector at each pixel by convolving image with horizontal and vertical derivative filters Compute gradient magnitude at each pixel If magnitude at a pixel exceeds a threshold, report a possible edge point. Compute Spatial Image Gradients I(x,y) I(x+1,y) - I(x-1,y) Partial derivative wrt x I(x,y+1) - I(x,y-1) Partial derivative wrt y Replace with your favorite smoothing+derivative operator I x =di(x,y)/dx I y =di(x,y)/dy Simple Edge Detection Using Gradients Compute Gradient Magnitude A simple edge detector using gradient magnitude Compute gradient vector at each pixel by convolving image with horizontal and vertical derivative filters Compute gradient magnitude at each pixel If magnitude at a pixel exceeds a threshold, report a possible edge point. I(x,y) I x I y Magnitude of gradient sqrt(ix.^ + Iy.^) Measures steepness of slope at each pixel (= edge contrast) 3

Simple Edge Detection Using Gradients Threshold to Find Edge Pixels A simple edge detector using gradient magnitude Example cont.: Binary edge image Compute gradient vector at each pixel by convolving image with horizontal and vertical derivative filters Threshold Mag > 30 Compute gradient magnitude at each pixel If magnitude at a pixel exceeds a threshold, report a possible edge point. Edge Detection Using Gradient Magnitude Issues to Address How should we choose the threshold? > 10 > 30 > 80 Trade-off: Smoothing vs Localization Issues to Address Edge thinning and linking smoothing+thresholding gives us a binary mask with thick edges we want thin, one-pixel wide, connected contours 4

Canny Edge Detector Formal Design of an Optimal Edge Detector An important case study Probably, the most used edge detection algorithm by C.V. practitioners Experiments consistently show that it performs very well Edge detection involves 3 steps: Noise smoothing Edge enhancement Edge localization J. Canny formalized these steps to design an optimal edge detector J. Canny A Computational Approach to Edge Detection, IEEE Transactions on Pattern Analysis and Machine Intelligence, Vol 8, No. 6, Nov 1986 Edge Model (1D) Performance Criteria (1) An ideal edge can be modeled as an step A 0 if x < 0 G( x) = A if x 0 Good detection The filter must have a stronger response at the edge location (x=0) than to noise Additive, White Gaussian Noise RMS noise amplitude/unit length n o Performance Criteria () Performance Criteria (3) Good Localization The filter response must be maximum very close to x=0 Low False Positives There should be only one maximum in a reasonable neighborhood of x=0 X=0 large 5

Canny Edge Detector Canny found a linear, continuous filter that maximized the three given criteria. There is no closed-form solution for the optimal filter. However, it looks VERY SIMILAR to the derivative of a Gaussian. Thinning and linking Recall: Practical Issues for Edge Detection Choosing a magnitude threshold OR Canny has good answers to all! Thinning note: do thinning before thresholding! Which Threshold to Pick? mag(x0) = maximum magnitude location along slice We want to mark points along curve where the magnitude is largest. We can do this by looking for a maximum along a 1D intensity slice normal to the curve (non-maximum supression). These points should form a one-pixel wide curve. x0 problem: Two thresholds applied to gradient magnitude If the threshold is too high: Very few (none) edges High MISDETECTIONS, many gaps If the threshold is too low: Too many (all pixels) edges High FALSE POSITIVES, many extra edges SOLUTION: Hysteresis Thresholding Allows us to apply both! (e.g. a fuzzy threshold) Example of Hysteresis Thresholding Keep both a high threshold H and a low threshold L. Any edges with strength < L are discarded. Any edge with strength > H are kept. An edge P with strength between L and H is kept only if there is a path of edges with strength > L connecting P to an edge of strength > H. In practice, this thresholding is combined with edge linking to get connected contours 6

Canny Edges: fine scale high threshold coarse scale, high threshold coarse scale low threshold Complete Canny Algorithm See textbook for more details. 7