Image Features. Work on project 1. All is Vanity, by C. Allan Gilbert,

Similar documents
Harder case. Image matching. Even harder case. Harder still? by Diva Sian. by swashford

Harder case. Image matching. Even harder case. Harder still? by Diva Sian. by swashford

Image matching. Announcements. Harder case. Even harder case. Project 1 Out today Help session at the end of class. by Diva Sian.

CS5670: Computer Vision

Edge and corner detection

CS4670: Computer Vision

Local features: detection and description. Local invariant features

BSB663 Image Processing Pinar Duygulu. Slides are adapted from Selim Aksoy

Local Feature Detectors

Local Features: Detection, Description & Matching

Local invariant features

Local features: detection and description May 12 th, 2015

Local features and image matching. Prof. Xin Yang HUST

Automatic Image Alignment (feature-based)

Midterm Wed. Local features: detection and description. Today. Last time. Local features: main components. Goal: interest operator repeatability

Feature descriptors and matching

Feature Detectors and Descriptors: Corners, Lines, etc.

The bits the whirl-wind left out..

Feature Based Registration - Image Alignment

Feature descriptors. Alain Pagani Prof. Didier Stricker. Computer Vision: Object and People Tracking

CS 378: Autonomous Intelligent Robotics. Instructor: Jivko Sinapov

Local Patch Descriptors

Patch Descriptors. CSE 455 Linda Shapiro

2D Image Processing Feature Descriptors

Motion Estimation and Optical Flow Tracking

Computer Vision for HCI. Topics of This Lecture

Lecture: RANSAC and feature detectors

Lecture 6: Finding Features (part 1/2)

SIFT: SCALE INVARIANT FEATURE TRANSFORM SURF: SPEEDED UP ROBUST FEATURES BASHAR ALSADIK EOS DEPT. TOPMAP M13 3D GEOINFORMATION FROM IMAGES 2014

Augmented Reality VU. Computer Vision 3D Registration (2) Prof. Vincent Lepetit

3D from Photographs: Automatic Matching of Images. Dr Francesco Banterle

Automatic Image Alignment

Automatic Image Alignment

Patch Descriptors. EE/CSE 576 Linda Shapiro

CS 556: Computer Vision. Lecture 3

Prof. Feng Liu. Spring /26/2017

The SIFT (Scale Invariant Feature

Problems with template matching

Image Features: Local Descriptors. Sanja Fidler CSC420: Intro to Image Understanding 1/ 58

Wikipedia - Mysid

AK Computer Vision Feature Point Detectors and Descriptors

Outline 7/2/201011/6/

Multi-modal Registration of Visual Data. Massimiliano Corsini Visual Computing Lab, ISTI - CNR - Italy

Local Image preprocessing (cont d)

EECS150 - Digital Design Lecture 14 FIFO 2 and SIFT. Recap and Outline

Introduction. Introduction. Related Research. SIFT method. SIFT method. Distinctive Image Features from Scale-Invariant. Scale.

Building a Panorama. Matching features. Matching with Features. How do we build a panorama? Computational Photography, 6.882

CS 556: Computer Vision. Lecture 3

Computer Vision. Recap: Smoothing with a Gaussian. Recap: Effect of σ on derivatives. Computer Science Tripos Part II. Dr Christopher Town

Local Image Features

Local features and image matching May 8 th, 2018

SIFT - scale-invariant feature transform Konrad Schindler

Mosaics. Today s Readings

School of Computing University of Utah

Scott Smith Advanced Image Processing March 15, Speeded-Up Robust Features SURF

Feature Matching and RANSAC

Capturing, Modeling, Rendering 3D Structures

Local Image Features

Computer Vision Feature Extraction

Features Points. Andrea Torsello DAIS Università Ca Foscari via Torino 155, Mestre (VE)

CS 4495 Computer Vision A. Bobick. CS 4495 Computer Vision. Features 2 SIFT descriptor. Aaron Bobick School of Interactive Computing

Feature Detection and Matching

SCALE INVARIANT FEATURE TRANSFORM (SIFT)

Motion illusion, rotating snakes

Computer Vision I - Appearance-based Matching and Projective Geometry

Local Image Features

Object Recognition with Invariant Features

Large-Scale 3D Point Cloud Processing Tutorial 2013

CEE598 - Visual Sensing for Civil Infrastructure Eng. & Mgmt.

Final Exam Study Guide

Image Matching. AKA: Image registration, the correspondence problem, Tracking,

Feature Detection. Raul Queiroz Feitosa. 3/30/2017 Feature Detection 1

Scale Invariant Feature Transform

Ulas Bagci

Bias-Variance Trade-off (cont d) + Image Representations

CAP 5415 Computer Vision Fall 2012

Stitching and Blending

Scale Invariant Feature Transform

Eppur si muove ( And yet it moves )

Matching. Compare region of image to region of image. Today, simplest kind of matching. Intensities similar.

Implementation and Comparison of Feature Detection Methods in Image Mosaicing

SURF. Lecture6: SURF and HOG. Integral Image. Feature Evaluation with Integral Image

SUMMARY: DISTINCTIVE IMAGE FEATURES FROM SCALE- INVARIANT KEYPOINTS

Robert Collins CSE598G. Intro to Template Matching and the Lucas-Kanade Method

Chapter 3 Image Registration. Chapter 3 Image Registration

Computer Vision I - Basics of Image Processing Part 2

Image processing and features

Vision and Image Processing Lab., CRV Tutorial day- May 30, 2010 Ottawa, Canada

Keypoint detection. (image registration, panorama stitching, motion estimation + tracking, recognition )

Computer Vision I - Filtering and Feature detection

Line, edge, blob and corner detection

Category vs. instance recognition

CS231A Section 6: Problem Set 3

Visual motion. Many slides adapted from S. Seitz, R. Szeliski, M. Pollefeys

Lecture 16: Computer Vision

Lecture 16: Computer Vision

Corner Detection. GV12/3072 Image Processing.

A NEW FEATURE BASED IMAGE REGISTRATION ALGORITHM INTRODUCTION

Computer Vision I - Appearance-based Matching and Projective Geometry

Computer Vision I. Announcement. Corners. Edges. Numerical Derivatives f(x) Edge and Corner Detection. CSE252A Lecture 11

Transcription:

Image Features Work on project 1 All is Vanity, by C. Allan Gilbert, 1873-1929

Feature extrac*on: Corners and blobs c

Mo*va*on: Automa*c panoramas Credit: Ma9 Brown

Why extract features? Mo*va*on: panorama s*tching We have two images how do we combine them?

Why extract features? Mo*va*on: panorama s*tching We have two images how do we combine them? Step 1: extract features Step 2: match features

Why extract features? Mo*va*on: panorama s*tching We have two images how do we combine them? Step 1: extract features Step 2: match features Step 3: align images

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

More motivation Feature points are used for: Image alignment (e.g., panoramas) 3D reconstruction Motion tracking Object recognition Indexing and database retrieval Robot navigation many others

Ideal property Suppose your feature detector always extracts 100 features from an image Ideal property of your detector?

Challenges: Invariance Find features that are invariant to transformations geometric invariance: translation, rotation, scale photometric invariance: brightness, exposure,

Two Problems for Features Feature detection

Two Problems for Features Feature detection Feature descriptor

Two Problems for Features Feature detection Feature descriptor

What makes a good feature? Zoom-in demo

Want uniqueness Look for unusual image regions Lead to unambiguous matches in other images How to define unusual?

Local measures of uniqueness Consider a small window of pixels Where are features good and bad? Slide adapted from Darya Frolova, Denis Simakov, Weizmann Institute.

Local measures of uniqueness Consider a small window of pixels Where are features good and bad? Slide adapted from Darya Frolova, Denis Simakov, Weizmann Institute.

Feature detection Uniqueness = How does it change when shifted by a small amount? flat region: no change in all directions edge : no change along the edge direction corner : significant change in all directions Slide adapted from Darya Frolova, Denis Simakov, Weizmann Institute.

Feature detection Define E(u,v) = amount of change when you shift the window by (u,v) E(u,v) is small for all shifts E(u,v) is small for some shifts E(u,v) is small for no shifts We want to be

Feature detection: the math Consider shifting the window W by (u,v) how do the pixels in W change? compare each pixel before and after by Sum of the Squared Differences (SSD) this defines an SSD error E(u,v): W

Small motion assumption Taylor Series expansion of I: If the motion (u,v) is small, then first order approx is good Plugging this into the formula on the previous slide

Feature detection: the math Consider shifting the window W by (u,v) how do the pixels in W change? compare each pixel before and after by summing up the squared differences this defines an error of E(u,v): W

Feature detection: the math This can be rewritten:

Feature detection: the math This can be rewritten: Which [u v] maximizes E(u,v)? Which [u v] minimizes E(u,v)?

Feature detection: the math This can be rewritten: Which [u v] maximizes E(u,v)? Which [u v] minimizes E(u,v)?

Feature detection: the math This can be rewritten: x - x + Eigenvector Eigenvector x + x - with the largest eigen value? with the smallest eigen value?

Quick eigenvalue/eigenvector review The eigenvectors of a matrix A are the vectors x that satisfy: The scalar λ is the eigenvalue corresponding to x The eigenvalues are found by solving: In our case, A = H is a 2x2 matrix, so we have The solution:

Feature detection Local measure of feature uniqueness E(u,v) = amount of change when you shift the window by (u,v) E(u,v) is small for all shifts We want E(u,v) is small for some shifts to be large = E(u,v) is small for no shifts

Eigenvalues of H

Feature detection summary Here s what you do Compute the gradient at each point in the image Create the H matrix from the entries in the gradient Compute the eigenvalues. Find points with large response (λ - > threshold) Choose those points where λ - is a local maximum as features

Feature detection summary Here s what you do Compute the gradient at each point in the image Create the H matrix from the entries in the gradient Compute the eigenvalues. Find points with large response (λ - > threshold) Choose those points where λ - is a local maximum as features Called non-local max suppression

The Harris operator λ - is a variant of the Harris operator for feature detection 0.03 0.02 f Flat

The Harris operator λ - is a variant of the Harris operator for feature detection 0.03 0.02 0.012 f Flat

The Harris operator λ - is a variant of the Harris operator for feature detection 0.03 0.02 0.012 3 0.02 0.02 f Flat?

The Harris operator λ - is a variant of the Harris operator for feature detection 0.03 0.02 0.012 3 0.02 0.02 f Flat Edge

The Harris operator λ - is a variant of the Harris operator for feature detection 0.03 0.02 0.012 3 0.02 0.02 2.5 3 1.36 f Flat Edge?

The Harris operator λ - is a variant of the Harris operator for feature detection 0.03 0.02 0.012 3 0.02 0.02 2.5 3 1.36 f Flat Edge Corner

The Harris operator λ - is a variant of the Harris operator for feature detection 0.03 0.02 0.012 3 0.02 0.02 2.5 3 1.36 5 6 2.73 f Flat Edge Corner?

The Harris operator λ - is a variant of the Harris operator for feature detection 0.03 0.02 0.012 3 0.02 0.02 2.5 3 1.36 5 6 2.73 f Flat Edge Corner Strong corner

The Harris operator λ - is a variant of the Harris operator for feature detection The trace is the sum of the diagonals, i.e., trace(h) = h 11 + h 22 Very similar to λ - but less expensive (no square root) Called the Harris Corner Detector or Harris Operator Lots of other detectors, this is one of the most popular

The Harris operator Harris operator

Harris detector example

f value (red high, blue low)

Threshold (f > value)

Find local maxima of f

Harris features (in red)

Invariance Suppose you rotate the image by some angle Will you still pick up the same features? What if you change the brightness? Scale?

Scale invariant detection Suppose you re looking for corners Key idea: find scale that gives local maximum of f f is a local maximum in both position and scale

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

Two Problems for Features Feature detection Feature descriptor

Feature descriptors We know how to detect good points Next question: How to match them??

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: Sum of squared differences State of the art approach: SIFT David Lowe, UBC http://www.cs.ubc.ca/~lowe/keypoints/

The most popular descriptor SIFT 60

Scale Invariant Feature Transform Histograms of gradient directions over spatial regions

Scale Invariant Feature Transform 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 0 2π angle histogram Adapted from slide by David Lowe

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 Handle viewpoint changes Up to about 60 degree out of plane rotation Handle significant illumination changes in illumination Sometimes even day vs. night (below) Fast and efficient can run in real time Lots of code available http://people.csail.mit.edu/albert/ladypack/wiki/index.php/known_implementations_of_sift

Invariance (for descriptors) Compare two images I 1 and I 2 I 2 may be a transformed version of I 1 What kinds of transformations are likely in practice?

Invariance (for descriptors) Compare two images I 1 and I 2 I 2 may be a transformed version of I 1 What kinds of transformations are likely in practice? In practice Limited 3D rotations (up to about 60 degrees) Limited affine transformations (some are fully affine invariant) Limited illumination/contrast changes

Rotation invariance Find dominant orientation This is given by x +, the eigenvector of H corresponding to λ + λ + is the larger eigenvalue Rotate the window according to this angle Figure by Matthew Brown

Scale Invariance Automatic scale selection Detect at multiple scales 68

Scale Invariance Automatic scale selection Detect at multiple scales 69

Scale Invariance Automatic scale selection Detect at multiple scales 70

Next feature matching 71