Edge and Corner Detection Reading: Chapter 8 (skip 8.1) Goal: Identify sudden changes (discontinuities) in an image This is where most shape information.

Slides:



Advertisements
Similar presentations
Feature extraction: Corners
Advertisements

Boundary Detection - Edges Boundaries of objects –Usually different materials/orientations, intensity changes.
Edge Detection. Our goal is to extract a “line drawing” representation from an image Useful for recognition: edges contain shape information –invariance.
EE663 Image Processing Edge Detection 1
Edge detection Goal: Identify sudden changes (discontinuities) in an image Intuitively, most semantic and shape information from the image can be encoded.
Lecture 4 Edge Detection
Computer Vision Group Edge Detection Giacomo Boracchi 5/12/2007
Canny Edge Detector.
Edge detection. Edge Detection in Images Finding the contour of objects in a scene.
Announcements Mailing list: –you should have received messages Project 1 out today (due in two weeks)
Sebastian Thrun CS223B Computer Vision, Winter Stanford CS223B Computer Vision, Winter 2005 Lecture 3 Filters and Features (with Matlab) Sebastian.
Canny Edge Detector1 1)Smooth image with a Gaussian optimizes the trade-off between noise filtering and edge localization 2)Compute the Gradient magnitude.
Edge Detection Today’s reading Forsyth, chapters 8, 15.1
Feature extraction: Corners and blobs
Lecture 3: Edge detection, continued
Filters and Edges. Zebra convolved with Leopard.
Lecture 2: Image filtering
Announcements Since Thursday we’ve been discussing chapters 7 and 8. “matlab can be used off campus by logging into your wam account and bringing up an.
3-D Computer Vision CSc Feature Detection and Grouping.
Edge Detection Today’s readings Cipolla and Gee –supplemental: Forsyth, chapter 9Forsyth Watt, From Sandlot ScienceSandlot Science.
The blue and green colors are actually the same.
CSE 473/573 Computer Vision and Image Processing (CVIP) Ifeoma Nwogu Lecture 10 – Edges and Pyramids 1.
CS4670: Computer Vision Kavita Bala Lecture 7: Harris Corner Detection.
Edge Detection.
Computer Vision P. Schrater Spring 2003
Edge detection Goal: Identify sudden changes (discontinuities) in an image Intuitively, most semantic and shape information from the image can be encoded.
Computer Vision Spring ,-685 Instructor: S. Narasimhan WH 5409 T-R 10:30 – 11:50am.
Discrete Images (Chapter 7) Fourier Transform on discrete and bounded domains. Given an image: 1.Zero boundary condition 2.Periodic boundary condition.
Lecture 2: Edge detection CS4670: Computer Vision Noah Snavely From Sandlot ScienceSandlot Science.
Computer Vision : CISC 4/689 Sobel Edge Detection: Gradient Approximation Horizontal diff.Vertical diff Note anisotropy of edge.
Edge Detection Today’s reading Cipolla & Gee on edge detection (available online)Cipolla & Gee on edge detection From Sandlot ScienceSandlot Science.
Edge Detection Today’s reading Cipolla & Gee on edge detection (available online)Cipolla & Gee on edge detection Szeliski, Ch 4.1.2, From Sandlot.
Computer Vision : CISC 4/689 Gradients and edges Points of sharp change in an image are interesting: –change in reflectance –change in object –change in.
CSCE 643 Computer Vision: Extractions of Image Features Jinxiang Chai.
776 Computer Vision Jan-Michael Frahm, Enrique Dunn Spring 2013.
Instructor: S. Narasimhan
Edge detection Goal: Identify sudden changes (discontinuities) in an image Intuitively, most semantic and shape information from the image can be encoded.
CSE 185 Introduction to Computer Vision Edges. Scale space Reading: Chapter 3 of S.
Computer Vision - A Modern Approach Set: Linear Filters Slides by D.A. Forsyth Gradients and edges Points of sharp change in an image are interesting:
Edges.
Brent M. Dingle, Ph.D Game Design and Development Program Mathematics, Statistics and Computer Science University of Wisconsin - Stout Edge Detection.
Announcements Project 0 due tomorrow night. Edge Detection Today’s readings Cipolla and Gee (handout) –supplemental: Forsyth, chapter 9Forsyth For Friday.
Lecture 04 Edge Detection Lecture 04 Edge Detection Mata kuliah: T Computer Vision Tahun: 2010.
Canny Edge Detection. 5 STEPS 5 STEPS Apply Gaussian filter to smooth the image in order to remove the noise Apply Gaussian filter to smooth the image.
COMPUTER VISION D10K-7C02 CV05: Edge Detection Dr. Setiawan Hadi, M.Sc.CS. Program Studi S-1 Teknik Informatika FMIPA Universitas Padjadjaran.
Computer Vision Image Features Instructor: Dr. Sherif Sami Lecture 4.
Lecture 8: Edges and Feature Detection
Finding Boundaries Computer Vision CS 143, Brown James Hays 09/28/11 Many slides from Lana Lazebnik, Steve Seitz, David Forsyth, David Lowe, Fei-Fei Li,
MASKS © 2004 Invitation to 3D vision Lecture 3 Image Primitives andCorrespondence.
Edges Edges = jumps in brightness/color Brightness jumps marked in white.
Winter in Kraków photographed by Marcin Ryczek
Edge Detection Images and slides from: James Hayes, Brown University, Computer Vision course Svetlana Lazebnik, University of North Carolina at Chapel.
Edge Detection slides taken and adapted from public websites:
MAN-522: Computer Vision Edge detection Feature and blob detection
Corners Why are they important?.
Edge Detection CS 678 Spring 2018.
Jeremy Bolton, PhD Assistant Teaching Professor
Computer Vision Lecture 9: Edge Detection II
Edge detection Goal: Identify sudden changes (discontinuities) in an image Intuitively, most semantic and shape information from the image can be encoded.
Review: Linear Systems
Sebastian Thrun, Stanford Rick Szeliski, Microsoft
Lecture 2: Edge detection
Canny Edge Detector.
Canny Edge Detector Smooth image with a Gaussian
Lecture 2: Edge detection
Winter in Kraków photographed by Marcin Ryczek
IT472 Digital Image Processing
IT472 Digital Image Processing
Corner Detection COMP 4900C Winter 2008.
Edge detection Goal: Identify sudden changes (discontinuities) in an image Intuitively, most semantic and shape information from the image can be encoded.
Presentation transcript:

Edge and Corner Detection Reading: Chapter 8 (skip 8.1) Goal: Identify sudden changes (discontinuities) in an image This is where most shape information is encoded Example: artist’s line drawing (but artist is also using object-level knowledge)

What causes an edge? Depth discontinuity Surface orientation discontinuity Reflectance discontinuity (i.e., change in surface material properties) Illumination discontinuity (e.g., shadow) Slide credit: Christopher Rasmussen

Smoothing and Differentiation Edge: a location with high gradient (derivative) Need smoothing to reduce noise prior to taking derivative Need two derivatives, in x and y direction. We can use derivative of Gaussian filters because differentiation is convolution, and convolution is associative: D * (G * I) = (D * G) * I

Derivative of Gaussian Slide credit: Christopher Rasmussen Gradient magnitude is computed from these.

Gradient magnitude

Scale Increased smoothing: Eliminates noise edges. Makes edges smoother and thicker. Removes fine detail.

Canny Edge Detection Steps: 1.Apply derivative of Gaussian 2.Non-maximum suppression Thin multi-pixel wide “ridges” down to single pixel width 3.Linking and thresholding Low, high edge-strength thresholds Accept all edges over low threshold that are connected to edge over high threshold Matlab: edge(I, ‘canny’)

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

Non-maximum suppression At q, the value must be larger than values interpolated at p or r.

Examples: Non-Maximum Suppression courtesy of G. Loy Original imageGradient magnitude Non-maxima suppressed Slide credit: Christopher Rasmussen

fine scale (σ = 1) high threshold

coarse scale, (σ = 4) high threshold

coarse scale (σ = 4) low threshold

Linking to the next edge point Assume the marked point is an edge point. Take the normal to the gradient at that point and use this to predict continuation points (either r or s).

Edge Hysteresis Hysteresis: A lag or momentum factor Idea: Maintain two thresholds k high and k low –Use k high to find strong edges to start edge chain –Use k low to find weak edges which continue edge chain Typical ratio of thresholds is roughly k high / k low = 2

Example: Canny Edge Detection courtesy of G. Loy gap is gone Original image Strong edges only Strong + connected weak edges Weak edges

Example: Canny Edge Detection Using Matlab with default thresholds Slide credit: Christopher Rasmussen

Finding Corners Edge detectors perform poorly at corners. Corners provide repeatable points for matching, so are worth detecting. Idea: Exactly at a corner, gradient is ill defined. However, in the region around a corner, gradient has two or more different values.

The Harris corner detector Form the second-moment matrix: Sum over a small region around the hypothetical corner Gradient with respect to x, times gradient with respect to y Matrix is symmetric Slide credit: David Jacobs

First, consider case where: This means dominant gradient directions align with x or y axis If either λ is close to 0, then this is not a corner, so look for locations where both are large. Simple Case Slide credit: David Jacobs

General Case It can be shown that since C is symmetric: So every case is like a rotated version of the one on last slide. Slide credit: David Jacobs

So, to detect corners Filter image with Gaussian to reduce noise Compute magnitude of the x and y gradients at each pixel Construct C in a window around each pixel (Harris uses a Gaussian window – just blur) Solve for product of s (determinant of C) If s are both big (product reaches local maximum and is above threshold), we have a corner (Harris also checks that ratio of s is not too high)

Gradient orientations

Closeup of gradient orientation at each pixel

Corners are detected where the product of the ellipse axis lengths reaches a local maximum.

Harris corners Originally developed as features for motion tracking Greatly reduces amount of computation compared to tracking every pixel Translation and rotation invariant (but not scale invariant)