Concepts in. Edge Detection

Similar documents
Concepts in. Edge Detection

Digital Image Processing. Image Enhancement - Filtering

Comparison between Various Edge Detection Methods on Satellite Image

Lecture 7: Most Common Edge Detectors

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

Filtering Images. Contents

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

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

Lecture 6: Edge Detection

Local Image preprocessing (cont d)

Feature Detectors - Canny Edge Detector

Image Processing

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

Neighborhood operations

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

A Robust Method for Circle / Ellipse Extraction Based Canny Edge Detection

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

Edge Detection Lecture 03 Computer Vision

SRCEM, Banmore(M.P.), India

Biomedical Image Analysis. Point, Edge and Line Detection

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

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

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

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

Edge detection. Gradient-based edge operators

Line, edge, blob and corner detection

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

Dynamic Thresholding Based Edge Detection

REVIEW PAPER ON IMAGE EDGE DETECTION ALGORITHMS FOR SEGMENTATION

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

Performance Evaluation of Edge Detection Techniques for Images in Spatial Domain

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

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

Design of Improved Canny Edge Detection Algorithm

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

AN EFFICIENT APPROACH FOR IMPROVING CANNY EDGE DETECTION ALGORITHM

Edge Detection CSC 767

Feature Detectors - Sobel Edge Detector

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

Practical Image and Video Processing Using MATLAB

Digital Image Processing COSC 6380/4393

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

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

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

Edge and corner detection

Lecture 4: Image Processing

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

Image Analysis. Edge Detection

Segmentation and Grouping

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

CS5670: Computer Vision

COMPARATIVE STUDY OF IMAGE EDGE DETECTION ALGORITHMS

Edges and Binary Images

Implementation of Canny Edge Detection Algorithm on FPGA and displaying Image through VGA Interface

Image Analysis. Edge Detection

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

Evaluation Of Image Detection Techniques

Prof. Feng Liu. Winter /15/2019

EDGE BASED REGION GROWING

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

Image features. Image Features

Edge Detection. Ziv Yaniv School of Engineering and Computer Science The Hebrew University, Jerusalem, Israel.

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

Image Understanding Edge Detection

Algorithms for Edge Detection and Enhancement for Real Time Images: A Comparative Study

Topic 4 Image Segmentation

Comparative Analysis of Various Edge Detection Techniques in Biometric Application

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

DIGITAL IMAGE PROCESSING

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

Image Processing. Traitement d images. Yuliya Tarabalka Tel.

CS4670: Computer Vision Noah Snavely

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

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

Adaptative Elimination of False Edges for First Order Detectors

Other Linear Filters CS 211A

Comparative Analysis of Edge Detection Algorithms Based on Content Based Image Retrieval With Heterogeneous Images

Digital Image Procesing

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

Lesson 6: Contours. 1. Introduction. 2. Image filtering: Convolution. 3. Edge Detection. 4. Contour segmentation

Lecture: Edge Detection

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

Image gradients and edges

5. Feature Extraction from Images

EE795: Computer Vision and Intelligent Systems

COMPUTER VISION. Dr. Sukhendu Das Deptt. of Computer Science and Engg., IIT Madras, Chennai

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

Filtering and Enhancing Images

CHAPTER 4 EDGE DETECTION TECHNIQUE

Detection of Edges Using Mathematical Morphological Operators

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

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

Feature Extraction and Image Processing, 2 nd Edition. Contents. Preface

EECS490: Digital Image Processing. Lecture #19

Segmentation. University of the Philippines August Diane Lingrand University of Nice Sophia Antipolis, France

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

Edge Detection. EE/CSE 576 Linda Shapiro

Edge Detection Techniques in Processing Digital Images: Investigation of Canny Algorithm and Gabor Method

Anno accademico 2006/2007. Davide Migliore

Edge Detection in Angiogram Images Using Modified Classical Image Processing Technique

Transcription:

Concepts in Edge Detection Dr. Sukhendu Das Deptt. of Computer Science and Engg., Indian Institute of Technology, Madras Chennai 600036, India. http://www.cs.iitm.ernet.in/~sdas Email: sdas@iitm.ac.in

Edge Detection Edge is a boundary between two homogeneous regions. The gray level properties of the two regions on either side of an edge are distinct and exhibit some local uniformity or homogeneity among themselves. An edge is typically extracted by computing the derivative of the image intensity function. This consists of two parts: Magnitude of the derivative: measure of the strength/contrast of the edge Direction of the derivative vector: edge orientation Ideal Step edge in -D Step edge in 2-D

Computing the derivative: Finite difference in -D df dx f ( x + dx) dx f ( x) f ( x + dx) f 2dx ( x dx) d d 2 2 f x f ( x + dx) 2 f ( x) 2 dx + f ( x dx) F(x) x-dx x x+dx X

Computing the derivative: Finite differences in 2-D dy dy y x f dy y x f dy y x f dy y x f y f dx dy dx x f dy dx x f dx y x f y dx x f x f 2 ), ( ), ( ), ( ), ( 2 ), ( ), ( ), ( ), ( + + + + Original Image Horizontal derivative Vertical derivative

Differentiation using convolution: δf/δx = [- ]; δf/δy = [- ] T ; δ 2 f/δx 2 = [ -2 ]; δ 2 f/δy 2 = [ -2 ] T ; Need to use wider masks to add an element of smoothing and better response. The traditional derivative operators used were: Roberts Prewitt Sobel 2 0 0 0 2, 0 2 0 2 0 0 0 0, 0 0 0 0 0, 0 0 Laplacian 0 0 4 0 0

Two components of the edge values computed are: Gradient values: G x = δf/δx; Gy = δf/δy. G x, Gy The magnitude of the edge is calculated as: G = [G x2 + G y2 ] /2 and orientation as: θ = arctan(g y /G x ) Most of these partial derivative operators are sensitive to noise. Use of these masks resulted in thick edges or boundaries, in addition to spurious edge pixels due to noise. Laplacian mask is highly sensitive to spike noise. Use of noise smoothing became mandatory before edge detection, specifically for noisy images. But noise smoothing, typically by the use of a Gaussian function, caused a blurring or smearing of the edge information or gradient values.

A Gaussian function is shown below. The width of the Gaussian depends on the variance σ. The value of σ dictates the amount of smoothing. The expression of the Gaussian function is given as: g x 2σ ( ) x = e 2πσ 2 2 Gaussian Function Marr and Hildreth (980) suggested the use of the Laplacian of the Gaussian (LOG) operator to detect edges. This produced edges as Zero-Crossings (ZC s) in the output function - why?? However, it did not give any idea of the gradient magnitude or orientation of the edges. But ZC s were spread through-out an image. How do one detect true edges from ZC s??

LOG operator in -D LOG operator in 2-D

Ideal Step Edge Smoothed Step Edge G: Gaussian Function First Derivative

Images Horizontal Intensity Profiles First Derivative Second Derivative

Original Gray scale Image X-gradient Y-gradient Total Gradient Magnitude Bi level Thresholding Original Grey level Image After Laplace Operator After Zero-crossing

δf δ 2 F

Edge Noisy Edge First Derivative Second Derivative

Canny in 986 suggested an optimal operator, which uses the Gaussian smoothing and the derivative function together. He proved that the first derivative of the Gaussian function, as shown below, is a good approximation to his optimal operator. It combines both the derivative and smoothing properties in a nice way to obtain good edges. Canny also talks of a hysteresis based thresholding strategy for marking the edges from the gradient values. Smoothing and derivative when applied separately, were not producing good results under noisy conditions. This is because, one opposes the other. Whereas, when combined together produces the desired output. Expression of Canny (-D operator is): 2 y y c( y) = g'( y) = ( )exp( ) 2 2πσ 3 2σ

Canny s algorithm for edge detection: Detect an edge, where simultaneously the following conditions are satisfied: 2 G*f = 0 and G*f reaches a maximum. G is the first derivative of the Gausian defined (in -D) as: and 2 x x G( x) = exp( 3 2 2πσ 2 2σ 2 G in two-dimension is given by (also known as the Laplacian of the Gaussian or LOG operator): 2 r G( r) = ( )( r 2 2 σ 2 ) exp( πσ 4 2σ 2 2 2 ) )

G: Gaussian Function Noisy Edge, Sn δg δg * Sn

δg δg * Sn δ 2 G δ 2 G * Sn

Noisy Edge, Sn δg δg * Sn δ 2 G δ 2 G * Sn

Three criteria in the optimization function used by Canny, for deriving the operator: - Localization, Detection and minimal response (SNR-based). The three-four stages of Canny s algorithm: - Apply Operator (often implemented as Smoothing then Derivative) - Apply non-maximal suppression - Apply hysteresis based (linking and) thresholding Read about - DERICHE [987] recursive filtering

Non-maximum suppression: Select the single maximum point across the width of an edge.

Graphical Interpretation of non-maximal suppression x x Wide ridges around the local maxima (large values around the edges) Th

Original Image, Presmoothed Image, Gradient Image, Non-maximum Suppressed Image, Final Result

Original Image, Presmoothed Image, Gradient Image, Non-maximum Suppressed Image, Final Result http://www-scf.usc.edu/~boqinggo/canny.htm

Canny Edge Detection (Example) Original image Strong + connected weak edges Strong edges only Weak edges courtesy of G. Loy

Lena Sobel LOG Canny

Venice LOG Sobel Canny

BIRD SOBEL LOG Canny

Read about: - Hysteresis based Thresholding - Optimization based (MRF, HMM) edge - Non-maximal suppression detection, in presence of noise and blur - Edge Linking - Edge Thinning - Multi-channel edge detection - Deriche/Shen filter ++ - Edge preserving enhancement or super-resolution - Contour Tracing - Level set based or differential geometry based analysis - Edge detection with sub-pixel accuracy - Neuro-fuzzy models for optimal edge detection - Phase Congruency model (Peter Kovesi) for edge detection - Deriche model for optimal/recursive filtering - Neural model for supervised edge detection - Multi-resolution and multi-scale edge detection

Effect of threshold original σ = σ = T high = 255 T low = T high = 255 T low = 220

Effect of threshold and of σ (Gaussian kernel size) original σ = σ = 2 T high = 20 T low = T high = 20 T low =

Multi-scale Edge detection

Problem definition Our goal is to simultaneously extract edges of all lengths Edges are well localized across the scale-space Input image Edge map generated by single scale Edge map generated by scale space Combination

σ=0.5 σ=.5 2-D Canny edge maps σ= σ=2

LOG with increasing SIGMA

Motivation A step edge is sensed at various points by cells of the retinal array Real-world objects are composed of different structures at different scales Connectivity of an object depends on the scale at which it is observed In real-world images the edges may not be ideal Variation of the response over different scales is important

Optimal Edge Detection in Two-Dimensional Images

Compute the gradient map of Gaussian blurred image Assign the magnitude of the gradient as edge strength to all edge pixels Edge strength is equalized (HEQ) to full scale of intensity SALIENCY TEST Compute the histogram for the edge segment strengths Fit a Gaussian to the low intensity part of the histogram and compute three threshold (Low, medium and high) based on mean and variance of Gaussian Compute the normalized edge strength (NES) for all edge segments as sum of strengths of all the edge points divided by length of the segment NES: Normalized Edge Strength NESS: Normalized Edge Strength of sub-segment LT: Low Threshold HT: High threshold MT: Medium Threshold Compute edge subsegments and compute NESS for each subsegment No NES > MT yes NESS > HT yes NESS >LT yes Salient edge Map

Histogram of the normalised edge strengths and fitted Gaussian distribution σ=0.5 σ=.5

σ=0.5 σ= σ=.5 σ= 2 2-D Canny edge map Salient Edge maps

Combining different scales The combination procedure checks if there are new salient edges in the detection results from larger scales Algorithm. Minmap, maxmap= edge map of smallest scale 2. Compare maxmap with second smallest scale edgemap 3. If an edge segment of minimum length from second smallest scale does not appear in maxmap, add that particular segment to minmap 4. Repeat step 2 and step 3 with various scales 5. Minmap is the final combined scale output

Scale space combination 2-D Canny edge model Scale space combination of Qian & Huang edge model Lena 256x256

REFERENCES Digital Image Processing and Computer Vision ; Robert J. Schallkoff; John Wiley and Sons; 989+. Digital Image Processing ; R. C. Gonzalez and R. E. Woods; Addison Wesley; 992+. Optimal Edge Detection in Two-Dimensional Images, Richard J. Qian and Thomas S. Huang, IEEE TRANSACTIONS ON IMAGE PROCESSING, VOL. 5, NO. 7, JULY 996, 25-220. A Two-Dimensional Edge Detection Scheme for General Visual Processing, Qian, R.J. and Huang, T.S, ICPR-94, YEAR = "994", "595-598". R. Deriche, Using Canny's criteria to derive a recursively implemented optimal edge detector, Int. J. Computer Vision, Vol., pp. 67 87, April 987. J. Canny, A Computational Approach To Edge Detection, IEEE Trans. Pattern Analysis and Machine Intelligence, 8(6):679 698, 986. R. Sirdey, A Gentle Introduction to the Deriche Optimal Edge Detector, Éditions des Nik's news, 998.