Image Features CSE 576, Spring 2005. 3/31/2005CSE 576: Computer Vision2 About me Ph. D., Carnegie Mellon, 1988 Researcher, Cambridge Research Lab at DEC,

Slides:



Advertisements
Similar presentations
Feature extraction: Corners
Advertisements

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
Feature extraction: Corners 9300 Harris Corners Pkwy, Charlotte, NC.
Object Recognition with Invariant Features n Definition: Identify objects or scenes and determine their pose and model parameters n Applications l Industrial.
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
Scale Invariant Feature Transform (SIFT)
Automatic Matching of Multi-View Images
Image Features: Descriptors and matching
Blob detection.
Introduction to Computer Vision CS223B, Winter 2005.
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.
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.
Summary of Previous Lecture A homography transforms one 3d plane to another 3d plane, under perspective projections. Those planes can be camera imaging.
Overview Introduction to local features
Computer vision.
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 Cordelia Schmid INRIA, Grenoble.
Local Invariant Features This is a compilation of slides by: Darya Frolova, Denis Simakov,The Weizmann Institute of Science Jiri Matas, Martin Urban Center.
CS 558 C OMPUTER V ISION Lecture VII: Corner and Blob Detection Slides adapted from S. Lazebnik.
Lecture 06 06/12/2011 Shai Avidan הבהרה: החומר המחייב הוא החומר הנלמד בכיתה ולא זה המופיע / לא מופיע במצגת.
Feature Detection. Image features Global features –global properties of an image, including intensity histogram, frequency domain descriptors, covariance.
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.
CSCE 643 Computer Vision: Extractions of Image Features Jinxiang Chai.
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.
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?
Matching features Computational Photography, Prof. Bill Freeman April 11, 2006 Image and shape descriptors: Harris corner detectors and SIFT features.
Local features: detection and description
Features Jan-Michael Frahm.
CS654: Digital Image Analysis
Presented by David Lee 3/20/2006
Instructor: Mircea Nicolescu Lecture 10 CS 485 / 685 Computer Vision.
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.
Interest Points EE/CSE 576 Linda Shapiro.
Distinctive Image Features from Scale-Invariant Keypoints
3D Vision Interest Points.
Digital Visual Effects, Spring 2006 Yung-Yu Chuang 2006/3/22
Local Invariant Features
The SIFT (Scale Invariant Feature Transform) Detector and Descriptor
Interest Points & Descriptors 3 - SIFT
Lecture VI: Corner and Blob Detection
Lecture 5: Feature invariance
Presented by Xu Miao April 20, 2005
Presentation transcript:

Image Features CSE 576, Spring 2005

3/31/2005CSE 576: Computer Vision2 About me Ph. D., Carnegie Mellon, 1988 Researcher, Cambridge Research Lab at DEC, Senior Researcher, Interactive Visual Media Group, Microsoft, Research interests: computer vision (stereo, motion), computer graphics (image-based rendering), data-parallel programming

3/31/2005CSE 576: Computer Vision3 Today’s lecture What is computer vision? Scale-space and pyramids What are good features? Feature detection Feature descriptors (Next lecture: feature matching) Project 1description and demo [Ian Simon]

What is Computer Vision?

3/31/2005CSE 576: Computer Vision5 What is Computer Vision? Image Understanding (AI, behavior) A sensor modality for robotics Computer emulation of human vision Inverse of Computer Graphics Computer vision World model Computer graphics World model

3/31/2005CSE 576: Computer Vision6 Intersection of Vision and Graphics modeling - shape - light - motion - optics - images IP animation rendering user-interfaces surface design Computer Graphics shape estimation motion estimation recognition 2D modeling modeling - shape - light - motion - optics - images IP Computer Vision

3/31/2005CSE 576: Computer Vision7 Computer Vision [Trucco&Verri’98]

3/31/2005CSE 576: Computer Vision8 Image-Based Modeling Images (2D) Geometry (3D) shape Photometry appearance + graphics vision image processing 2.1 Geometric image formation 2.2 Photometric image formation 3 Image processing 4 Feature extraction 5 Camera calibration 6 Structure from motion 7 Image alignment 8 Mosaics 9 Stereo correspondence 11 Model-based reconstruction 12 Photometric recovery 14 Image-based rendering

3/31/2005CSE 576: Computer Vision9 Related disciplines Image Processing Scientific / medical imaging Pattern Recognition Computer Graphics Learning Artificial Intelligence Visual Neuroscience Applied Mathematics

3/31/2005CSE 576: Computer Vision10 Mathematics What kinds of mathematics are used? Signal and image processing Euclidean and projective geometry Vector calculus Partial differential equations Optimization Probabilistic estimation

3/31/2005CSE 576: Computer Vision11 Applications Geometric reconstruction: modeling, forensics, special effects (ILM, RealVis,2D3) Image and video editing (Avid, Adobe) Webcasting and Indexing Digital Video (Virage) Scientific / medical applications (GE)

3/31/2005CSE 576: Computer Vision12 Applications Tracking and surveillance (Sarnoff) Fingerprint recognition (Digital Persona) Biometrics / iris scans (Iridian Technologies) Vehicle safety (MobilEye) Drowning people (VisionIQ Inc) Optical motion capture (Vicon)

3/31/2005CSE 576: Computer Vision13 Image Morphing

3/31/2005CSE 576: Computer Vision14 Panoramic Mosaics + + … + =

3/31/2005CSE 576: Computer Vision15 3D Shape Reconstruction Debevec, Taylor, and Malik, SIGGRAPH 1996

3/31/2005CSE 576: Computer Vision16 Face Modeling

3/31/2005CSE 576: Computer Vision17 View Morphing Morph between pair of images using epipolar geometry [Seitz & Dyer, SIGGRAPH’96]

3/31/2005CSE 576: Computer Vision18 Virtualized Reality TM Takeo Kanade, CMU collect video from 50+ stream reconstruct 3D model sequences

3/31/2005CSE 576: Computer Vision19 Virtualized Reality TM Takeo Kanade, CMU generate new video steerable version used for SuperBowl XXV “eye vision” system

3/31/2005CSE 576: Computer Vision20 Edge detection and editing Elder, J. H. and R. M. Goldberg. "Image Editing in the Contour Domain," Proc. IEEE: Computer Vision and Pattern Recognition, pp , June, 1998.

3/31/2005CSE 576: Computer Vision21 Image Enhancement High dynamic range photography [Debevec et al.’97; Mitsunaga & Nayar’99] combine several different exposures together

3/31/2005CSE 576: Computer Vision22 Projects Let’s look at what students have done in previous years … Stanford CMU UW GA Tech

3/31/2005CSE 576: Computer Vision23 Today’s lecture What is computer vision? Scale-space and pyramids What are good features? Feature detection Feature descriptors (Next lecture: feature matching) Project 1description and demo [Ian Simon]

Image Pyramids

3/31/2005CSE 576: Computer Vision25 Image Pyramids

3/31/2005CSE 576: Computer Vision26 Pyramid Creation “Laplacian” Pyramid Created from Gaussian pyramid by subtraction L l = G l – expand(G l+1 ) filter mask “Gaussian” Pyramid

3/31/2005CSE 576: Computer Vision27 Octaves in the Spatial Domain Bandpass Images Lowpass Images

3/31/2005CSE 576: Computer Vision28 Pyramids Advantages of pyramids Faster than Fourier transform Avoids “ringing” artifacts Many applications small images faster to process good for multiresolution processing compression progressive transmission Known as “MIP-maps” in graphics community Precursor to wavelets Wavelets also have these advantages

3/31/2005CSE 576: Computer Vision29 Laplacian level 4 Laplacian level 2 Laplacian level 0 left pyramidright pyramidblended pyramid

3/31/2005CSE 576: Computer Vision30 Pyramid Blending

3/31/2005CSE 576: Computer Vision31 smoothed – original (scaled by 4, offset +128) original smoothed (5x5 Gaussian) hy does this work?

3/31/2005CSE 576: Computer Vision32 Scale space (Witkin 83) larger Gaussian filtered signal Zero crossings

3/31/2005CSE 576: Computer Vision33 Scale space: insights As the scale is increased edge position can change edges can disappear new edges are not created Bottom line need to consider edges at different scales (or else know what scale you care about)

3/31/2005CSE 576: Computer Vision34 Today’s lecture What is computer vision? Scale-space and pyramids What are good features? Feature detection Feature descriptors (Next lecture: feature matching) Project 1description and demo [Ian Simon]

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

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

3/31/2005CSE 576: Computer Vision38 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

3/31/2005CSE 576: Computer Vision39 More motivation… Feature points are used also for: Image alignment (homography, fundamental matrix) 3D reconstruction Motion tracking Object recognition Indexing and database retrieval Robot navigation … other

3/31/2005CSE 576: Computer Vision40 Harris corner detector C.Harris, M.Stephens. “A Combined Corner and Edge Detector”. 1988

3/31/2005CSE 576: Computer Vision41 The Basic Idea 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

3/31/2005CSE 576: Computer Vision42 Harris Detector: Basic Idea “flat” region: no change in all directions “edge”: no change along the edge direction “corner”: significant change in all directions

3/31/2005CSE 576: Computer Vision43 Harris Detector: Mathematics Change of intensity for the shift [u,v]: Intensity Shifted intensity Window function or Window function w(x,y) = Gaussian1 in window, 0 outside

3/31/2005CSE 576: Computer Vision44 Harris Detector: Mathematics For small shifts [u,v ] we have a bilinear approximation: where M is a 2  2 matrix computed from image derivatives:

3/31/2005CSE 576: Computer Vision45 Harris Detector: Mathematics Intensity change in shifting window: eigenvalue analysis 1, 2 – eigenvalues of M direction of the slowest change direction of the fastest change ( max ) -1/2 ( min ) -1/2 Ellipse E(u,v) = const

3/31/2005CSE 576: Computer Vision46 Harris Detector: Mathematics 1 2 “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 “Edge” 2 >> 1 “Flat” region Classification of image points using eigenvalues of M:

3/31/2005CSE 576: Computer Vision47 Harris Detector: Mathematics Measure of corner response: (k – empirical constant, k = )

3/31/2005CSE 576: Computer Vision48 Harris Detector: Mathematics 1 2 “Corner” “Edge” “Flat” R depends only on eigenvalues of M R is large for a corner R is negative with large magnitude for an edge |R| is small for a flat region R > 0 R < 0 |R| small

3/31/2005CSE 576: Computer Vision49 Harris Detector The Algorithm: Find points with large corner response function R (R > threshold) Take the points of local maxima of R

3/31/2005CSE 576: Computer Vision50 Harris Detector: Workflow

3/31/2005CSE 576: Computer Vision51 Harris Detector: Workflow Compute corner response R

3/31/2005CSE 576: Computer Vision52 Harris Detector: Workflow Find points with large corner response: R>threshold

3/31/2005CSE 576: Computer Vision53 Harris Detector: Workflow Take only the points of local maxima of R

3/31/2005CSE 576: Computer Vision54 Harris Detector: Workflow

3/31/2005CSE 576: Computer Vision55 Harris Detector: Summary Average intensity change in direction [u,v] can be expressed as a bilinear form: Describe a point in terms of eigenvalues of M : measure of corner response A good (corner) point should have a large intensity change in all directions, i.e. R should be large positive

3/31/2005CSE 576: Computer Vision56 Harris Detector: Some Properties Rotation invariance Ellipse rotates but its shape (i.e. eigenvalues) remains the same Corner response R is invariant to image rotation

3/31/2005CSE 576: Computer Vision57 Harris Detector: Some Properties Partial invariance to affine intensity change 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)

3/31/2005CSE 576: Computer Vision58 Harris Detector: Some Properties But: non-invariant to image scale! All points will be classified as edges Corner !

3/31/2005CSE 576: Computer Vision59 Harris Detector: Some Properties Quality of Harris detector for different scale changes Repeatability rate: # correspondences # possible correspondences C.Schmid et.al. “Evaluation of Interest Point Detectors”. IJCV 2000

3/31/2005CSE 576: Computer Vision60 Models of Image Change Geometry Rotation Similarity (rotation + uniform scale) Affine (scale dependent on direction) valid for: orthographic camera, locally planar object Photometry Affine intensity change ( I  a I + b)

3/31/2005CSE 576: Computer Vision61 Rotation Invariant Detection Harris Corner Detector C.Schmid et.al. “Evaluation of Interest Point Detectors”. IJCV 2000

3/31/2005CSE 576: Computer Vision62 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

3/31/2005CSE 576: Computer Vision63 Scale Invariant Detection The problem: how do we choose corresponding circles independently in each image?

3/31/2005CSE 576: Computer Vision64 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)

3/31/2005CSE 576: Computer Vision65 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. scale = 1/2 –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

3/31/2005CSE 576: Computer Vision66 Scale Invariant Detection Common approach: scale = 1/2 f region size Image 1 f region size Image 2 Take a local maximum of this function Observation : region size, for which the maximum is achieved, should be invariant to image scale. s1s1 s2s2 Important: this scale invariant region size is found in each image independently!

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

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

3/31/2005CSE 576: Computer Vision69 Scale space: one octave at a time

3/31/2005CSE 576: Computer Vision70 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):

3/31/2005CSE 576: Computer Vision71 Sampling frequency for scale More points are found as sampling frequency increases, but accuracy of matching decreases after 3 scales/octave

3/31/2005CSE 576: Computer Vision72 Eliminating unstable keypoints Discard points with DOG value below threshold (low contrast) However, points along edges may have high contrast in one direction but low in another Compute principal curvatures from eigenvalues of 2x2 Hessian matrix, and limit ratio (Harris approach):

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

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

3/31/2005CSE 576: Computer Vision75

3/31/2005CSE 576: Computer Vision76

3/31/2005CSE 576: Computer Vision77 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: 1.Harris-Laplacian [Mikolajczyk, Schmid]: maximize Laplacian over scale, Harris’ measure of corner response over the image 2.SIFT [Lowe]: maximize Difference of Gaussians over scale and space

3/31/2005CSE 576: Computer Vision78 Affine Invariant Detection Above we considered: Similarity transform (rotation + uniform scale) Now we go on to: Affine transform (rotation + non-uniform scale)

3/31/2005CSE 576: Computer Vision79 Affine invariant descriptors … skip these slides (see handouts and on-line class notes) …

3/31/2005CSE 576: Computer Vision80 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 T.Tuytelaars, L.V.Gool. “Wide Baseline Stereo Matching Based on Local, Affinely Invariant Regions”. BMVC f points along the ray We will obtain approximately corresponding regions Remark: we search for scale in every direction

3/31/2005CSE 576: Computer Vision81 Affine Invariant Detection The regions found may not exactly correspond, so we approximate them with ellipses Geometric Moments: Fact: moments m pq 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

3/31/2005CSE 576: Computer Vision82 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!

3/31/2005CSE 576: Computer Vision83 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 T.Tuytelaars, L.V.Gool. “Wide Baseline Stereo Matching Based on Local, Affinely Invariant Regions”. BMVC 2000.

3/31/2005CSE 576: Computer Vision84 Affine Invariant Detection Maximally Stable Extremal Regions Threshold image intensities: I > I 0 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 J.Matas et.al. “Distinguished Regions for Wide-baseline Stereo”. Research Report of CMP, 2001.

3/31/2005CSE 576: Computer Vision85 Affine Invariant Detection : Summary 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: 1.Search for extremum along rays [Tuytelaars, Van Gool]: 2.Maximally Stable Extremal Regions [Matas et.al.]

3/31/2005CSE 576: Computer Vision86 Feature selection Distribute points evenly over the image

3/31/2005CSE 576: Computer Vision87 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 = 1388r = 20, n = 283

3/31/2005CSE 576: Computer Vision88 Today’s lecture What is computer vision? Scale-space and pyramids What are good features? Feature detection Feature descriptors (Next lecture: feature matching) Project 1description and demo [Ian Simon]

3/31/2005CSE 576: Computer Vision89 Point Descriptors We know how to detect points Next question: How to match them? ? Point descriptor should be: 1.Invariant 2.Distinctive

3/31/2005CSE 576: Computer Vision90 Descriptors Invariant to Rotation Harris corner response measure: depends only on the eigenvalues of the matrix M C.Harris, M.Stephens. “A Combined Corner and Edge Detector”. 1988

3/31/2005CSE 576: Computer Vision91 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

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

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

3/31/2005CSE 576: Computer Vision94 Descriptors Invariant to Rotation Image moments in polar coordinates J.Matas et.al. “Rotational Invariants for Wide-baseline Stereo”. Research Report of CMP, 2003 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 [|m kl |] k,l

3/31/2005CSE 576: Computer Vision95 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 D.Lowe. “Distinctive Image Features from Scale-Invariant Keypoints”. Accepted to IJCV 2004

3/31/2005CSE 576: Computer Vision96 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: sI x

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

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

3/31/2005CSE 576: Computer Vision99 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 D.Lowe. “Distinctive Image Features from Scale-Invariant Keypoints”. IJCV 2004

3/31/2005CSE 576: Computer Vision100 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)

3/31/2005CSE 576: Computer Vision101 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

3/31/2005CSE 576: Computer Vision102 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

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

3/31/2005CSE 576: Computer Vision104 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 F.Schaffalitzky, A.Zisserman. “Viewpoint Invariant Texture Matching and Wide Baseline Stereo”. ICCV 2003 Regions described by these ellipses are invariant under affine transformations Find affine normalized frame Compute rotation invariant descriptor

3/31/2005CSE 576: Computer Vision105 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)

3/31/2005CSE 576: Computer Vision106 Today’s lecture What is computer vision? Scale-space and pyramids What are good features? Feature detection Feature descriptors (Next lecture: feature matching) Project 1description and demo [Ian Simon]