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

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

Edge Detection. EE/CSE 576 Linda Shapiro

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

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

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

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

CS5670: Computer Vision

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

Edge Detection CSC 767

Other Linear Filters CS 211A

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

Edge and corner detection

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

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

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

Edges and Binary Images

Lecture 7: Most Common Edge Detectors

Review of Filtering. Filtering in frequency domain

Straight Lines and Hough

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

CS4670: Computer Vision Noah Snavely

DIGITAL IMAGE PROCESSING

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

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

Lecture 4: Finding lines: from detection to model fitting

Anno accademico 2006/2007. Davide Migliore

Prof. Feng Liu. Winter /15/2019

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

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

Edge detection. Gradient-based edge operators

Image gradients and edges April 11 th, 2017

Image gradients and edges April 10 th, 2018

Digital Image Processing COSC 6380/4393

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

Lecture 6: Edge Detection

Biomedical Image Analysis. Point, Edge and Line Detection

Lecture 9: Hough Transform and Thresholding base Segmentation

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

Image Analysis. Edge Detection

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

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

Image gradients and edges

Fitting. Lecture 8. Cristian Sminchisescu. Slide credits: K. Grauman, S. Seitz, S. Lazebnik, D. Forsyth, J. Ponce

Image Analysis. Edge Detection

Generalized Hough Transform, line fitting

Does everyone have an override code?

Types of Edges. Why Edge Detection? Types of Edges. Edge Detection. Gradient. Edge Detection

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

2%34 #5 +,,% ! # %& ()% #% +,,%. & /%0%)( 1 ! # %& % %()# +(& ,.+/ +&0%//#/ &

Filtering Images. Contents

Edge Detection Lecture 03 Computer Vision

Filtering in frequency domain

Low-level Vision Processing Algorithms Speaker: Ito, Dang Supporter: Ishii, Toyama and Y. Murakami

Filtering Applications & Edge Detection. GV12/3072 Image Processing.

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

Neighborhood operations

CS 2770: Computer Vision. Edges and Segments. Prof. Adriana Kovashka University of Pittsburgh February 21, 2017

Digital Image Processing. Image Enhancement - Filtering

Image Processing

Image gradients and edges

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

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

Segmentation (Part 2)

Finding 2D Shapes and the Hough Transform

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

School of Computing University of Utah

Local Image preprocessing (cont d)

ME/CS 132: Introduction to Vision-based Robot Navigation! Low-level Image Processing" Larry Matthies"

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

Lecture 8: Fitting. Tuesday, Sept 25

Announcements. Segmentation (Part 2) Image Segmentation. From images to objects. Image histograms. What do histograms look like?

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

EN1610 Image Understanding Lab # 3: Edges

Outline 7/2/201011/6/

Lecture 4: Image Processing

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

Image features. Image Features

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

Lecture 10 Detectors and descriptors

Segmentation and Grouping

SIFT: SCALE INVARIANT FEATURE TRANSFORM SURF: SPEEDED UP ROBUST FEATURES BASHAR ALSADIK EOS DEPT. TOPMAP M13 3D GEOINFORMATION FROM IMAGES 2014

Comparison between Various Edge Detection Methods on Satellite Image

Hough Transform and RANSAC

Segmentation I: Edges and Lines

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

High Level Computer Vision. Basic Image Processing - April 26, 2o17. Bernt Schiele - Mario Fritz -

EECS490: Digital Image Processing. Lecture #19

Implementing the Scale Invariant Feature Transform(SIFT) Method

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

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

Practical Image and Video Processing Using MATLAB

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

Feature Matching and Robust Fitting

Introduction. Introduction. Related Research. SIFT method. SIFT method. Distinctive Image Features from Scale-Invariant. Scale.

Image Processing. Traitement d images. Yuliya Tarabalka Tel.

Fitting: Voting and the Hough Transform April 23 rd, Yong Jae Lee UC Davis

Line, edge, blob and corner detection

Perception. Autonomous Mobile Robots. Sensors Vision Uncertainties, Line extraction from laser scans. Autonomous Systems Lab. Zürich.

Digital Image Processing (CS/ECE 545) Lecture 5: Edge Detection (Part 2) & Corner Detection

Feature Detectors and Descriptors: Corners, Lines, etc.

Transcription:

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

Edge Attneave's Cat (1954)

Origin of edges surface normal discontinuity depth discontinuity surface color discontinuity illumination discontinuity Edges are caused by a variety of factors

Characterizing edges An edge is a place of rapid change in the image intensity function image intensity function (along horizontal scanline) first derivative edges correspond to extrema of derivative

Image gradient The gradient of an image: The gradient points in the direction of most rapid change in intensity

The discrete gradient How can we differentiate a digital image F[x,y]? Option 1: reconstruct a continuous image, then take gradient Option 2: take discrete derivative ( finite difference )

Image gradient How would you implement this as a filter? The gradient direction is given by: How does this relate to the direction of the edge? The edge strength is given by the gradient magnitude

Sobel operator In practice, it is common to use: -1 0 1-2 0 2-1 0 1-1 -2-1 0 0 0 1 2 1 Magnitude: Orientation:

Sobel operator Original Magnitude Orientation

Effects of noise Consider a single row or column of the image Plotting intensity as a function of position gives a signal Where is the edge?

Effects of noise Difference filters respond strongly to noise Image noise results in pixels that look very different from their neighbors Generally, the larger the noise the stronger the response What can we do about it? Source: D. Forsyth

Solution: smooth first Where is the edge? Look for peaks in

Derivative theorem of convolution Differentiation is convolution, and convolution is associative: d d ( f g) = f g dx dx This saves us one operation: f d dx g f d dx g How can we find (local) maxima of a function? Source: S. Seitz

Remember: Derivative of Gaussian filter x-direction y-direction

Consider Laplacian of Gaussian Laplacian of Gaussian operator Where is the edge? Zero-crossings of bottom graph

2D edge detection filters Laplacian of Gaussian Gaussian derivative of Gaussian is the Laplacian operator:

Edge detection by subtraction original

Edge detection by subtraction smoothed (5x5 Gaussian)

Edge detection by subtraction Why does this work? smoothed original (scaled by 4, offset +128)

Gaussian - image filter Gaussian delta function Laplacian of Gaussian

Canny edge detector This is probably the most widely used edge detector in computer vision J. Canny, A Computational Approach To Edge Detection, IEEE Trans. Pattern Analysis and Machine Intelligence, 8:679-714, 1986. Source: L. Fei-Fei

The Canny edge detector original image (Lena)

The Canny edge detector norm of the gradient

The Canny edge detector thresholding

Get Orientation at Each Pixel theta = atan2(-gy, gx)

The Canny edge detector

The Canny edge detector thinning (non-maximum suppression)

Non-maximum suppression Check if pixel is local maximum along gradient direction Picture from Prem K Kalra

Compute Gradients (DoG) X-Derivative of Gaussian Y-Derivative of Gaussian Gradient Magnitude

Canny Edges

Effect of σ (Gaussian kernel spread/size) original Canny with Canny with The choice of depends on desired behavior large detects large scale edges small detects fine features

An edge is not a line... How can we detect lines?

Finding lines in an image Option 1: Search for the line at every possible position/ orientation What is the cost of this operation? Option 2: Use a voting scheme: Hough transform

Finding lines in an image y b b 0 image space x m 0 Hough space m Connection between image (x,y) and Hough (m,b) spaces A line in the image corresponds to a point in Hough space To go from image space to Hough space: given a set of points (x,y), find all (m,b) such that y = mx + b

Finding lines in an image y b y 0 x 0 image space x Hough space m Connection between image (x,y) and Hough (m,b) spaces A line in the image corresponds to a point in Hough space To go from image space to Hough space: given a set of points (x,y), find all (m,b) such that y = mx + b What does a point (x 0, y 0 ) in the image space map to? A: the solutions of b = -x 0 m + y 0 this is a line in Hough space

Hough transform algorithm Typically use a different parameterization d is the perpendicular distance from the line to the origin θ is the angle

Hough transform algorithm Basic Hough transform algorithm 1. Initialize H[d, θ]=0 2. for each edge point I[x,y] in the image for θ = 0 to 180 H[d, θ] += 1 3. Find the value(s) of (d, θ) where H[d, θ] is maximum 4. The detected line in the image is given by What s the running time (measured in # votes)?

Hough transform algorithm http://www.cs.utah.edu/~vpegorar/courses/ cs7966/

Hough transform algorithm http://www.cs.utah.edu/~vpegorar/courses/ cs7966/

Extensions Extension 1: Use the image gradient 1. same 2. for each edge point I[x,y] in the image compute unique (d, θ) based on image gradient at (x,y) H[d, θ] += 1 3. same 4. same What s the running time measured in votes? Extension 2 give more votes for stronger edges Extension 3 change the sampling of (d, θ) to give more/less resolution Extension 4 The same procedure can be used with circles, squares, or any other shape, How?