Instance-level recognition: Local invariant features · Search photos on the web for particular...

85
Instance-level recognition: Local invariant features Cordelia Schmid INRIA, Grenoble

Transcript of Instance-level recognition: Local invariant features · Search photos on the web for particular...

Page 1: Instance-level recognition: Local invariant features · Search photos on the web for particular places pp ppp Find these landmarks ...in these images and 1M more. Applications •

Instance-level recognition:

Local invariant features

Cordelia SchmidINRIA, Grenoble

Page 2: Instance-level recognition: Local invariant features · Search photos on the web for particular places pp ppp Find these landmarks ...in these images and 1M more. Applications •

OverviewOverview

• Introduction to local features

H i i t t i t SSD ZNCC SIFT• Harris interest points + SSD, ZNCC, SIFT

• Scale & affine invariant interest point detectors

Page 3: Instance-level recognition: Local invariant features · Search photos on the web for particular places pp ppp Find these landmarks ...in these images and 1M more. Applications •

Local featuresLocal features

( )( )local descriptor

Several / many local descriptors per imageRobust to occlusion/clutter + no object segmentation requiredRobust to occlusion/clutter + no object segmentation required

Photometric : distinctiveInvariant : to image transformations + illumination changes

Page 4: Instance-level recognition: Local invariant features · Search photos on the web for particular places pp ppp Find these landmarks ...in these images and 1M more. Applications •

Local featuresLocal features

Interest Points Contours/lines Region segments

Page 5: Instance-level recognition: Local invariant features · Search photos on the web for particular places pp ppp Find these landmarks ...in these images and 1M more. Applications •

Local featuresLocal features

Interest Points Contours/lines Region segmentsPatch descriptors, i.e. SIFT Mi-points, angles Color/texture histogram

Page 6: Instance-level recognition: Local invariant features · Search photos on the web for particular places pp ppp Find these landmarks ...in these images and 1M more. Applications •

Interest points / invariant regionsInterest points / invariant regions

Harris detector Scale/affine inv. detector

t d i thi l tpresented in this lecture

Page 7: Instance-level recognition: Local invariant features · Search photos on the web for particular places pp ppp Find these landmarks ...in these images and 1M more. Applications •

Contours / linesContours / lines

Extraction de contours• Extraction de contours– Zero crossing of Laplacian– Local maxima of gradientsLocal maxima of gradients

• Chain contour points (hysteresis) , Canny detector p ( y ) , y

• Recent detectors– Global probability of boundary (gPb) detector [Malik et al., UC

Berkeley]S f f f (S )– Structured forests for fast edge detection (SED) [Dollar and Zitnick] – student presentation

Page 8: Instance-level recognition: Local invariant features · Search photos on the web for particular places pp ppp Find these landmarks ...in these images and 1M more. Applications •

Regions segments / superpixelsRegions segments / superpixels

Simple linear iterative clustering (SLIC)Simple linear iterative clustering (SLIC)

Normalized cut [Shi & Malik], Mean Shift [Comaniciu & Meer], ….

Page 9: Instance-level recognition: Local invariant features · Search photos on the web for particular places pp ppp Find these landmarks ...in these images and 1M more. Applications •

Application: matchingApplication: matching

Find corresponding locations in the imageFind corresponding locations in the image

Page 10: Instance-level recognition: Local invariant features · Search photos on the web for particular places pp ppp Find these landmarks ...in these images and 1M more. Applications •

Illustration – MatchingIllustration Matching

I t t i t t t d ith H i d t t ( 500 i t )Interest points extracted with Harris detector (~ 500 points)

Page 11: Instance-level recognition: Local invariant features · Search photos on the web for particular places pp ppp Find these landmarks ...in these images and 1M more. Applications •

MatchingIllustration – MatchingMatchingIllustration Matching

I t t i t t h d b d l ti (188 i )Interest points matched based on cross-correlation (188 pairs)

Page 12: Instance-level recognition: Local invariant features · Search photos on the web for particular places pp ppp Find these landmarks ...in these images and 1M more. Applications •

Global constraintsIllustration – MatchingGlobal constraints

Global constraint Robust estimation of the fundamental matrix

Illustration Matching

Global constraint - Robust estimation of the fundamental matrix

99 inliers 89 outliers99 inliers 89 outliers

Page 13: Instance-level recognition: Local invariant features · Search photos on the web for particular places pp ppp Find these landmarks ...in these images and 1M more. Applications •

Application: Panorama stitchingpp g

Images courtesy of A. Zisserman.

Page 14: Instance-level recognition: Local invariant features · Search photos on the web for particular places pp ppp Find these landmarks ...in these images and 1M more. Applications •

Application: Instance-level recognitionApplication: Instance level recognition

Search for particular objects and scenes in large databasesSearch for particular objects and scenes in large databases

Page 15: Instance-level recognition: Local invariant features · Search photos on the web for particular places pp ppp Find these landmarks ...in these images and 1M more. Applications •

DifficultiesFinding the object despite possibly large changes in

l i i t li hti d ti l l iscale, viewpoint, lighting and partial occlusion

requires invariant description

S l ViewpointScale

Lighting Occlusion

Page 16: Instance-level recognition: Local invariant features · Search photos on the web for particular places pp ppp Find these landmarks ...in these images and 1M more. Applications •

DifficultiesDifficulties

V l i ll ti d f ffi i t i d i• Very large images collection need for efficient indexing

Fli k h 2 billi h t h th 1 illi dd d d il– Flickr has 2 billion photographs, more than 1 million added daily

Facebook has 15 billion images ( 27 million added daily)– Facebook has 15 billion images (~27 million added daily)

– Large personal collections– Large personal collections

– Video collections, i.e., YouTubeVideo collections, i.e., YouTube

Page 17: Instance-level recognition: Local invariant features · Search photos on the web for particular places pp ppp Find these landmarks ...in these images and 1M more. Applications •

Applications

Search photos on the web for particular places

pp

p p p

Find these landmarks ...in these images and 1M more

Page 18: Instance-level recognition: Local invariant features · Search photos on the web for particular places pp ppp Find these landmarks ...in these images and 1M more. Applications •

ApplicationsApplications

Take a picture of a product or advertisement• Take a picture of a product or advertisement find relevant information on the web

Page 19: Instance-level recognition: Local invariant features · Search photos on the web for particular places pp ppp Find these landmarks ...in these images and 1M more. Applications •

ApplicationsApplications

• Copy detection for images and videos

Search in 200h of videoQuery video

Page 20: Instance-level recognition: Local invariant features · Search photos on the web for particular places pp ppp Find these landmarks ...in these images and 1M more. Applications •

OverviewOverview

• Introduction to local features

H i i t t i t SSD ZNCC SIFT• Harris interest points + SSD, ZNCC, SIFT

• Scale & affine invariant interest point detectors

Page 21: Instance-level recognition: Local invariant features · Search photos on the web for particular places pp ppp Find these landmarks ...in these images and 1M more. Applications •

Harris detector [Harris & Stephens’88]Harris detector [Harris & Stephens 88]

B d th id f t l tiBased on the idea of auto-correlation

I t t diff i ll di ti i t t i tImportant difference in all directions => interest point

Page 22: Instance-level recognition: Local invariant features · Search photos on the web for particular places pp ppp Find these landmarks ...in these images and 1M more. Applications •

Harris detectorHarris detector

2))()(()( IIA

Auto-correlation function for a point and a shift),( yx ),( yx

2

),(),()),(),((),( yyxxIyxIyxA kkk

yxWyxk

kk

)( yx

W

),( yx

Page 23: Instance-level recognition: Local invariant features · Search photos on the web for particular places pp ppp Find these landmarks ...in these images and 1M more. Applications •

Harris detectorHarris detector

2))()(()( IIA

Auto-correlation function for a point and a shift),( yx ),( yx

2

),(),()),(),((),( yyxxIyxIyxA kkk

yxWyxk

kk

)( yx

W

),( yx

small in all directions

large in one directions ),( yxA { → uniform region→ contourg

large in all directions),( y{

→ interest point

Page 24: Instance-level recognition: Local invariant features · Search photos on the web for particular places pp ppp Find these landmarks ...in these images and 1M more. Applications •

Harris detectorHarris detector

Discret shifts are avoided based on the auto-correlation matrix

x

yxIyxIyxIyyxxI ))()(()()(

with first order approximation

y

yxIyxIyxIyyxxI kkykkxkkkk )),(),((),(),(

2

),(),()),(),((),( yyxxIyxIyxA kkk

yxWyxk

kk

2

)(),(),(

Wyx

kkykkxkk y

xyxIyxI

),( Wyx kk y

Page 25: Instance-level recognition: Local invariant features · Search photos on the web for particular places pp ppp Find these landmarks ...in these images and 1M more. Applications •

Harris detectorHarris detector

x

yxIyxIyxIW

kkykkxW

kkx)()(

2 ),(),()),((

yx

yxIyxIyxIyx

Wyxkky

Wyxkkykkx

WyxWyx

kkkk

kkkk

),(

2

),(

),(),(

)),((),(),(

Auto-correlation matrix

the sum can be smoothed with a Gaussianthe sum can be smoothed with a Gaussian

xIII

G yxx2

yIII

Gyxyyx

yxx2

Page 26: Instance-level recognition: Local invariant features · Search photos on the web for particular places pp ppp Find these landmarks ...in these images and 1M more. Applications •

Harris detectorHarris detector

Auto correlation matrix• Auto-correlation matrix

2

)( yxx III

2),(yyx

yxx

IIIGyxA

– captures the structure of the local neighborhoodmeasure based on eigenvalues of this matrix– measure based on eigenvalues of this matrix

• 2 strong eigenvalues• 1 strong eigenvalue

=> interest point=> contour

• 0 eigenvalue => uniform region

Page 27: Instance-level recognition: Local invariant features · Search photos on the web for particular places pp ppp Find these landmarks ...in these images and 1M more. Applications •

Interpreting the eigenvaluesInterpreting the eigenvaluesClassification of image points using eigenvalues of autocorrelation matrix:

2 “Edge” 2 >> 1

“Corner”1 and 2 are large,

2 >> 1

1 ~ 2;\

1 and 2 are small; “Edge” 1 >> 2

“Flat” region

1

Page 28: Instance-level recognition: Local invariant features · Search photos on the web for particular places pp ppp Find these landmarks ...in these images and 1M more. Applications •

Corner response functionCorner response function2

21212 )()(trace)det( AAR

“Corner”“Edge” R < 0

2121 )()()(α: constant (0.04 to 0.06)

“Corner”R > 0

R < 0

|R| small“Edge” R < 0

“Flat” region

Page 29: Instance-level recognition: Local invariant features · Search photos on the web for particular places pp ppp Find these landmarks ...in these images and 1M more. Applications •

Harris detectorHarris detector

C f ti2

21212 )())(()det( kAtracekAR

• Cornerness function

2121 )())(()(

R d th ff t f t tReduces the effect of a strong contour

• Interest point detection• Interest point detection– Treshold (absolut, relatif, number of corners)– Local maxima

),(),(8, yxfyxfoodneighbourhyxthreshf

Page 30: Instance-level recognition: Local invariant features · Search photos on the web for particular places pp ppp Find these landmarks ...in these images and 1M more. Applications •

Harris Detector: StepsHarris Detector: Steps

Page 31: Instance-level recognition: Local invariant features · Search photos on the web for particular places pp ppp Find these landmarks ...in these images and 1M more. Applications •

Harris Detector: StepsHarris Detector: StepsCompute corner response R

Page 32: Instance-level recognition: Local invariant features · Search photos on the web for particular places pp ppp Find these landmarks ...in these images and 1M more. Applications •

Harris Detector: StepsHarris Detector: StepsFind points with large corner response: R>threshold

Page 33: Instance-level recognition: Local invariant features · Search photos on the web for particular places pp ppp Find these landmarks ...in these images and 1M more. Applications •

Harris Detector: StepsHarris Detector: StepsTake only the points of local maxima of R

Page 34: Instance-level recognition: Local invariant features · Search photos on the web for particular places pp ppp Find these landmarks ...in these images and 1M more. Applications •

Harris Detector: StepsHarris Detector: Steps

Page 35: Instance-level recognition: Local invariant features · Search photos on the web for particular places pp ppp Find these landmarks ...in these images and 1M more. Applications •

Harris detector: Summary of stepsHarris detector: Summary of steps

1. Compute Gaussian derivatives at each pixel2. Compute second moment matrix A in a Gaussian

i d d h i lwindow around each pixel 3. Compute corner response function R4. Threshold R5. Find local maxima of response function (non-maximum

i )suppression)

Page 36: Instance-level recognition: Local invariant features · Search photos on the web for particular places pp ppp Find these landmarks ...in these images and 1M more. Applications •

Harris - invariance to transformationsHarris invariance to transformations

Geometric transformations• Geometric transformations– translation

– rotation

i ilit d ( t ti l h )– similitude (rotation + scale change)

– affine (valid for local planar objects)( p j )

• Photometric transformations– Affine intensity changes (I a I + b)

Page 37: Instance-level recognition: Local invariant features · Search photos on the web for particular places pp ppp Find these landmarks ...in these images and 1M more. Applications •

Harris Detector: Invariance PropertiesHarris Detector: Invariance Properties• Rotation

Ellipse rotates but its shape (i.e. eigenvalues) remains the sameremains the same

Corner response R is invariant to image rotationCorner response R is invariant to image rotation

Page 38: Instance-level recognition: Local invariant features · Search photos on the web for particular places pp ppp Find these landmarks ...in these images and 1M more. Applications •

Harris Detector: Invariance PropertiesHarris Detector: Invariance Properties

• ScalingScaling

Corner

All points will be classified as

edges

Not invariant to scaling

Page 39: Instance-level recognition: Local invariant features · Search photos on the web for particular places pp ppp Find these landmarks ...in these images and 1M more. Applications •

Harris Detector: Invariance PropertiesHarris Detector: Invariance Properties

• Affine intensity change• Affine intensity change

Only derivatives are used => invariance to intensity shift I I + bto intensity shift I I + b Intensity scale: I a I

R Rthreshold

x (image coordinate) x (image coordinate)

ll ffi i i hPartially invariant to affine intensity change, dependent on type of threshold

Page 40: Instance-level recognition: Local invariant features · Search photos on the web for particular places pp ppp Find these landmarks ...in these images and 1M more. Applications •

Comparison of patches - SSDComparison of patches SSDComparison of the intensities in the neighborhood of two interest pointsComparison of the intensities in the neighborhood of two interest points

),( 11 yx),( 22 yx

image 1 image 2g g

SSD : sum of square difference

2222111)12(

1 )),(),((2 jyixIjyixIN

Ni

N

NjN

Small difference values similar patches

Page 41: Instance-level recognition: Local invariant features · Search photos on the web for particular places pp ppp Find these landmarks ...in these images and 1M more. Applications •

Cross-correlation ZNCCCross correlation ZNCC

ZNCC: zero normalized cross correlation

22221111

)12(1 ),(),(

2

mjyixImjyixIN N

N

21

)12( Ni NjN

ZNCC values between 1 and 1 1 when identical patchesZNCC values between -1 and 1, 1 when identical patchesin practice threshold around 0.5

Robust to illumination change I-> aI+b

Page 42: Instance-level recognition: Local invariant features · Search photos on the web for particular places pp ppp Find these landmarks ...in these images and 1M more. Applications •

Local descriptorsLocal descriptors

Pixel values• Pixel values

G l d i ti• Greyvalue derivatives

Diff ti l i i t• Differential invariants [Koenderink’87]

SIFT d i• SIFT descriptor [Lowe’99]

Page 43: Instance-level recognition: Local invariant features · Search photos on the web for particular places pp ppp Find these landmarks ...in these images and 1M more. Applications •

Local descriptorsLocal descriptors• Greyvalue derivativesG ey a ue de at es

– Convolution with Gaussian derivatives

)(),()(),(

xGyxIGyxI

)(*)()(*),()(*),(

),(

xx

y

GyxIGyxIGyxI

yxv

)(*),()(*),(

yy

xy

GyxIGyxI

ydxdyyxxIyxGGyxI ),(),,()(),(

)2

exp(2

1),,( 2

22

2 yxyxG

yyyyy )()()()(

Page 44: Instance-level recognition: Local invariant features · Search photos on the web for particular places pp ppp Find these landmarks ...in these images and 1M more. Applications •

Local descriptorsLocal descriptors

Notation for greyvalue derivatives [Koenderink’87]

),()(),( yxLGyxI

Notation for greyvalue derivatives [Koenderink’87]

),(),(),(

)(*),()(),()(),(

yxLyxLy

GyxIGyxI

y

y

x

y

x

),(),(),(

)(*),()(*),()(),(

),(yxLyxLy

GyxIGyxI

yyx

xy

xx

y

xy

xx

y

v

),(),(

)(*),()(),(

yxLy

GyxIy

yy

xy

yy

xy

I i ?Invariance?

Page 45: Instance-level recognition: Local invariant features · Search photos on the web for particular places pp ppp Find these landmarks ...in these images and 1M more. Applications •

Local descriptors – rotation invarianceLocal descriptors rotation invariance

I i t i t ti diff ti l i i tInvariance to image rotation : differential invariants [Koen87]

L

yyxx

LLLLLLLLLLLL

L

2gradient magnitude

yyxx

yyyyyxxyxxxx

LLLLLLLL

LLLLLLLL

2

2

Laplacian

yyyyxyxyxxxx LLLLLL 2

Page 46: Instance-level recognition: Local invariant features · Search photos on the web for particular places pp ppp Find these landmarks ...in these images and 1M more. Applications •

Laplacian of Gaussian (LOG)Laplacian of Gaussian (LOG)

)()( yyxx GGLOG

Page 47: Instance-level recognition: Local invariant features · Search photos on the web for particular places pp ppp Find these landmarks ...in these images and 1M more. Applications •

SIFT descriptor [Lowe’99]SIFT descriptor [Lowe 99]

• Approach• Approach– 8 orientations of the gradient – 4x4 spatial grid– Dimension 128– soft-assignment to spatial bins– normalization of the descriptor to norm onenormalization of the descriptor to norm one– comparison with Euclidean distance

gradient 3D histogramimage patchx

yy

Page 48: Instance-level recognition: Local invariant features · Search photos on the web for particular places pp ppp Find these landmarks ...in these images and 1M more. Applications •

Local descriptors - rotation invarianceLocal descriptors rotation invariance

E ti ti f th d i t i t ti• Estimation of the dominant orientation– extract gradient orientation

histogram over gradient orientation– histogram over gradient orientation– peak in this histogram

0 2

• Rotate patch in dominant direction

Page 49: Instance-level recognition: Local invariant features · Search photos on the web for particular places pp ppp Find these landmarks ...in these images and 1M more. Applications •

Local descriptors – illumination changeLocal descriptors illumination change

in case of an affine transformation baII )()( 21 xx

• Robustness to illumination changes

in case of an affine transformation baII )()( 21 xx

• Normalization of the image patch with mean and variance

Page 50: Instance-level recognition: Local invariant features · Search photos on the web for particular places pp ppp Find these landmarks ...in these images and 1M more. Applications •

Invariance to scale changesInvariance to scale changes

• Scale change between two images• Scale change between two images

• Scale factor s can be eliminated

• Support region for calculation!! – In case of a convolution with Gaussian derivatives defined by– In case of a convolution with Gaussian derivatives defined by

ydxdyyxxIyxGGyxI ),(),,()(),(

)2

exp(2

1),,( 2

22

2 yxyxG

ydxdyyxxIyxGGyxI ),(),,()(),(

22 22

Page 51: Instance-level recognition: Local invariant features · Search photos on the web for particular places pp ppp Find these landmarks ...in these images and 1M more. Applications •

OverviewOverview

• Introduction to local features

H i i t t i t SSD ZNCC SIFT• Harris interest points + SSD, ZNCC, SIFT

• Scale & affine invariant interest point detectors

Page 52: Instance-level recognition: Local invariant features · Search photos on the web for particular places pp ppp Find these landmarks ...in these images and 1M more. Applications •

Scale invariance - motivationScale invariance motivation

• Description regions have to be adapted to scale changes

I t t i t h t b t bl f l h• Interest points have to be repeatable for scale changes

Page 53: Instance-level recognition: Local invariant features · Search photos on the web for particular places pp ppp Find these landmarks ...in these images and 1M more. Applications •

Harris detector + scale changesHarris detector + scale changes

|}))((|){(| Hdist baba

Repeatability rate

|)||,max(||})),((|),{(|)(

ii

iiii HdistRba

baba

Page 54: Instance-level recognition: Local invariant features · Search photos on the web for particular places pp ppp Find these landmarks ...in these images and 1M more. Applications •

Scale adaptationScale adaptation

Scale change bet een t o images

Scale change between two images

1

12

2

22

1

11 sy

sxI

yx

Iyx

I

Scale adapted derivative calculation

Page 55: Instance-level recognition: Local invariant features · Search photos on the web for particular places pp ppp Find these landmarks ...in these images and 1M more. Applications •

Scale adaptationScale adaptation

Scale change bet een t o images

Scale change between two images

1

12

2

22

1

11 sy

sxI

yx

Iyx

I

Scale adapted derivative calculation

)()(11

2

22

1

11 sG

yx

IsGyx

Inn ii

nii

sns

Page 56: Instance-level recognition: Local invariant features · Search photos on the web for particular places pp ppp Find these landmarks ...in these images and 1M more. Applications •

Harris detector – adaptation to scaleHarris detector adaptation to scale

})),((|),{()( iiii HdistR baba

Page 57: Instance-level recognition: Local invariant features · Search photos on the web for particular places pp ppp Find these landmarks ...in these images and 1M more. Applications •

Scale selectionScale selection

For a point compute a value (gradient Laplacian etc ) at• For a point compute a value (gradient, Laplacian etc.) at several scalesNormali ation of the al es ith the scale factor• Normalization of the values with the scale factore.g. Laplacian |)(| 2

yyxx LLs

• Select scale at the maximum → characteristic scales

|)(| 2yyxx LLs

E lt h th t th L l i i b t lt

scale

• Exp. results show that the Laplacian gives best results

Page 58: Instance-level recognition: Local invariant features · Search photos on the web for particular places pp ppp Find these landmarks ...in these images and 1M more. Applications •

Scale selectionScale selection

Scale invariance of the characteristic scale• Scale invariance of the characteristic scale

s

p.no

rm. L

a

scale

Page 59: Instance-level recognition: Local invariant features · Search photos on the web for particular places pp ppp Find these landmarks ...in these images and 1M more. Applications •

Scale selectionScale selection

Scale invariance of the characteristic scale• Scale invariance of the characteristic scale

s

p. p.

norm

. La

norm

. La

scale scale

21 sss• Relation between characteristic scales

Page 60: Instance-level recognition: Local invariant features · Search photos on the web for particular places pp ppp Find these landmarks ...in these images and 1M more. Applications •

Scale-invariant detectorsScale invariant detectors

Harris Laplace (Mikolajczyk & Schmid’01)• Harris-Laplace (Mikolajczyk & Schmid’01)

• Laplacian detector (Lindeberg’98)

• Difference of Gaussian (Lowe’99)

Harris-Laplace Laplacian

Page 61: Instance-level recognition: Local invariant features · Search photos on the web for particular places pp ppp Find these landmarks ...in these images and 1M more. Applications •

Harris-LaplaceHarris Laplace

multi-scale Harris points

selection of points at maximum of Laplacian

invariant points + associated regions [Mikolajczyk & Schmid’01]

Page 62: Instance-level recognition: Local invariant features · Search photos on the web for particular places pp ppp Find these landmarks ...in these images and 1M more. Applications •

Matching resultsMatching results

213 / 190 detected interest points213 / 190 detected interest points

Page 63: Instance-level recognition: Local invariant features · Search photos on the web for particular places pp ppp Find these landmarks ...in these images and 1M more. Applications •

Matching resultsMatching results

58 points are initially matched58 points are initially matched

Page 64: Instance-level recognition: Local invariant features · Search photos on the web for particular places pp ppp Find these landmarks ...in these images and 1M more. Applications •

Matching resultsMatching results

32 points are matched after verification – all correct32 points are matched after verification all correct

Page 65: Instance-level recognition: Local invariant features · Search photos on the web for particular places pp ppp Find these landmarks ...in these images and 1M more. Applications •

LOG detectorLOG detector

Convolve image with scaleConvolve image with scale-normalized Laplacian at several scalesseveral scales

))()((2 yyxx GGsLOG

Detection of maxima and minima of Laplacian in scale space

Page 66: Instance-level recognition: Local invariant features · Search photos on the web for particular places pp ppp Find these landmarks ...in these images and 1M more. Applications •

Efficient implementationEfficient implementation• Difference of Gaussian (DOG) approximates theDifference of Gaussian (DOG) approximates the

Laplacian )()( GkGDOG

• Error due to the approximation

Page 67: Instance-level recognition: Local invariant features · Search photos on the web for particular places pp ppp Find these landmarks ...in these images and 1M more. Applications •

DOG detectorDOG detector

• Fast computation scale space processed one octave at a• Fast computation, scale space processed one octave at a time

David G. Lowe. "Distinctive image features from scale-invariant keypoints.”IJCV 60 (2)student presentation

Page 68: Instance-level recognition: Local invariant features · Search photos on the web for particular places pp ppp Find these landmarks ...in these images and 1M more. Applications •

Affine invariant regions - MotivationAffine invariant regions Motivation

Scale invariance is not sufficient for large baseline changes• Scale invariance is not sufficient for large baseline changes

detected scale invariant regiong

A

j t d i i i t h l llprojected regions, viewpoint changes can locally be approximated by an affine transformation A

Page 69: Instance-level recognition: Local invariant features · Search photos on the web for particular places pp ppp Find these landmarks ...in these images and 1M more. Applications •

Affine invariant regions - MotivationAffine invariant regions Motivation

Page 70: Instance-level recognition: Local invariant features · Search photos on the web for particular places pp ppp Find these landmarks ...in these images and 1M more. Applications •

Affine invariant regions - ExampleAffine invariant regions Example

Page 71: Instance-level recognition: Local invariant features · Search photos on the web for particular places pp ppp Find these landmarks ...in these images and 1M more. Applications •

Harris/Hessian/Laplacian-AffineHarris/Hessian/Laplacian Affine

• Initialize with scale invariant Harris/Hessian/Laplacian• Initialize with scale-invariant Harris/Hessian/Laplacian points

• Estimation of the affine neighbourhood with the second moment matrix [Lindeberg’94]

• Apply affine neighbourhood estimation to the scale-invariant interest points [Mikolajczyk & Schmid’02invariant interest points [Mikolajczyk & Schmid 02, Schaffalitzky & Zisserman’02]

• Excellent results in a comparison [Mikolajczyk et al.’05]

Page 72: Instance-level recognition: Local invariant features · Search photos on the web for particular places pp ppp Find these landmarks ...in these images and 1M more. Applications •

Affine invariant regionsAffine invariant regions

Based on the second moment matrix (Lindeberg’94)• Based on the second moment matrix (Lindeberg’94)

),(),(

)()(2

2 DyxDx LLLGM

xx

),(),(),(),(

)(),,( 22

DyDyx

DyxDxIDDI LLL

GM

xx

x

• Normalization with eigenvalues/eigenvectors

1

xx 2M

Page 73: Instance-level recognition: Local invariant features · Search photos on the web for particular places pp ppp Find these landmarks ...in these images and 1M more. Applications •

Affine invariant regionsAffine invariant regions

xx A LR xx A

L21

L xx LM R21

R xx RM

LR Rxx

Isotropic neighborhoods related by image rotation

Page 74: Instance-level recognition: Local invariant features · Search photos on the web for particular places pp ppp Find these landmarks ...in these images and 1M more. Applications •

Affine invariant regions - Estimation

• Iterative estimation initial points

Affine invariant regions Estimation

• Iterative estimation – initial points

Page 75: Instance-level recognition: Local invariant features · Search photos on the web for particular places pp ppp Find these landmarks ...in these images and 1M more. Applications •

Affine invariant regions - Estimation

• Iterative estimation iteration #1

Affine invariant regions Estimation

• Iterative estimation – iteration #1

Page 76: Instance-level recognition: Local invariant features · Search photos on the web for particular places pp ppp Find these landmarks ...in these images and 1M more. Applications •

Affine invariant regions - Estimation

• Iterative estimation iteration #2

Affine invariant regions Estimation

• Iterative estimation – iteration #2

Page 77: Instance-level recognition: Local invariant features · Search photos on the web for particular places pp ppp Find these landmarks ...in these images and 1M more. Applications •

Harris-Affine versus Harris-LaplaceHarris Affine versus Harris Laplace

H i L lHarris-LaplaceHarris-Affine

Page 78: Instance-level recognition: Local invariant features · Search photos on the web for particular places pp ppp Find these landmarks ...in these images and 1M more. Applications •

Harris/Hessian-AffineHarris/Hessian Affine

H i AffiHarris-Affine

Hessian-Affine

Page 79: Instance-level recognition: Local invariant features · Search photos on the web for particular places pp ppp Find these landmarks ...in these images and 1M more. Applications •

Harris-AffineHarris Affine

Page 80: Instance-level recognition: Local invariant features · Search photos on the web for particular places pp ppp Find these landmarks ...in these images and 1M more. Applications •

Hessian-AffineHessian Affine

Page 81: Instance-level recognition: Local invariant features · Search photos on the web for particular places pp ppp Find these landmarks ...in these images and 1M more. Applications •

MatchesMatches

22 correct matches

Page 82: Instance-level recognition: Local invariant features · Search photos on the web for particular places pp ppp Find these landmarks ...in these images and 1M more. Applications •

MatchesMatches

33 correct matches

Page 83: Instance-level recognition: Local invariant features · Search photos on the web for particular places pp ppp Find these landmarks ...in these images and 1M more. Applications •

Maximally stable extremal regions (MSER) [Matas’02]Maximally stable extremal regions (MSER) [Matas 02]

Extremal regions: connected components in a thresholded• Extremal regions: connected components in a thresholded image (all pixels above/below a threshold)

• Maximally stable: minimal change of the component (area) for a change of the threshold i e region remains(area) for a change of the threshold, i.e. region remains stable for a change of threshold

• Excellent results in a recent comparison

Page 84: Instance-level recognition: Local invariant features · Search photos on the web for particular places pp ppp Find these landmarks ...in these images and 1M more. Applications •

Maximally stable extremal regions (MSER)Maximally stable extremal regions (MSER)

E l f th h ld d iExamples of thresholded images

high threshold

low threshold

Page 85: Instance-level recognition: Local invariant features · Search photos on the web for particular places pp ppp Find these landmarks ...in these images and 1M more. Applications •

MSERMSER