Algorithms and Applications in Computer Vision

Slides:



Advertisements
Similar presentations
Feature extraction: Corners
Advertisements

CSE 473/573 Computer Vision and Image Processing (CVIP)
Interest points CSE P 576 Ali Farhadi Many slides from Steve Seitz, Larry Zitnick.
TP14 - Local features: detection and description Computer Vision, FCUP, 2014 Miguel Coimbra Slides by Prof. Kristen Grauman.
Matching with Invariant Features
Features CSE 455, Winter 2010 February 1, Neel Joshi, CSE 455, Winter Review From Last Time.
Computational Photography
Interest points CSE P 576 Larry Zitnick Many slides courtesy of Steve Seitz.
Feature extraction: Corners 9300 Harris Corners Pkwy, Charlotte, NC.
Harris corner detector
Lecture 6: Feature matching CS4670: Computer Vision Noah Snavely.
Lecture 4: Feature matching
Automatic Image Alignment (feature-based) : Computational Photography Alexei Efros, CMU, Fall 2005 with a lot of slides stolen from Steve Seitz and.
Feature extraction: Corners and blobs
Interest Points and Corners Computer Vision CS 143, Brown James Hays Slides from Rick Szeliski, Svetlana Lazebnik, Derek Hoiem and Grauman&Leibe 2008 AAAI.
Scale Invariant Feature Transform (SIFT)
Blob detection.
Lecture 3a: Feature detection and matching CS6670: Computer Vision Noah Snavely.
Automatic Image Alignment (feature-based) : Computational Photography Alexei Efros, CMU, Fall 2006 with a lot of slides stolen from Steve Seitz and.
CS4670: Computer Vision Kavita Bala Lecture 7: Harris Corner Detection.
CS4670: Computer Vision Kavita Bala Lecture 8: Scale invariance.
CS 558 C OMPUTER V ISION Lecture VII: Corner and Blob Detection Slides adapted from S. Lazebnik.
Lecture 06 06/12/2011 Shai Avidan הבהרה: החומר המחייב הוא החומר הנלמד בכיתה ולא זה המופיע / לא מופיע במצגת.
Image Segmentation And Representation Cosimo Distante.
Feature Detection and Matching
CSE 185 Introduction to Computer Vision Local Invariant Features.
CS 1699: Intro to Computer Vision Local Image Features: Extraction and Description Prof. Adriana Kovashka University of Pittsburgh September 17, 2015.
Feature extraction: Corners 9300 Harris Corners Pkwy, Charlotte, NC.
776 Computer Vision Jan-Michael Frahm, Enrique Dunn Spring 2013.
Local invariant features 1 Thursday October 3 rd 2013 Neelima Chavali Virginia Tech.
Lecture 7: Features Part 2 CS4670/5670: Computer Vision Noah Snavely.
Notes on the Harris Detector
Harris Corner Detector & Scale Invariant Feature Transform (SIFT)
Features Digital Visual Effects, Spring 2006 Yung-Yu Chuang 2006/3/15 with slides by Trevor Darrell Cordelia Schmid, David Lowe, Darya Frolova, Denis Simakov,
Feature extraction: Corners and blobs. Why extract features? Motivation: panorama stitching We have two images – how do we combine them?
Project 3 questions? Interest Points and Instance Recognition Computer Vision CS 143, Brown James Hays 10/21/11 Many slides from Kristen Grauman and.
Lecture 5: Image Interpolation and Features
Local features and image matching October 1 st 2015 Devi Parikh Virginia Tech Disclaimer: Many slides have been borrowed from Kristen Grauman, who may.
Local features: detection and description
Features Jan-Michael Frahm.
CS654: Digital Image Analysis
Instructor: Mircea Nicolescu Lecture 10 CS 485 / 685 Computer Vision.
CSE 185 Introduction to Computer Vision Local Invariant Features.
Lecture 10: Harris Corner Detector CS4670/5670: Computer Vision Kavita Bala.
Keypoint extraction: Corners 9300 Harris Corners Pkwy, Charlotte, NC.
Blob detection.
Invariant Local Features Image content is transformed into local feature coordinates that are invariant to translation, rotation, scale, and other imaging.
Lecture 5: Feature detection and matching CS4670 / 5670: Computer Vision Noah Snavely.
Interest Points EE/CSE 576 Linda Shapiro.
Lecture 07 13/12/2011 Shai Avidan הבהרה: החומר המחייב הוא החומר הנלמד בכיתה ולא זה המופיע / לא מופיע במצגת.
Distinctive Image Features from Scale-Invariant Keypoints
3D Vision Interest Points.
Corners and interest points
TP12 - Local features: detection and description
Source: D. Lowe, L. Fei-Fei Recap: edge detection Source: D. Lowe, L. Fei-Fei.
Lecture 4: Harris corner detection
Digital Visual Effects, Spring 2006 Yung-Yu Chuang 2006/3/22
Scale and interest point descriptors
Local features: detection and description May 11th, 2017
Corners and Interest Points
Lecture 5: Feature detection and matching
Local features and image matching
SIFT keypoint detection
Lecture VI: Corner and Blob Detection
Lecture 5: Feature invariance
Lecture 5: Feature invariance
Corner Detection COMP 4900C Winter 2008.
Presentation transcript:

Algorithms and Applications in Computer Vision Lihi Zelnik-Manor lihi@ee.technion.ac.il Lecture 6: Feature detection

Today: Feature Detection and Matching Local features Pyramids for invariant feature detection Invariant descriptors Matching

Image matching TexPoint fonts used in EMF. by Diva Sian by swashford TexPoint fonts used in EMF. Read the TexPoint manual before you delete this box.: AAAAAA

Harder case by Diva Sian by scgbt

Harder still? NASA Mars Rover images

Answer below (look for tiny colored squares…) NASA Mars Rover images with SIFT feature matches Figure by Noah Snavely

Local features and alignment We need to match (align) images Global methods sensitive to occlusion, lighting, parallax effects. So look for local features that match well. How would you do it by eye? [Darya Frolova and Denis Simakov] 7

Local features and alignment Detect feature points in both images [Darya Frolova and Denis Simakov] 8

Local features and alignment Detect feature points in both images Find corresponding pairs [Darya Frolova and Denis Simakov] 9

Local features and alignment Detect feature points in both images Find corresponding pairs Use these pairs to align images [Darya Frolova and Denis Simakov] 10

Local features and alignment Problem 1: Detect the same point independently in both images no chance to match! We need a repeatable detector [Darya Frolova and Denis Simakov] 11

Local features and alignment Problem 2: For each point correctly recognize the corresponding one ? We need a reliable and distinctive descriptor [Darya Frolova and Denis Simakov] 12

Geometric transformations

Photometric transformations Figure from T. Tuytelaars ECCV 2006 tutorial

And other nuisances… Noise Blur Compression artifacts …

Invariant local features Subset of local feature types designed to be invariant to common geometric and photometric transformations. Basic steps: Detect distinctive interest points Extract invariant descriptors Figure: David Lowe

Main questions Where will the interest points come from? What are salient features that we’ll detect in multiple views? How to describe a local region? How to establish correspondences, i.e., compute matches?

Finding Corners Key property: in the region around a corner, image gradient has two or more dominant directions Corners are repeatable and distinctive C.Harris and M.Stephens. "A Combined Corner and Edge Detector.“ Proceedings of the 4th Alvey Vision Conference: pages 147--151.  Source: Lana Lazebnik

Corners as distinctive interest points We should easily recognize the point by looking through a small window Shifting a window in any direction should give a large change in intensity “flat” region: no change in all directions “edge”: no change along the edge direction “corner”: significant change in all directions Source: A. Efros

Harris Detector formulation Change of intensity for the shift [u,v]: Intensity Window function Shifted intensity or Window function w(x,y) = Gaussian 1 in window, 0 outside Source: R. Szeliski

Harris Detector formulation This measure of change can be approximated by: where M is a 22 matrix computed from image derivatives: Gradient with respect to x, times gradient with respect to y Sum over image region – area we are checking for corner M

Harris Detector formulation where M is a 22 matrix computed from image derivatives: Gradient with respect to x, times gradient with respect to y Sum over image region – area we are checking for corner M

What does this matrix reveal? First, consider an axis-aligned corner:

What does this matrix reveal? First, consider an axis-aligned corner: 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. What if we have a corner that is not aligned with the image axes? Slide credit: David Jacobs

General Case Since M is symmetric, we have We can visualize M as an ellipse with axis lengths determined by the eigenvalues and orientation determined by R direction of the slowest change direction of the fastest change (max)-1/2 (min)-1/2 Slide adapted form Darya Frolova, Denis Simakov.

Interpreting the eigenvalues Classification of image points using eigenvalues of M: 2 “Edge” 2 >> 1 “Corner” 1 and 2 are large, 1 ~ 2; E increases in all directions 1 and 2 are small; E is almost constant in all directions “Edge” 1 >> 2 “Flat” region 1

Corner response function α: constant (0.04 to 0.06) “Edge” R < 0 “Corner” R > 0 |R| small “Edge” R < 0 “Flat” region

Harris Corner Detector Algorithm steps: Compute M matrix within all image windows to get their R scores Find points with large corner response (R > threshold) Take the points of local maxima of R 30

Harris Detector: Workflow Slide adapted form Darya Frolova, Denis Simakov, Weizmann Institute. 31

Harris Detector: Workflow Compute corner response R 32

Harris Detector: Workflow Find points with large corner response: R>threshold 33

Harris Detector: Workflow Take only the points of local maxima of R 34

Harris Detector: Workflow 35

Harris Detector: Properties Rotation invariance Ellipse rotates but its shape (i.e. eigenvalues) remains the same Corner response R is invariant to image rotation 36

Harris Detector: Properties Not invariant to image scale All points will be classified as edges Corner ! 37

How can we detect scale invariant interest points?

How to cope with transformations? Exhaustive search Invariance Robustness

Exhaustive search Multi-scale approach Slide from T. Tuytelaars ECCV 2006 tutorial

Exhaustive search Multi-scale approach

Exhaustive search Multi-scale approach

Exhaustive search Multi-scale approach

Invariance Extract patch from each image individually

Automatic scale selection Solution: Design a function on the region, which is “scale invariant” (the same for corresponding regions, even if they are at different scales) Example: average intensity. For corresponding regions (even of different sizes) it will be the same. For a point in one image, we can consider it as a function of region size (patch width) f region size Image 1 f region size Image 2 scale = 1/2

Automatic scale selection Common approach: Take a local maximum of this function Observation: region size, for which the maximum is achieved, should be invariant to image scale. Important: this scale invariant region size is found in each image independently! f region size Image 1 f region size Image 2 scale = 1/2 s1 s2

Automatic Scale Selection Same operator responses if the patch contains the same image up to scale factor. 47 K. Grauman, B. Leibe K. Grauman, B. Leibe

Automatic Scale Selection Function responses for increasing scale (scale signature) 48 K. Grauman, B. Leibe K. Grauman, B. Leibe

Automatic Scale Selection Function responses for increasing scale (scale signature) 49 K. Grauman, B. Leibe K. Grauman, B. Leibe

Automatic Scale Selection Function responses for increasing scale (scale signature) 50 K. Grauman, B. Leibe K. Grauman, B. Leibe

Automatic Scale Selection Function responses for increasing scale (scale signature) 51 K. Grauman, B. Leibe K. Grauman, B. Leibe

Automatic Scale Selection Function responses for increasing scale (scale signature) 52 K. Grauman, B. Leibe K. Grauman, B. Leibe

Automatic Scale Selection Function responses for increasing scale (scale signature) 53 K. Grauman, B. Leibe K. Grauman, B. Leibe

Scale selection Use the scale determined by detector to compute descriptor in a normalized frame [Images from T. Tuytelaars]

What Is A Useful Signature Function? Laplacian-of-Gaussian = “blob” detector 55 K. Grauman, B. Leibe K. Grauman, B. Leibe

Characteristic scale We define the characteristic scale as the scale that produces peak of Laplacian response characteristic scale T. Lindeberg (1998). "Feature detection with automatic scale selection." International Journal of Computer Vision 30 (2): pp 77--116. Source: Lana Lazebnik

Laplacian-of-Gaussian (LoG) Interest points: Local maxima in scale space of Laplacian-of- Gaussian s s2 s3 s4 s5  List of (x, y, σ) K. Grauman, B. Leibe K. Grauman, B. Leibe

Scale-space blob detector: Example Source: Lana Lazebnik

Scale-space blob detector: Example Source: Lana Lazebnik

Scale-space blob detector: Example Source: Lana Lazebnik

Key point localization with DoG Detect maxima of difference-of-Gaussian (DoG) in scale space Then reject points with low contrast (threshold) Eliminate edge responses Candidate keypoints: list of (x,y,σ)

Example of keypoint detection (a) 233x189 image (b) 832 DOG extrema (c) 729 left after peak value threshold (d) 536 left after testing ratio of principle curvatures (removing edge responses)

Scale Invariant Detection: Summary Given: two images of the same scene with a large scale difference between them Goal: find the same interest points independently in each image Solution: search for maxima of suitable functions in scale and in space (over the image)

Slide Credits Trevor Darrell Bill Freeman Kristen Grauman Steve Sietz Ivan Laptev Tinne Tuytelaars