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

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

Edge Detection CSC 767

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

Prof. Feng Liu. Winter /15/2019

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

Edge and corner detection

CS5670: Computer Vision

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

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

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

Edges and Binary Images

CS4670: Computer Vision Noah Snavely

Review of Filtering. Filtering in frequency domain

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

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

DIGITAL IMAGE PROCESSING

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

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

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

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

Image Analysis. Edge Detection

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

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

Image gradients and edges April 11 th, 2017

Image gradients and edges April 10 th, 2018

Image gradients and edges

Image Analysis. Edge Detection

Lecture 4: Finding lines: from detection to model fitting

Lecture 7: Most Common Edge Detectors

Image gradients and edges

Edge Detection. EE/CSE 576 Linda Shapiro

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

Lecture 6: Edge Detection

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

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

Digital Image Processing. Image Enhancement - Filtering

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

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

Edges and Binary Image Analysis April 12 th, 2018

Filtering in frequency domain

Does everyone have an override code?

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

Other Linear Filters CS 211A

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

Straight Lines and Hough

Digital Image Processing COSC 6380/4393

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

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

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

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

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

Anno accademico 2006/2007. Davide Migliore

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

Edge detection. Gradient-based edge operators

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

Local Image preprocessing (cont d)

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

Image Processing

Boundaries and Sketches

CS 558: Computer Vision 3 rd Set of Notes

Biomedical Image Analysis. Point, Edge and Line Detection

Comparison between Various Edge Detection Methods on Satellite Image

Edge Detection Lecture 03 Computer Vision

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

Concepts in. Edge Detection

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

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

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

Segmentation and Grouping

Topic 4 Image Segmentation

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

Lecture 4: Image Processing

Image processing. Reading. What is an image? Brian Curless CSE 457 Spring 2017

Canny Edge Detection

CPSC 425: Computer Vision

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

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

Practical Image and Video Processing Using MATLAB

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

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

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

Image Understanding Edge Detection

Neighborhood operations

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

Lecture: Edge Detection

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

Image features. Image Features

Image Processing. Traitement d images. Yuliya Tarabalka Tel.

Assignment 3: Edge Detection

Filtering Images. Contents

Adaptative Elimination of False Edges for First Order Detectors

EDGE BASED REGION GROWING

Introduction to Computer Vision

Feature descriptors. Alain Pagani Prof. Didier Stricker. Computer Vision: Object and People Tracking

IMAGE PROCESSING >FILTERS AND EDGE DETECTION FOR COLOR IMAGES UTRECHT UNIVERSITY RONALD POPPE

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

ShadowDraw Real-Time User Guidance for Freehand Drawing. Harshal Priyadarshi

2D Image Processing INFORMATIK. Kaiserlautern University. DFKI Deutsches Forschungszentrum für Künstliche Intelligenz

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

Segmentation I: Edges and Lines

Transcription:

Edge detection Winter in Kraków photographed by Marcin Ryczek

Edge detection Goal: Identify sudden changes (discontinuities) in an image Intuitively, most semantic and shape information from the image can be encoded in the edges More compact than pixels Ideal: artist s line drawing (but artist is also using object-level knowledge) Source: D. Lowe

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

Edge detection 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

Derivatives with convolution For 2D function f(x,y), the partial derivative is: For discrete data, we can approximate using finite differences: To implement the above as convolution, what would be the associated filter? ε ε ε ), ( ), ( lim ), ( 0 y x f y x f x y x f + = 1 ), ( ) 1, ( ), ( y x f y x f x y x f + Source: K. Grauman

Partial derivatives of an image f ( x, y) x f ( x, y) y -1 1-1 1 or 1-1 Which shows changes with respect to x?

Finite difference filters Other approximations of derivative filters exist: Source: K. Grauman

Image gradient The gradient of an image: The gradient points in the direction of most rapid increase in intensity How does this direction relate to the direction of the edge? The gradient direction is given by The edge strength is given by the gradient magnitude Source: Steve Seitz

Application: Gradient-domain image editing Goal: solve for pixel values in the target region to match gradients of the source region while keeping background pixels the same P. Perez, M. Gangnet, A. Blake, Poisson Image Editing, SIGGRAPH 2003

Effects of noise Consider a single row or column of the image Where is the edge? Source: S. Seitz

Solution: smooth first f g f * g d dx ( f g) To find edges, look for peaks in ( f g) d dx Source: S. Seitz

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 Source: S. Seitz

Derivative of Gaussian filters x-direction y-direction Which one finds horizontal/vertical edges?

Derivative of Gaussian filters x-direction y-direction Are these filters separable?

Recall: Separability of the Gaussian filter Source: D. Lowe

Scale of Gaussian derivative filter 1 pixel 3 pixels 7 pixels Smoothed derivative removes noise, but blurs edge. Also finds edges at different scales Source: D. Forsyth

Review: Smoothing vs. derivative filters Smoothing filters Gaussian: remove high-frequency components; low-pass filter Can the values of a smoothing filter be negative? What should the values sum to? One: constant regions are not affected by the filter Derivative filters Derivatives of Gaussian Can the values of a derivative filter be negative? What should the values sum to? Zero: no response in constant regions

Building an edge detector original image final output

Building an edge detector norm of the gradient

Building an edge detector How to turn these thick regions of the gradient into curves? Thresholded norm of the gradient

Non-maximum suppression Check if pixel is local maximum along gradient direction, select single max across width of the edge requires checking interpolated pixels p and r

Non-maximum suppression Another problem: pixels along this edge didn t survive the thresholding

Hysteresis thresholding Use a high threshold to start edge curves, and a low threshold to continue them. Source: Steve Seitz

Hysteresis thresholding original image high threshold (strong edges) low threshold (weak edges) hysteresis threshold Source: L. Fei-Fei

Recap: Canny edge detector 1. Compute x and y gradient images 2. Find magnitude and orientation of gradient 3. Non-maximum suppression: Thin wide ridges down to single pixel width 4. Linking and thresholding (hysteresis): Define two thresholds: low and high Use the high threshold to start edge curves and the low threshold to continue them MATLAB: edge(image, canny ); J. Canny, A Computational Approach To Edge Detection, IEEE Trans. Pattern Analysis and Machine Intelligence, 8:679-714, 1986.

Image gradients vs. meaningful contours image human segmentation gradient magnitude Berkeley segmentation database: http://www.eecs.berkeley.edu/research/projects/cs/vision/grouping/segbench/

Data-driven edge detection Training data Input images Ground truth Output P. Dollar and L. Zitnick, Structured forests for fast edge detection, ICCV 2013