Image Features: Descriptors and matching

Slides:



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

Feature points extraction Many slides are courtesy of Darya Frolova, Denis Simakov A low level building block in many applications: Structure from motion.
CSE 473/573 Computer Vision and Image Processing (CVIP)
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.
Object Recognition using Invariant Local Features Applications l Mobile robots, driver assistance l Cell phone location or object recognition l Panoramas,
CSE 473/573 Computer Vision and Image Processing (CVIP)
Matching with Invariant Features
Object Recognition with Invariant Features n Definition: Identify objects or scenes and determine their pose and model parameters n Applications l Industrial.
Computational Photography
Invariant Features.
Algorithms and Applications in Computer Vision
Object Recognition with Invariant Features n Definition: Identify objects or scenes and determine their pose and model parameters n Applications l Industrial.
Automatic Image Alignment (feature-based) : Computational Photography Alexei Efros, CMU, Fall 2005 with a lot of slides stolen from Steve Seitz and.
Distinctive Image Feature from Scale-Invariant KeyPoints
Feature extraction: Corners and blobs
Image Features CSE 576, Spring /31/2005CSE 576: Computer Vision2 About me Ph. D., Carnegie Mellon, 1988 Researcher, Cambridge Research Lab at DEC,
Distinctive image features from scale-invariant keypoints. David G. Lowe, Int. Journal of Computer Vision, 60, 2 (2004), pp Presented by: Shalomi.
Scale Invariant Feature Transform (SIFT)
Automatic Matching of Multi-View Images
Blob detection.
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.
776 Computer Vision Jan-Michael Frahm, Enrique Dunn Spring 2013.
Distinctive Image Features from Scale-Invariant Keypoints David G. Lowe – IJCV 2004 Brien Flewelling CPSC 643 Presentation 1.
Scale-Invariant Feature Transform (SIFT) Jinxiang Chai.
Overview Introduction to local features
Object Tracking/Recognition using Invariant Local Features Applications l Mobile robots, driver assistance l Cell phone location or object recognition.
Overview Harris interest points Comparing interest points (SSD, ZNCC, SIFT) Scale & affine invariant interest points Evaluation and comparison of different.
Local Invariant Features This is a compilation of slides by: Darya Frolova, Denis Simakov,The Weizmann Institute of Science Jiri Matas, Martin Urban Center.
Feature Detection. Image features Global features –global properties of an image, including intensity histogram, frequency domain descriptors, covariance.
Reporter: Fei-Fei Chen. Wide-baseline matching Object recognition Texture recognition Scene classification Robot wandering Motion tracking.
776 Computer Vision Jan-Michael Frahm Fall SIFT-detector Problem: want to detect features at different scales (sizes) and with different orientations!
CSE 185 Introduction to Computer Vision Local Invariant Features.
CVPR 2003 Tutorial Recognition and Matching Based on Local Invariant Features David Lowe Computer Science Department University of British Columbia.
Lecture 7: Features Part 2 CS4670/5670: Computer Vision Noah Snavely.
Distinctive Image Features from Scale-Invariant Keypoints Ronnie Bajwa Sameer Pawar * * Adapted from slides found online by Michael Kowalski, Lehigh University.
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?
Matching features Computational Photography, Prof. Bill Freeman April 11, 2006 Image and shape descriptors: Harris corner detectors and SIFT features.
A Tutorial on using SIFT Presented by Jimmy Huff (Slightly modified by Josiah Yoder for Winter )
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
Image Features Computer Vision Bill Freeman Image and shape descriptors: Harris corner detectors and SIFT features. With slides from Darya Frolova,
Presented by David Lee 3/20/2006
CSE 185 Introduction to Computer Vision Local Invariant Features.
Blob detection.
Invariant Local Features Image content is transformed into local feature coordinates that are invariant to translation, rotation, scale, and other imaging.
SIFT Scale-Invariant Feature Transform David Lowe
Interest Points EE/CSE 576 Linda Shapiro.
Presented by David Lee 3/20/2006
Lecture 07 13/12/2011 Shai Avidan הבהרה: החומר המחייב הוא החומר הנלמד בכיתה ולא זה המופיע / לא מופיע במצגת.
Distinctive Image Features from Scale-Invariant Keypoints
Scale Invariant Feature Transform (SIFT)
Digital Visual Effects, Spring 2006 Yung-Yu Chuang 2006/3/22
Feature description and matching
Local Invariant Features
CAP 5415 Computer Vision Fall 2012 Dr. Mubarak Shah Lecture-5
The SIFT (Scale Invariant Feature Transform) Detector and Descriptor
Interest Points & Descriptors 3 - SIFT
Edge detection f(x,y) viewed as a smooth function
Lecture VI: Corner and Blob Detection
Feature descriptors and matching
Lecture 5: Feature invariance
Presented by Xu Miao April 20, 2005
Presentation transcript:

Image Features: Descriptors and matching CSE 576, Spring 2005 Richard Szeliski

Today’s lecture Feature detectors Feature descriptors Feature matching scale and affine invariant (points, regions) Feature descriptors patches, oriented patches SIFT (orientations) Feature matching exhaustive search hashing nearest neighbor techniques 4/5/2005 CSE 576: Computer Vision

These slides adapted from: Matching with Invariant Features Darya Frolova, Denis Simakov The Weizmann Institute of Science March 2004

and… Real-time Object Recognition using Invariant Local Image Features David Lowe Computer Science Department University of British Columbia NIPS 2003 Tutorial

Pointers to papers: 4/5/2005 CSE 576: Computer Vision

Invariant Local Features Image content is transformed into local feature coordinates that are invariant to translation, rotation, scale, and other imaging parameters SIFT Features 4/5/2005 CSE 576: Computer Vision

Advantages of local features Locality: features are local, so robust to occlusion and clutter (no prior segmentation) Distinctiveness: individual features can be matched to a large database of objects Quantity: many features can be generated for even small objects Efficiency: close to real-time performance Extensibility: can easily be extended to wide range of differing feature types, with each adding robustness 4/5/2005 CSE 576: Computer Vision

Scale Invariant Detection Consider regions (e.g. circles) of different sizes around a point Regions of corresponding sizes will look the same in both images 4/5/2005 CSE 576: Computer Vision

Scale Invariant Detection The problem: how do we choose corresponding circles independently in each image? 4/5/2005 CSE 576: Computer Vision

Scale invariance Requires a method to repeatably select points in location and scale: The only reasonable scale-space kernel is a Gaussian (Koenderink, 1984; Lindeberg, 1994) An efficient choice is to detect peaks in the difference of Gaussian pyramid (Burt & Adelson, 1983; Crowley & Parker, 1984 – but examining more scales) Difference-of-Gaussian with constant ratio of scales is a close approximation to Lindeberg’s scale-normalized Laplacian (can be shown from the heat diffusion equation) 4/5/2005 CSE 576: Computer Vision

Scale Invariant Detection Solution: Design a function on the region (circle), 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 (circle radius) f region size Image 1 f region size Image 2 scale = 1/2 4/5/2005 CSE 576: Computer Vision

Scale Invariant Detection 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 4/5/2005 CSE 576: Computer Vision

Scale Invariant Detection A “good” function for scale detection: has one stable sharp peak f region size bad f region size Good ! f region size bad For usual images: a good function would be a one which responds to contrast (sharp local intensity change) 4/5/2005 CSE 576: Computer Vision

Scale Invariant Detection Functions for determining scale Kernels: (Laplacian) (Difference of Gaussians) where Gaussian Note: both kernels are invariant to scale and rotation 4/5/2005 CSE 576: Computer Vision

Scale space: one octave at a time 4/5/2005 CSE 576: Computer Vision

Key point localization Detect maxima and minima of difference-of-Gaussian in scale space Fit a quadratic to surrounding values for sub-pixel and sub-scale interpolation (Brown & Lowe, 2002) Taylor expansion around point: Offset of extremum (use finite differences for derivatives): 4/5/2005 CSE 576: Computer Vision

Scale Invariant Detectors x y  Harris   Laplacian  Harris-Laplacian1 Find local maximum of: Harris corner detector in space (image coordinates) Laplacian in scale SIFT (Lowe)2 Find local maximum of: Difference of Gaussians in space and scale scale x y  DoG  1 K.Mikolajczyk, C.Schmid. “Indexing Based on Scale Invariant Interest Points”. ICCV 2001 2 D.Lowe. “Distinctive Image Features from Scale-Invariant Keypoints”. Accepted to IJCV 2004 4/5/2005 CSE 576: Computer Vision

Scale Invariant Detectors Experimental evaluation of detectors w.r.t. scale change Repeatability rate: # correspondences # possible correspondences K.Mikolajczyk, C.Schmid. “Indexing Based on Scale Invariant Interest Points”. ICCV 2001 4/5/2005 CSE 576: Computer Vision

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) Methods: Harris-Laplacian [Mikolajczyk, Schmid]: maximize Laplacian over scale, Harris’ measure of corner response over the image SIFT [Lowe]: maximize Difference of Gaussians over scale and space 4/5/2005 CSE 576: Computer Vision

Affine invariant detection Above we considered: Similarity transform (rotation + uniform scale) Now we go on to: Affine transform (rotation + non-uniform scale) 4/5/2005 CSE 576: Computer Vision

Affine invariant detection Harris-Affine [Mikolajczyk & Schmid, IJCV04]: use Harris moment matrix to select dominant directions and anisotropy 4/5/2005 CSE 576: Computer Vision

Affine invariant detection Matching Widely Separated Views Based on Affine Invariant Regions, T. TUYTELAARS and L. VAN GOOL, IJCV 2004 4/5/2005 CSE 576: Computer Vision

Affine invariant detection Take a local intensity extremum as initial point Go along every ray starting from this point and stop when extremum of function f is reached f points along the ray We will obtain approximately corresponding regions Remark: we search for scale in every direction 4/5/2005 CSE 576: Computer Vision

Affine invariant detection The regions found may not exactly correspond, so we approximate them with ellipses Geometric Moments: Fact: moments mpq uniquely determine the function f Taking f to be the characteristic function of a region (1 inside, 0 outside), moments of orders up to 2 allow to approximate the region by an ellipse This ellipse will have the same moments of orders up to 2 as the original region 4/5/2005 CSE 576: Computer Vision

Affine invariant detection Covariance matrix of region points defines an ellipse: ( p = [x, y]T is relative to the center of mass) Ellipses, computed for corresponding regions, also correspond 4/5/2005 CSE 576: Computer Vision

Affine invariant detection Algorithm summary (detection of affine invariant region): Start from a local intensity extremum point Go in every direction until the point of extremum of some function f Curve connecting the points is the region boundary Compute geometric moments of orders up to 2 for this region Replace the region with ellipse 4/5/2005 CSE 576: Computer Vision

MSER Maximally Stable Extremal Regions J.Matas et.al. “Distinguished Regions for Wide-baseline Stereo”. BMVC 2002. Maximally Stable Extremal Regions Threshold image intensities: I > I0 Extract connected components (“Extremal Regions”) Find a threshold when an extremal region is “Maximally Stable”, i.e. local minimum of the relative growth of its square Approximate a region with an ellipse 4/5/2005 CSE 576: Computer Vision

Affine invariant detection Under affine transformation, we do not know in advance shapes of the corresponding regions Ellipse given by geometric covariance matrix of a region robustly approximates this region For corresponding regions ellipses also correspond Methods: Search for extremum along rays [Tuytelaars, Van Gool]: Maximally Stable Extremal Regions [Matas et.al.] 4/5/2005 CSE 576: Computer Vision

Today’s lecture Feature detectors Feature descriptors Feature matching scale and affine invariant (points, regions) Feature descriptors patches, oriented patches SIFT (orientations) Feature matching exhaustive search hashing nearest neighbor techniques 4/5/2005 CSE 576: Computer Vision

Feature selection Distribute points evenly over the image 4/5/2005 CSE 576: Computer Vision

Adaptive Non-maximal Suppression Desired: Fixed # of features per image Want evenly distributed spatially… Search over non-maximal suppression radius [Brown, Szeliski, Winder, CVPR’05] r = 8, n = 1388 r = 20, n = 283 4/5/2005 CSE 576: Computer Vision

? Feature descriptors We know how to detect points Next question: How to match them? ? Point descriptor should be: Invariant 2. Distinctive 4/5/2005 CSE 576: Computer Vision

Descriptors invariant to rotation Harris corner response measure: depends only on the eigenvalues of the matrix M Careful with window effects! (Use circular) 4/5/2005 CSE 576: Computer Vision

Descriptors Invariant to Rotation Image moments in polar coordinates Rotation in polar coordinates is translation of the angle:    +  0 This transformation changes only the phase of the moments, but not its magnitude Rotation invariant descriptor consists of magnitudes of moments: Matching is done by comparing vectors [|mkl|]k,l 4/5/2005 CSE 576: Computer Vision J.Matas et.al. “Rotational Invariants for Wide-baseline Stereo”. Research Report of CMP, 2003

Descriptors Invariant to Rotation Find local orientation Dominant direction of gradient Compute image derivatives relative to this orientation 1 K.Mikolajczyk, C.Schmid. “Indexing Based on Scale Invariant Interest Points”. ICCV 2001 2 D.Lowe. “Distinctive Image Features from Scale-Invariant Keypoints”. Accepted to IJCV 2004 4/5/2005 CSE 576: Computer Vision

Descriptors Invariant to Scale Use the scale determined by detector to compute descriptor in a normalized frame For example: moments integrated over an adapted window derivatives adapted to scale: sIx 4/5/2005 CSE 576: Computer Vision

Multi-Scale Oriented Patches Interest points Multi-scale Harris corners Orientation from blurred gradient Geometrically invariant to similarity transforms Descriptor vector Bias/gain normalized sampling of local patch (8x8) Photometrically invariant to affine changes in intensity [Brown, Szeliski, Winder, CVPR’2005] 4/5/2005 CSE 576: Computer Vision

Descriptor Vector Orientation = blurred gradient Similarity Invariant Frame Scale-space position (x, y, s) + orientation () 4/5/2005 CSE 576: Computer Vision

MOPS descriptor vector 8x8 oriented patch Sampled at 5 x scale Bias/gain normalisation: I’ = (I – )/ 40 pixels 8 pixels 4/5/2005 CSE 576: Computer Vision

Affine Invariant Descriptors Affine invariant color moments Different combinations of these moments are fully affine invariant Also invariant to affine transformation of intensity I  a I + b 4/5/2005 CSE 576: Computer Vision F.Mindru et.al. “Recognizing Color Patterns Irrespective of Viewpoint and Illumination”. CVPR99

Affine Invariant Descriptors Find affine normalized frame A A1 A2 rotation Compute rotational invariant descriptor in this normalized frame 4/5/2005 CSE 576: Computer Vision J.Matas et.al. “Rotational Invariants for Wide-baseline Stereo”. Research Report of CMP, 2003

SIFT – Scale Invariant Feature Transform Descriptor overview: Determine scale (by maximizing DoG in scale and in space), local orientation as the dominant gradient direction. Use this scale and orientation to make all further computations invariant to scale and rotation. Compute gradient orientation histograms of several small windows (128 values for each point) Normalize the descriptor to make it invariant to intensity change 4/5/2005 CSE 576: Computer Vision D.Lowe. “Distinctive Image Features from Scale-Invariant Keypoints”. IJCV 2004

Select canonical orientation Create histogram of local gradient directions computed at selected scale Assign canonical orientation at peak of smoothed histogram Each key specifies stable 2D coordinates (x, y, scale, orientation) 4/5/2005 CSE 576: Computer Vision

Example of keypoint detection Threshold on value at DOG peak and on ratio of principle curvatures (Harris approach) (a) 233x189 image (b) 832 DOG extrema (c) 729 left after peak value threshold (d) 536 left after testing ratio of principle curvatures 4/5/2005 CSE 576: Computer Vision

SIFT vector formation Thresholded image gradients are sampled over 16x16 array of locations in scale space Create array of orientation histograms 8 orientations x 4x4 histogram array = 128 dimensions 4/5/2005 CSE 576: Computer Vision

SIFT – Scale Invariant Feature Transform1 Empirically found2 to show very good performance, invariant to image rotation, scale, intensity change, and to moderate affine transformations Scale = 2.5 Rotation = 450 1 D.Lowe. “Distinctive Image Features from Scale-Invariant Keypoints”. Accepted to IJCV 2004 2 K.Mikolajczyk, C.Schmid. “A Performance Evaluation of Local Descriptors”. CVPR 2003 4/5/2005 CSE 576: Computer Vision

Affine Invariant Texture Descriptor Segment the image into regions of different textures (by a non-invariant method) Compute matrix M (the same as in Harris detector) over these regions This matrix defines the ellipse Regions described by these ellipses are invariant under affine transformations Find affine normalized frame Compute rotation invariant descriptor F.Schaffalitzky, A.Zisserman. “Viewpoint Invariant Texture Matching and Wide Baseline Stereo”. ICCV 2003 4/5/2005 CSE 576: Computer Vision

Invariance to Intensity Change Detectors mostly invariant to affine (linear) change in image intensity, because we are searching for maxima Descriptors Some are based on derivatives => invariant to intensity shift Some are normalized to tolerate intensity scale Generic method: pre-normalize intensity of a region (eliminate shift and scale) 4/5/2005 CSE 576: Computer Vision

Today’s lecture Feature detectors Feature descriptors Feature matching scale and affine invariant (points, regions) Feature descriptors patches, oriented patches SIFT (orientations) Feature matching exhaustive search hashing nearest neighbor techniques 4/5/2005 CSE 576: Computer Vision

Feature matching Exhaustive search Hashing Nearest neighbor techniques for each feature in one image, look at all the other features in the other image(s) Hashing compute a short descriptor from each feature vector, or hash longer descriptors (randomly) Nearest neighbor techniques k-trees and their variants (Best Bin First) 4/5/2005 CSE 576: Computer Vision

Wavelet-based hashing Compute a short (3-vector) descriptor from an 8x8 patch using a Haar “wavelet” Quantize each value into 10 (overlapping) bins (103 total entries) [Brown, Szeliski, Winder, CVPR’2005] 4/5/2005 CSE 576: Computer Vision

Locality sensitive hashing 4/5/2005 CSE 576: Computer Vision

Nearest neighbor techniques k-D tree and Best Bin First (BBF) Indexing Without Invariants in 3D Object Recognition, Beis and Lowe, PAMI’99 4/5/2005 CSE 576: Computer Vision

Questions? Today’s lecture Feature detectors Feature descriptors scale and affine invariant (points, regions) Feature descriptors patches, oriented patches SIFT (orientations) Feature matching exhaustive search hashing nearest neighbor techniques Questions? 4/5/2005 CSE 576: Computer Vision