Local features: main components

Slides:



Advertisements
Similar presentations
Distinctive Image Features from Scale-Invariant Keypoints
Advertisements

Feature extraction: Corners
CSE 473/573 Computer Vision and Image Processing (CVIP)
Interest points CSE P 576 Ali Farhadi Many slides from Steve Seitz, Larry Zitnick.
The SIFT (Scale Invariant Feature Transform) Detector and Descriptor
Computer Vision CS 143, Brown James Hays
TP14 - Local features: detection and description Computer Vision, FCUP, 2014 Miguel Coimbra Slides by Prof. Kristen Grauman.
Matching with Invariant Features
Algorithms and Applications in Computer Vision
Locating and Describing Interest Points
Feature extraction: Corners 9300 Harris Corners Pkwy, Charlotte, NC.
Lecture 6: Feature matching CS4670: Computer Vision Noah Snavely.
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.
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.
Distinctive Image Features from Scale-Invariant Keypoints David G. Lowe – IJCV 2004 Brien Flewelling CPSC 643 Presentation 1.
Overview Introduction to local features
Computer vision.
Locating and Describing Interest Points Computer Vision CS 543 / ECE 549 University of Illinois Derek Hoiem 03/02/10 Acknowledgment: Many keypoint slides.
Overview Harris interest points Comparing interest points (SSD, ZNCC, SIFT) Scale & affine invariant interest points Evaluation and comparison of different.
Local invariant features Cordelia Schmid INRIA, Grenoble.
CS 558 C OMPUTER V ISION Lecture VII: Corner and Blob Detection Slides adapted from S. Lazebnik.
CSE 185 Introduction to Computer Vision Local Invariant Features.
Feature extraction: Corners 9300 Harris Corners Pkwy, Charlotte, NC.
776 Computer Vision Jan-Michael Frahm, Enrique Dunn Spring 2013.
Lecture 7: Features Part 2 CS4670/5670: Computer Vision Noah Snavely.
Local invariant features Cordelia Schmid INRIA, Grenoble.
Harris Corner Detector & Scale Invariant Feature Transform (SIFT)
Distinctive Image Features from Scale-Invariant Keypoints David Lowe Presented by Tony X. Han March 11, 2008.
Overview Introduction to local features Harris interest points + SSD, ZNCC, SIFT Scale & affine invariant interest point detectors Evaluation and comparison.
Feature extraction: Corners and blobs. Why extract features? Motivation: panorama stitching We have two images – how do we combine them?
CSE 185 Introduction to Computer Vision Feature Matching.
Project 3 questions? Interest Points and Instance Recognition Computer Vision CS 143, Brown James Hays 10/21/11 Many slides from Kristen Grauman and.
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
CSE 185 Introduction to Computer Vision Local Invariant Features.
Keypoint extraction: Corners 9300 Harris Corners Pkwy, Charlotte, NC.
Interest Points EE/CSE 576 Linda Shapiro.
Lecture 13: Feature Descriptors and Matching
Presented by David Lee 3/20/2006
Distinctive Image Features from Scale-Invariant Keypoints
Project 1: hybrid images
Motion illusion, rotating snakes
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.
Scale and interest point descriptors
Local features: detection and description May 11th, 2017
Feature description and matching
Corners and Interest Points
CAP 5415 Computer Vision Fall 2012 Dr. Mubarak Shah Lecture-5
Photo by Carl Warner.
Interest Points and Harris Corner Detector
The SIFT (Scale Invariant Feature Transform) Detector and Descriptor
Interest Points & Descriptors 3 - SIFT
Local features and image matching
CSE 185 Introduction to Computer Vision
Lecture VI: Corner and Blob Detection
Feature descriptors and matching
Lecture 5: Feature invariance
Lecture 5: Feature invariance
Lecture: Feature Descriptors
Presentation transcript:

Local features: main components Detection: Find a set of distinctive key points. Description: Extract feature descriptor around each interest point as vector. Matching: Compute distance between feature vectors to find correspondence. K. Grauman, B. Leibe

Review: Harris corner detector E(u, v) Approximate distinctiveness by local auto-correlation. Approximate local auto-correlation by second moment matrix M. Distinctiveness (or cornerness) relates to the eigenvalues of M. Instead of computing eigenvalues directly, we can use determinant and trace of M. (max)-1/2 (min)-1/2 James Hays

Trace / determinant and eigenvalues Given n x n matrix A with eigenvalues λ1…n R = λ1λ2 – α(λ1+λ2)2 = det(M) – αtrace(M)2

Harris Detector [Harris88] 1. Image derivatives Ix Iy (optionally, blur first) Ix2 Iy2 IxIy 2. Square of derivatives g(IxIy) 3. Gaussian filter g(sI) g(Ix2) g(Iy2) 4. Cornerness function – both eigenvalues are strong 5. Non-maxima suppression har James Hays

Characteristics of good features Repeatability The same feature can be found in several images despite geometric and photometric transformations Saliency Each feature is distinctive Compactness and efficiency Many fewer features than image pixels Locality A feature occupies a relatively small area of the image; robust to clutter and occlusion Kristen Grauman

Affine intensity change I  a I + b Only derivatives are used => invariance to intensity shift I  I + b Intensity scaling: I  a I R x (image coordinate) Threshold Partially invariant to affine intensity change James Hays

Corner location is covariant w.r.t. translation Image translation Derivatives and window function are shift-invariant. Corner location is covariant w.r.t. translation James Hays

Corner location is covariant w.r.t. rotation Image rotation Second moment ellipse rotates but its shape (i.e., eigenvalues) remains the same. Corner location is covariant w.r.t. rotation James Hays

Corner location is not covariant to scaling! All points will be classified as edges Corner location is not covariant to scaling! James Hays

Automatic Scale Selection How to find corresponding patch sizes? K. Grauman, B. Leibe

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

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

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

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

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

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

What Is A Useful Signature Function? “Blob” detector Laplacian (2nd derivative) of Gaussian (LoG) Scale space Image blob size K. Grauman, B. Leibe

Find local maxima in position-scale space Find maxima s4 Blob detector is distinct from harris corner detector s3  List of (x, y, s) s2 s K. Grauman, B. Leibe

Difference-of-Gaussian (DoG) Approximate LoG with DoG (!) http://fourier.eng.hmc.edu/e161/lectures/gradient/node9.html Ruye Wang

Difference-of-Gaussian (DoG) Approximate LoG with DoG (!) 1. Blur image with σ Gaussian kernel 2. Blur image with kσ Gaussian kernel 3. Subtract 2. from 1. Small k gives a closer approximation to LoG, but usually we want to build a scale space quickly out of this. k = 1.6 gives an appropriate scale space http://dsp.stackexchange.com/questions/2529/what-is-the-relationship-between-the-sigma-in-the-laplacian-of-gaussian-and-the - = K. Grauman, B. Leibe

Find local maxima in position-scale space of Difference-of-Gaussian Find maxima … … Blob detector is distinct from harris corner detector ks 2ks - = s -  List of (x, y, s) ks = - = s Input image K. Grauman, B. Leibe

Results: Difference-of-Gaussian Larger circles = larger scale Descriptors with maximal scale response K. Grauman, B. Leibe

Maximally Stable Extremal Regions [Matas ‘02] Based on Watershed segmentation algorithm Select regions that stay stable over a large parameter range K. Grauman, B. Leibe

Example Results: MSER K. Grauman, B. Leibe

Local Image Descriptors Read Szeliski 4.1 Acknowledgment: Many slides from James Hays, Derek Hoiem and Grauman & Leibe 2008 AAAI Tutorial

Local features: main components Detection: Find a set of distinctive key points. Description: Extract feature descriptor around each interest point as vector. Matching: Compute distance between feature vectors to find correspondence. K. Grauman, B. Leibe

Motion illusion, rotating snakes

Image Representations: Histograms Global histogram to represent distribution of features Color, texture, depth, … Local histogram per detected point Space Shuttle Cargo Bay Images from Dave Kauchak

For what things do we compute histograms? Color Model local appearance L*a*b* color space HSV color space James Hays

For what things do we compute histograms? Texture Local histograms of oriented gradients SIFT: Scale Invariant Feature Transform Extremely popular (40k citations) https://web.eecs.umich.edu/~silvio/teaching/EECS598/lectures/lecture10_1.pdf SIFT – Lowe IJCV 2004 James Hays

SIFT Find Difference of Gaussian scale-space extrema Post-processing Position interpolation Discard low-contrast points Eliminate points along edges

SIFT Find Difference of Gaussian scale-space extrema Post-processing Position interpolation Discard low-contrast points Eliminate points along edges Orientation estimation

SIFT Orientation Normalization Compute orientation histogram Select dominant orientation ϴ Normalize: rotate to fixed orientation 2 p 2 p T. Tuytelaars, B. Leibe [Lowe, SIFT, 1999]

SIFT Find Difference of Gaussian scale-space extrema Post-processing Position interpolation Discard low-contrast points Eliminate points along edges Orientation estimation Descriptor extraction Motivation: We want some sensitivity to spatial layout, but not too much, so blocks of histograms give us that.

SIFT descriptor formation Compute on local 16 x 16 window around detection. Rotate and scale window according to discovered orientation ϴ and scale σ (gain invariance). Compute gradients weighted by a Gaussian of variance half the window (for smooth falloff). Actually 16x16, only showing 8x8 James Hays

SIFT vector formation 4x4 array of gradient orientation histograms weighted by gradient magnitude. Bin into 8 orientations x 4x4 array = 128 dimensions. Showing only 2x2 here but is 4x4 James Hays

Ensure smoothness Gaussian weight the magnitudes Trilinear interpolation A given gradient contributes to 8 bins: 4 in space x 2 in orientation James Hays

Reduce effect of illumination 128-dim vector normalized to 1 Threshold gradient magnitudes to avoid excessive influence of high gradients After normalization, clamp gradients > 0.2 Renormalize James Hays

SIFT-like descriptor in Project 2 SIFT is hand designed based on intuition You implement your own SIFT-like descriptor May be some trial and error Feel free to look at papers / resources for inspiration

Local Descriptors: SURF Fast approximation of SIFT idea Efficient computation by 2D box filters & integral images  6 times faster than SIFT Equivalent quality for object identification GPU implementation available Feature extraction @ 200Hz (detector + descriptor, 640×480 img) http://www.vision.ee.ethz.ch/~surf [Bay, ECCV’06], [Cornelis, CVGPU’08] K. Grauman, B. Leibe

Local Descriptors: Shape Context Count the number of points inside each bin, e.g.: Count = 4 ... Count = 10 Log-polar binning: more precision for nearby points, more flexibility for farther points. Belongie & Malik, ICCV 2001 K. Grauman, B. Leibe

Shape Context Descriptor

Self-similarity Descriptor Matching Local Self-Similarities across Images and Videos, Shechtman and Irani, 2007 James Hays

Self-similarity Descriptor Matching Local Self-Similarities across Images and Videos, Shechtman and Irani, 2007 James Hays

Self-similarity Descriptor Matching Local Self-Similarities across Images and Videos, Shechtman and Irani, 2007 James Hays

Learning Local Image Descriptors Winder and Brown, 2007

Local Descriptors Most features can be thought of as templates, histograms (counts), or combinations The ideal descriptor should be Robust Distinctive Compact Efficient Most available descriptors focus on edge/gradient information Capture texture information Color rarely used K. Grauman, B. Leibe

Available at a web site near you… Many local feature detectors have executables available online: http://www.robots.ox.ac.uk/~vgg/research/affine http://www.cs.ubc.ca/~lowe/keypoints/ http://www.vision.ee.ethz.ch/~surf K. Grauman, B. Leibe

Next time Feature matching, Hough Transform