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

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

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

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

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

Other Linear Filters CS 211A

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

CS334: Digital Imaging and Multimedia 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

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 and corner detection

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

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

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

Edge Detection CSC 767

CS5670: Computer Vision

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

Prof. Feng Liu. Winter /15/2019

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

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

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

Anno accademico 2006/2007. Davide Migliore

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

Edge Detection. EE/CSE 576 Linda Shapiro

CS4670: Computer Vision Noah Snavely

Review of Filtering. Filtering in frequency domain

Lecture 7: Most Common Edge Detectors

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

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

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

DIGITAL IMAGE PROCESSING

Edges and Binary Images

Image gradients and edges April 11 th, 2017

Image gradients and edges April 10 th, 2018

Digital Image Processing COSC 6380/4393

Image Processing

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

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

Digital Image Processing. Image Enhancement - Filtering

Image gradients and edges

Local Image preprocessing (cont d)

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

Image Analysis. Edge Detection

Filtering Images. Contents

Lecture 6: Edge Detection

Lecture 4: Finding lines: from detection to model fitting

Edge Detection Lecture 03 Computer Vision

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

Does everyone have an override code?

Edge detection. Gradient-based edge operators

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

Computer Vision I - Basics of Image Processing Part 2

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

Image Analysis. Edge Detection

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

Straight Lines and Hough

Digital Image Processing. Prof. P. K. Biswas. Department of Electronic & Electrical Communication Engineering

Computer Vision: 4. Filtering. By I-Chen Lin Dept. of CS, National Chiao Tung University

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

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

Biomedical Image Analysis. Point, Edge and Line Detection

Outline 7/2/201011/6/

Comparison between Various Edge Detection Methods on Satellite Image

Practical Image and Video Processing Using MATLAB

Lecture 4: Image Processing

Outlines. Medical Image Processing Using Transforms. 4. Transform in image space

Computer Vision I - Filtering and Feature detection

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

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

CS559: Computer Graphics. Lecture 6: Painterly Rendering and Edges Li Zhang Spring 2008

Image Processing. Traitement d images. Yuliya Tarabalka Tel.

Local Features: Detection, Description & Matching

Lecture 6 Linear Processing. ch. 5 of Machine Vision by Wesley E. Snyder & Hairong Qi. Spring (CMU RI) : BioE 2630 (Pitt)

Segmentation and Grouping

CPSC 425: Computer Vision

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

School of Computing University of Utah

Lecture: Edge Detection

CAP 5415 Computer Vision Fall 2012

Concepts in. Edge Detection

Image gradients and edges

Lecture 10 Detectors and descriptors

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

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

Vivekananda. Collegee of Engineering & Technology. Question and Answers on 10CS762 /10IS762 UNIT- 5 : IMAGE ENHANCEMENT.

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

Computer Vision I - Basics of Image Processing Part 1

EE795: Computer Vision and Intelligent Systems

Capturing, Modeling, Rendering 3D Structures

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

Generalized Hough Transform, line fitting

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

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

Scaled representations

SYDE 575: Introduction to Image Processing

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

Obtaining Feature Correspondences

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

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

Transcription:

Images (we will, eventually, come back to imaging geometry. But, now that we know how images come from the world, we will examine operations on images). Edge Detection (with a sidelight introduction to linear, associative operators). (todays slides largely from David Forsyth and Cornelia Fermuller) Why edges? Convert a 2D image into a set of curves Extracts salient features of the scene ( invariant features ) More compact than pixels Origin of Edges Edge detection surface normal discontinuity depth discontinuity surface color discontinuity illumination discontinuity Edges are caused by a variety of factors How can you tell that a pixel is on an edge? 1

Edges. Found with Linear Filters applied to images. Linear Filters Linear Operator, from mathworld. An operator is said to be linear if, for every pair of functions f and g and scalar t, and General process: Form new image whose pixels are a weighted sum of original pixel values, using the same set of weights at each point. Properties Output is a linear function of the input Output is a shift-invariant function of the input (i.e. shift the input image two pixels to the left, the output is shifted two pixels to the left) Example: smoothing by averaging form the average of pixels in a neighbourhood Example: smoothing with a Gaussian form a weighted average of pixels in a neighbourhood Example: finding a derivative form a weighted average of pixels in a neighbourhood Edgel detection Edge is Where Change Occurs Difference operators (an edge is a change in intensity!) Change is measured by derivative in 1D Biggest change, derivative has maximum magnitude Or 2 nd derivative is zero. Parametric-model matchers (how do you describe your edges?) Image gradient as measure of change smooth images f(x,y) is pixel intensity at (continuous) location x,y 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) 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 2

Finite differences Finite differences responding to noise Increasing noise -> (this is zero mean additive gaussian noise) Effects of noise Consider a single row or column of the image Plotting intensity as a function of position gives a signal sigma=1 Where is the edge? Finite differences and noise sigma=16 We re really good at ignoring noise? How? Finite difference filters respond strongly to noise obvious reason: image noise results in pixels that look very different from their neighbours Generally, the larger the noise the stronger the response What is to be done? intuitively, most pixels in images look quite a lot like their neighbours this is true even at an edge; along the edge they re similar, across the edge they re not suggests that smoothing the image should help, by forcing pixels different to their neighbours (=noise pixels?) to look more like neighbours 3

Smoothing reduces noise Generally expect pixels to be like their neighbours surfaces turn slowly relatively few reflectance changes Generally expect noise processes to be independent from pixel to pixel Implies that smoothing suppresses noise, for appropriate noise models Scale the parameter in the symmetric Gaussian as this parameter goes up, more pixels are involved in the average and the image gets more blurred and noise is more effectively suppressed The effects of smoothing Each row shows smoothing with gaussians of different width; each column shows different realisations of an image of gaussian noise Solution: smooth first Convolution Represent these weights as an image, H H is usually called the kernel Operation is called convolution it s associative The filters look like little images: Result is: Convenient to think of i,j having both positive and negative values (ie, ranging from -2 2 Where is the edge? Look for peaks i Notice wierd order of indices all examples can be put in this form any shift-invariant linear operator can be expressed as a convolution. Example: Smoothing by Averaging Smoothing with a Gaussian Smoothing with an average actually doesn t compare at all well with a defocussed lens Most obvious difference is that a single point of light viewed in a defocussed lens looks like a fuzzy blob; but the averaging process would give a little square. A Gaussian gives a good model of a fuzzy blob 4

An Isotropic Gaussian Smoothing with a Gaussian The picture shows a smoothing kernel proportional to exp x2 + y 2 2σ 2 (which is a reasonable model of a circularly symmetric fuzzy blob) Convolution (Filtering), is associative Not Commutative, but associative Derivative theorem of convolution This saves us one operation: Differentiate (Smooth (image)). (Differentiate (Smooth) ) (image) Laplacian of Gaussian Consider 2D edge detection filters Laplacian of Gaussian Laplacian of Gaussian operator Gaussian derivative of Gaussian is the Laplacian operator: Where is the d? Zero-crossings of bottom h 5

Gradients and edges Points of sharp change in an image are interesting: change in reflectance change in object change in illumination noise Sometimes called edge points General strategy determine image gradient now mark points where gradient magnitude is particularly large wrt neighbours (ideally, curves of such points). There are three major issues: 1) The gradient magnitude at different scales is different; which s we choose? 2) The gradient magnitude is large along thick trail; how do we identify the significant points? 3) How do we link the relevant points up into curves? Smoothing and Differentiation Issue: noise smooth before differentiation two convolutions to smooth, then differentiate? actually, no - we can use a derivative of Gaussian filter because differentiation is convolution, and convolution is associative 1 pixel 3 pixels 7 pixels The scale of the smoothing filter affects derivative estimates, and also the semantics of the edges recovered. Optimal Edge Detection: Canny The Canny edge detector Assume: Linear filtering Additive iid Gaussian noise Edge detector should have: Good Detection. Filter responds to edge, not noise. Good Localization: detected edge near true edge. Single Response: one per edge. original image (Lena) 6

The Canny edge detector The Canny edge detector norm of the gradient thresholding The Canny edge detector thinning (non-maximum suppression) We wish to mark points along the curve where the magnitude is biggest. We can do this by looking for a maximum along a slice normal to the curve (non-maximum suppression). These points should form a curve. There are then two algorithmic issues: at which point is the maximum, and where is the next one? Nonmaximum suppression At q, we have a maximum if the value is larger than those at both p and at r. Interpolate to get these values. Predicting the next edge point Assume the marked point is an edge point. Then we construct the tangent to the edge curve (which is normal to the gradient at that point) and use this to predict the next points (here either r or s). 7

Hysteresis Check that maximum value of gradient value is sufficiently large drop-outs? use hysteresis use a high threshold to start edge curves and a low threshold to continue them. fine scale high threshold coarse scale, high threshold Edge detection by subtraction coarse scale low threshold original 8

Edge detection by subtraction Edge detection by subtraction Why does this work? smoothed (5x5 Gaussian) smoothed original (scaled by 4, offset +128) filter demo Gaussian - image filter The Laplacian of Gaussian Gaussian delta function Another way to detect an extremal first derivative is to look for a zero second derivative Appropriate 2D analogy is rotation invariant the Laplacian Bad idea to apply a Laplacian without smoothing smooth with Gaussian, apply Laplacian this is the same as filtering with a Laplacian of Gaussian filter Now mark the zero points where there is a sufficiently large derivative, and enough contrast Laplacian of Gaussian sigma=4 Sidelight: Human neural responses that effectively compute edges. Slides from: Jay Myung, Ohio State University contrast=1 LOG zero crossings contrast=4 sigma=2 9

1. Receptive Field 2. On-center/OFF-surround RF The receptive field (RF) of a neuron is the area of retina cells that trigger activity of that neuron. 3. Edge Detector 4. Orientation Detector (Huble & Wiesel, 1959) Hypothetical Wiring Diagram 10