Lecture 7: Features Part 2 CS4670/5670: Computer Vision Noah Snavely.

Slides:



Advertisements
Similar presentations
Feature extraction: Corners
Advertisements

Feature matching “What stuff in the left image matches with stuff on the right?” Necessary for automatic panorama stitching (Part of Project 4!) Slides.
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
TP14 - Local features: detection and description Computer Vision, FCUP, 2014 Miguel Coimbra Slides by Prof. Kristen Grauman.
CSE 473/573 Computer Vision and Image Processing (CVIP)
Matching with Invariant Features
Patch Descriptors CSE P 576 Larry Zitnick
Algorithms and Applications in Computer Vision
Interest points CSE P 576 Larry Zitnick Many slides courtesy of Steve Seitz.
CS4670: Computer Vision Kavita Bala Lecture 10: Feature Matching and Transforms.
Feature extraction: Corners 9300 Harris Corners Pkwy, Charlotte, NC.
Lecture 6: Feature matching CS4670: Computer Vision Noah Snavely.
Affine Linear Transformations Prof. Graeme Bailey (notes modified from Noah Snavely, Spring 2009)
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
Feature-based object recognition Prof. Noah Snavely CS1114
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.
The SIFT (Scale Invariant Feature Transform) Detector and Descriptor
CS4670: Computer Vision Kavita Bala Lecture 8: Scale invariance.
Lecture 6: Feature matching and alignment CS4670: Computer Vision Noah Snavely.
Overview Introduction to local features
Computer vision.
Overview Harris interest points Comparing interest points (SSD, ZNCC, SIFT) Scale & affine invariant interest points Evaluation and comparison of different.
CS 558 C OMPUTER V ISION Lecture VII: Corner and Blob Detection Slides adapted from S. Lazebnik.
Lecture 06 06/12/2011 Shai Avidan הבהרה: החומר המחייב הוא החומר הנלמד בכיתה ולא זה המופיע / לא מופיע במצגת.
Lecture 4: Feature matching CS4670 / 5670: Computer Vision Noah Snavely.
Feature extraction: Corners 9300 Harris Corners Pkwy, Charlotte, NC.
776 Computer Vision Jan-Michael Frahm, Enrique Dunn Spring 2013.
Harris Corner Detector & Scale Invariant Feature Transform (SIFT)
Lecture 8: Feature matching CS6670: Computer Vision Noah Snavely.
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.
Local features: detection and description
Features Jan-Michael Frahm.
CS654: Digital Image Analysis
Presented by David Lee 3/20/2006
Image matching by Diva SianDiva Sian by swashfordswashford TexPoint fonts used in EMF. Read the TexPoint manual before you delete this box.: AAAAAA.
Announcements Project 1 Out today Help session at the end of class.
CSE 185 Introduction to Computer Vision Local Invariant Features.
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 13: Feature Descriptors and Matching
Presented by David Lee 3/20/2006
Lecture 07 13/12/2011 Shai Avidan הבהרה: החומר המחייב הוא החומר הנלמד בכיתה ולא זה המופיע / לא מופיע במצגת.
Distinctive Image Features from Scale-Invariant Keypoints
Image Features: Points and Regions
TP12 - Local features: detection and description
Scale and interest point descriptors
Local features: detection and description May 11th, 2017
Feature description and matching
Features Readings All is Vanity, by C. Allan Gilbert,
Announcements Project 1 Project 2 (panoramas)
The SIFT (Scale Invariant Feature Transform) Detector and Descriptor
Lecture 5: Feature detection and matching
Announcement Project 1 1.
SIFT keypoint detection
Lecture VI: Corner and Blob Detection
Feature descriptors and matching
Lecture 5: Feature invariance
Lecture 5: Feature invariance
Presentation transcript:

Lecture 7: Features Part 2 CS4670/5670: Computer Vision Noah Snavely

Reading Szeliski: 4.1

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

Harris Detector: Invariance Properties Affine intensity change: I  aI + b Only derivatives are used => invariance to intensity shift I  I + b Intensity scale: I  a I R x (image coordinate) threshold R x (image coordinate) Partially invariant to affine intensity change

Harris Detector: Invariance Properties Scaling All points will be classified as edges Corner Not invariant to scaling

Scale invariant detection Suppose you’re looking for corners Key idea: find scale that gives local maximum of f – in both position and scale – One definition of f: the Harris operator

Slide from Tinne Tuytelaars Lindeberg et al, 1996 Slide from Tinne Tuytelaars Lindeberg et al., 1996

Implementation Instead of computing f for larger and larger windows, we can implement using a fixed window size with a Gaussian pyramid (sometimes need to create in- between levels, e.g. a ¾-size image)

Another common definition of f The Laplacian of Gaussian (LoG) (very similar to a Difference of Gaussians (DoG) – i.e. a Gaussian minus a slightly smaller Gaussian)

Laplacian of Gaussian “Blob” detector Find maxima and minima of LoG operator in space and scale * = maximum minima

Scale selection At what scale does the Laplacian achieve a maximum response for a binary circle of radius r? r imageLaplacian

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 "Feature detection with automatic scale selection."

Scale-space blob detector: Example

Questions?

Feature descriptors

We know how to detect good points Next question: How to match them? Answer: Come up with a descriptor for each point, find similar descriptors between the two images ??

Feature descriptors We know how to detect good points Next question: How to match them? Lots of possibilities (this is a popular research area) – Simple option: match square windows around the point – State of the art approach: SIFT David Lowe, UBC ??

Invariance vs. discriminability Invariance: – Descriptor shouldn’t change even if image is transformed Discriminability: – Descriptor should be highly unique for each point

Image transformations Geometric Rotation Scale Photometric Intensity change

Invariance Suppose we are comparing two images I 1 and I 2 – I 2 may be a transformed version of I 1 – What kinds of transformations are we likely to encounter in practice?

Invariance Most feature descriptors are designed to be invariant to – Translation, 2D rotation, scale They can usually also handle – Limited 3D rotations (SIFT works up to about 60 degrees) – Limited affine transformations (some are fully affine invariant) – Limited illumination/contrast changes

How to achieve invariance Need both of the following: 1.Make sure your detector is invariant 2. Design an invariant feature descriptor – Simplest descriptor: a single 0 What’s this invariant to? – Next simplest descriptor: a square window of pixels What’s this invariant to? – Let’s look at some better approaches…

Find dominant orientation of the image patch – This could be computed in several ways: x max, the eigenvector of H corresponding to max (what could go wrong?) Smoothed gradient direction at the center point – Rotate the patch according to this angle Rotation invariance for feature descriptors Figure by Matthew Brown

Take 40x40 square window around detected feature – Scale to 1/5 size (using prefiltering) – Rotate to horizontal – Sample 8x8 square window centered at feature – Intensity normalize the window by subtracting the mean, dividing by the standard deviation in the window CSE 576: Computer Vision Multiscale Oriented PatcheS descriptor 8 pixels 40 pixels Adapted from slide by Matthew Brown

Detections at multiple scales

Basic idea: Take 16x16 square window around detected feature Compute edge orientation (angle of the gradient - 90  ) for each pixel Throw out weak edges (threshold gradient magnitude) Create histogram of surviving edge orientations Scale Invariant Feature Transform Adapted from slide by David Lowe 0 22 angle histogram

SIFT descriptor Full version Divide the 16x16 window into a 4x4 grid of cells (2x2 case shown below) Compute an orientation histogram for each cell 16 cells * 8 orientations = 128 dimensional descriptor Adapted from slide by David Lowe

Properties of SIFT Extraordinarily robust matching technique – Can handle changes in viewpoint Up to about 60 degree out of plane rotation – Can handle significant changes in illumination Sometimes even day vs. night (below) – Fast and efficient—can run in real time – Lots of code available

Lots of applications Features are used for: – Image alignment (e.g., mosaics) – 3D reconstruction – Motion tracking – Object recognition (e.g., Google Goggles) – Indexing and database retrieval – Robot navigation – … other

Object recognition (David Lowe)

3D Reconstruction Internet Photos (“Colosseum”) Reconstructed 3D cameras and points

Sony Aibo SIFT usage: Recognize charging station Communicate with visual cards Teach object recognition

Questions?