Edge Detection. Introduction to Computer Vision. Useful Mathematics Funcs. The bad news

Similar documents
Edge Detection. CS 650: Computer Vision

Filtering and Edge Detection

Lecture 7: Edge Detection

Roadmap. Introduction to image analysis (computer vision) Theory of edge detection. Applications

Lecture 6: Edge Detection. CAP 5415: Computer Vision Fall 2008

Laplacian Filters. Sobel Filters. Laplacian Filters. Laplacian Filters. Laplacian Filters. Laplacian Filters

Machine vision. Summary # 4. The mask for Laplacian is given

Machine vision, spring 2018 Summary 4

Edge Detection. Image Processing - Computer Vision

Lecture 04 Image Filtering

Edge Detection PSY 5018H: Math Models Hum Behavior, Prof. Paul Schrater, Spring 2005

Image Gradients and Gradient Filtering Computer Vision

CSE 473/573 Computer Vision and Image Processing (CVIP)

Lecture 3: Linear Filters

CS4495/6495 Introduction to Computer Vision. 2A-L6 Edge detection: 2D operators

Lecture 3: Linear Filters

Edge Detection. Computer Vision P. Schrater Spring 2003

ECE Digital Image Processing and Introduction to Computer Vision. Outline

Edge Detection in Computer Vision Systems

Additional Pointers. Introduction to Computer Vision. Convolution. Area operations: Linear filtering

Introduction to Computer Vision

Templates, Image Pyramids, and Filter Banks

Review Smoothing Spatial Filters Sharpening Spatial Filters. Spatial Filtering. Dr. Praveen Sankaran. Department of ECE NIT Calicut.

Image Segmentation: Definition Importance. Digital Image Processing, 2nd ed. Chapter 10 Image Segmentation.

CITS 4402 Computer Vision

Gaussian derivatives

Computer Vision Lecture 3

Lecture 8: Interest Point Detection. Saad J Bedros

TRACKING and DETECTION in COMPUTER VISION Filtering and edge detection

Reading. 3. Image processing. Pixel movement. Image processing Y R I G Q

Image Filtering. Slides, adapted from. Steve Seitz and Rick Szeliski, U.Washington

CS 3710: Visual Recognition Describing Images with Features. Adriana Kovashka Department of Computer Science January 8, 2015

Lecture 8: Interest Point Detection. Saad J Bedros

Vlad Estivill-Castro (2016) Robots for People --- A project for intelligent integrated systems

Advanced Edge Detection 1

Digital Image Processing. Lecture 6 (Enhancement) Bu-Ali Sina University Computer Engineering Dep. Fall 2009

Problem Session #5. EE368/CS232 Digital Image Processing

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

Basics on 2-D 2 D Random Signal

Computer Vision & Digital Image Processing

Spatial Enhancement Region operations: k'(x,y) = F( k(x-m, y-n), k(x,y), k(x+m,y+n) ]

Outline. Convolution. Filtering

Scale & Affine Invariant Interest Point Detectors

Image Enhancement: Methods. Digital Image Processing. No Explicit definition. Spatial Domain: Frequency Domain:

Image matching. by Diva Sian. by swashford

Properties of detectors Edge detectors Harris DoG Properties of descriptors SIFT HOG Shape context

Suppose we have a one-dimensional discrete signal f(x). The convolution of f with a kernel g is defined as h(x) = f(x)*g(x) = w 1. f(i)g(x i), (3.

Total Variation Image Edge Detection

Vectors [and more on masks] Vector space theory applies directly to several image processing/ representation problems

Feature Extraction and Image Processing

CAP 5415 Computer Vision Fall 2011

SURF Features. Jacky Baltes Dept. of Computer Science University of Manitoba WWW:

Announcements. Filtering. Image Filtering. Linear Filters. Example: Smoothing by Averaging. Homework 2 is due Apr 26, 11:59 PM Reading:

CAP 5415 Computer Vision

6.869 Advances in Computer Vision. Bill Freeman, Antonio Torralba and Phillip Isola MIT Oct. 3, 2018

Colorado School of Mines Image and Multidimensional Signal Processing

Edges and Scale. Image Features. Detecting edges. Origin of Edges. Solution: smooth first. Effects of noise

Achieving scale covariance

ECE Digital Image Processing and Introduction to Computer Vision

Lecture Outline. Basics of Spatial Filtering Smoothing Spatial Filters. Sharpening Spatial Filters

LoG Blob Finding and Scale. Scale Selection. Blobs (and scale selection) Achieving scale covariance. Blob detection in 2D. Blob detection in 2D

Today s lecture. Local neighbourhood processing. The convolution. Removing uncorrelated noise from an image The Fourier transform

Feature detection.

Introduction to Computer Vision. 2D Linear Systems

Local enhancement. Local Enhancement. Local histogram equalized. Histogram equalized. Local Contrast Enhancement. Fig 3.23: Another example

Scale-space image processing

CS5670: Computer Vision

CS4670: Computer Vision Kavita Bala. Lecture 7: Harris Corner Detec=on

Local Enhancement. Local enhancement

Multiscale Image Transforms

CS 179: LECTURE 16 MODEL COMPLEXITY, REGULARIZATION, AND CONVOLUTIONAL NETS

ITK Filters. Thresholding Edge Detection Gradients Second Order Derivatives Neighborhood Filters Smoothing Filters Distance Map Image Transforms

Lecture 7: Finding Features (part 2/2)

Signal Processing COS 323

Harris Corner Detector

Lecture 7: Finding Features (part 2/2)

Blobs & Scale Invariance

Linear Operators and Fourier Transform

FILTERING IN THE FREQUENCY DOMAIN

CS 4495 Computer Vision. Frequency and Fourier Transforms. Aaron Bobick School of Interactive Computing. Frequency and Fourier Transform

Advanced Features. Advanced Features: Topics. Jana Kosecka. Slides from: S. Thurn, D. Lowe, Forsyth and Ponce. Advanced features and feature matching

Multimedia Databases. Previous Lecture. 4.1 Multiresolution Analysis. 4 Shape-based Features. 4.1 Multiresolution Analysis

Multimedia Databases. Wolf-Tilo Balke Philipp Wille Institut für Informationssysteme Technische Universität Braunschweig

Multimedia Databases. 4 Shape-based Features. 4.1 Multiresolution Analysis. 4.1 Multiresolution Analysis. 4.1 Multiresolution Analysis

Chapter 16. Local Operations

Linear Diffusion. E9 242 STIP- R. Venkatesh Babu IISc

Taking derivative by convolution

INTEREST POINTS AT DIFFERENT SCALES

Image preprocessing in spatial domain

Computational Photography

Multiresolution schemes

Computer Vision & Digital Image Processing

The Frequency Domain : Computational Photography Alexei Efros, CMU, Fall Many slides borrowed from Steve Seitz

Image Filtering, Edges and Image Representation

Total Variation Theory and Its Applications

Image as a signal. Luc Brun. January 25, 2018

Perception III: Filtering, Edges, and Point-features

Lecture 12. Local Feature Detection. Matching with Invariant Features. Why extract features? Why extract features? Why extract features?

Detection of Artificial Satellites in Images Acquired in Track Rate Mode.

Transcription:

Edge Detection Introduction to Computer Vision CS / ECE 8B Thursday, April, 004 Edge detection (HO #5) Edge detection is a local area operator that seeks to find significant, meaningful changes in image intensity (color?) that correspond to Boundaries of obects and patterns Texture Changes in obect color or brightness Highlights Occlusions Etc. HW#3 due, next week No office hours today Useful Mathematics Funcs. Ramp Step Impulse 0 x < 0 R( x) = 0 x = 0 x x > 0 dx d dx 0 x < 0 U( x) = x = 0 x > 0 dx d dx δ( x) 0 x < 0 = x = 0 0 x > 0 The bad news Unfortunately, it s very hard to tell significant edges from bogus edges! Noise is a big problem! An edge detector is basically a high-frequency filter, since sharp intensity changes are high-frequency events But image noise is also high-frequency, so edge detectors tend to accentuate noise! Some things to do: Smooth before edge detection (hoping to get rid of noise but not edges!) Look for edges at multiple scales (pyramids!) Use an adaptive edge threshold

Caveats In reality, low light levels and random noise lead to high fluctuations in individual pixel values, leading to bad estimations. Edge detection history Edge detection has a long history and a huge literature Edge modeling: Step edges, roof edges, impulse edges Biological modeling: How does human vision do it? Elegant and complex mathematical models Simple and computationally cheap edge detectors Etc., etc., etc.. Typical usage: Detect edge points in the image (filter then threshold) Edges may have magnitude and orientation Throw away bad ones (isolated points) Link edge points together to make edge segments Merge segments into lines, corners, unctions, etc. Interpret these higher-level features in the context of the problem Edge detection The bottom line: It doesn t work! At least, now how we d like it to: Too many false positives (noise) Too many omissions (little or no local signal) Still, edge detection is often the first step in a computer vision program We have to learn to live with imperfection Edge detectors Gradient-based edge detectors Approximate a spatial derivative X and Y directions, or at various orientations Fundamentally high-pass (accentuates noise) Laplacian and other band-pass edge detectors Roberts, Sobel, Prewitt, Canny.

Digital Implementations st order operator - x or x mask simple unbalanced (forward differencing) sensitive to noise Another Implementation st order operator - x mask simple unbalanced (forward differencing) more resistive to noise E i, E i +, E E E i+, i, E i, + E i+, + E i, E i+, (( Ei+, + Ei, + ) + ( Ei+, Ei, )) E i, + E i, E E E i, + i, E i E i+, +, + E i, E i+, E y (( Ei+, + Ei+, ) + ( Ei, + Ei, )) Robert s detector Observation in D - E x Compute the X- and Y- derivatives using the above masks Compute the magnitude of the gradient Compute the gradient direction D st order edge operator A magnitude A direction, but... Edge direction: iso-brightness direction Gradient direction: largest brightness change direction - E y magnitude = ( ) + ( ) direction = tan ( )

Gradient vs. Iso-brightness dirs More Edge detectors Sobel detector - - - G x 0 0 0 G y - - 0 0-0 G = G x + G y ( > 0, = 0) 0 tan ( ) = 0 > 0 o ( = 0, < 0) < 0 tan ( ) = 90 0 o ( > 0, > 0) > 0 o tan ( ) = 0 90 > 0 o Prewitt detector - - - G = atan G y /G x G x G y 0 - - 0 0 0 0-0 Lena Edge detectors: second order operators Original Vertical edges Edge magnitude Laplacian detectors E,, i i ( E E ) ( E E ) +,,,, i i i i = E E + E +,,, i i i E E E + E i, i, i, + E E Laplacian: + E + E + E + E 4E + + i i i, i, i,,, E i, + E i, E i, E i, + E i+, + E i, E i+, E i, E i + -4, Horizontal edges Edge detectors are not limited to 3x3 kernels

nd order operator (cont.) Zero-crossing if pixel > t and one of its neighbor < -t, or if pixel<-t and one of its neighbor > t Smoothing Filter Differentiation enhances noise (as well as edges). Smooth the image before edge detection Helps in minimizing false positives. Edges at different scales. Gaussian smoothing: Why? G * G is also a Gaussian Efficient multi-scale convolutions Central limit theorem smooth many times == Gaussian smoothing with an appropriate sigma. Gaussians are separable==good for implementation. Multiple Scales Multiple Scales

Multiple Scales Laplacian of the Gaussian (LOG) Original image σ σ σ 3 σ 4 Gaussian Laplacian smoothing x + y σ G = e = + πσ ZC ZC ZC 3 ZC 4 Zero crossing maps Combined zero crossing maps Smooth with the Gaussian + Laplacian + zero-crossing detector==gives edges Equivalent to convolving the image with the Laplacian of the Gaussian kernel. Note: differentiation is linear and shit invariant. Convolution is associative. Can be well approximated by the Difference of the Gaussians (DoG) Marr-Hildreth operator. x y G = ( ) e 4 πσ σ + x + y σ Multiple Scales

fine scale Other popular edge detectors coarse scale Canny edge detector Formulate the problem as an optimization problem What is the criteria of good edge detection? Good detection Low probability of misses Low probability of false alarms Good localization Closeness of marked edge points to true edge points Single response criteria Not too many strong responses of a single edge in a small neighborhood Beyond the scope of this course read the handout for additional information.

Canny edge detector Summary of Linear Filtering (HO#4) and Edge Detection (HO #5) Convolution (correlation) defines a shift-invariant linear filter The Fourier transform is a linear operation that exposes the spatial frequency composition of an image Sampling and aliasing are directly related to spatial frequency issues E.g., image pyramids Correlation can be viewed as template matching (or pattern matching) If the template is a gradient/derivative operator, correlation implements edge detection Edge detection by itself doesn t work very well, although it can be useful if its limitations are understood Noise, missing edges, complex scenes,