1. Trang chủ
  2. » Giáo án - Bài giảng

Feature detectors and descriptors

73 295 0

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

THÔNG TIN TÀI LIỆU

Thông tin cơ bản

Định dạng
Số trang 73
Dung lượng 3,47 MB

Các công cụ chuyển đổi và chỉnh sửa cho tài liệu này

Nội dung

Detector Descriptor Intensity Rotation Scale AffinePCA-Kadir & Brady, 01 Matas, ‘02 others others... Detector Descriptor Intensity Rotation Scale AffinePCA-Kadir & Brady, 01 Matas, ‘02

Trang 1

Feature detectors

Fei-Fei Li

Trang 2

Feature Detection

Feature Description

Matching / Indexing / Recognition

local descriptors – (invariant) vectors

detected points – (~300) coordinates, neighbourhoods

Trang 3

Some of the challenges…

• Geometry

– Rotation

– Affine (scale dependent on direction)

valid for: orthographic camera, locally planar object

• Photometry

– Affine intensity change (I → a I + b)

Trang 4

PCA-Kadir &

Brady, 01

Matas, ‘02

others others

Trang 5

Detector Descriptor Intensity Rotation Scale Affine

PCA-Kadir &

Brady, 01

Matas, ‘02

others others

Trang 6

An introductory example:

Harris corner detector

C.Harris, M.Stephens “A Combined Corner and Edge Detector” 1988

Trang 7

Harris Detector: Basic Idea

“corner”:significant change

in all directions

Trang 8

Harris Detector: Mathematics

Window function

or Window function w(x,y) =

Gaussian

1 in window, 0 outside

Trang 9

Harris Detector: Mathematics

Trang 10

Harris Detector: Mathematics

direction of the fastest change

(λmax)-1/2

(λmin)-1/2

Ellipse E(u,v) = const

Trang 11

Harris Detector: Mathematics

λ1 and λ2 are small;

Trang 12

Harris Detector: Mathematics

Measure of corner response:

M M

Trang 13

Harris Detector: Mathematics

• R is large for a corner

• R is negative with large

magnitude for an edge

• |R| is small for a flat

Trang 15

Harris Detector: Workflow

Trang 16

Compute corner response R

Trang 17

Harris Detector: Workflow

Find points with large corner response: R>threshold

Trang 18

Harris Detector: Workflow

Take only the points of local maxima of R

Trang 19

Harris Detector: Workflow

Trang 20

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

Trang 21

Harris Detector: Some

Trang 22

Harris Detector: Some

x (image coordinate)

threshold

R

x (image coordinate)

Trang 23

Harris Detector: Some

Properties

• But: non-invariant to image scale!

All points will be

classified as edges

Corner !

Trang 24

Harris Detector: Some

Trang 25

Detector Descriptor Intensity Rotation Scale Affine

PCA-Kadir &

Brady, 01

Matas, ‘02

others others

Trang 26

Detector Descriptor Intensity Rotation Scale Affine

PCA-Kadir &

Brady, 01

Matas, ‘02

others others

Trang 27

Interest point detectors

Harris-Laplace [Mikolajczyk & Schmid ’01]

• Adds scale invariance to Harris points

– Set s i = λs d

– Detect at several scales by varying sd

– Only take local maxima (8-neighbourhood) of scale adapted Harris

points

– Further restrict to scales at which Laplacian is local maximum

Trang 28

• Selected scale determines size of support region

• Laplacian justified experimentally

– compared to gradient squared & DoG

– [Lindeberg ’98] gives thorough analysis of scale-space

Interest point detectors

Harris-Laplace [Mikolajczyk & Schmid ’01]

Trang 29

Interest point detectors

Harris-Affine [Mikolajczyk & Schmid ’02]

• Adds invariance to affine image transformations

• Initial locations and isotropic scale found by

Harris-Laplace

• Affine invariant neighbourhood evolved iteratively

using the 2nd moment matrix μ:

) )) ,

( ))(

, ( ((

) (

) ,

, ( x ΣI ΣD = g ΣI ⊗ ∇ L x ΣDL x ΣD T

µ

) 2

exp(

2

1 )

( )

,

L Σ = Σ ⊗

Trang 30

Interest point detectors

Harris-Affine [Mikolajczyk & Schmid ’02]

R

L Ax

L L

D L

=

ΣD L dM L

R R

D R

so the normalised regions are related by a pure rotation

See also [Lindeberg & Garding ’97] and [Baumberg ’00]

Trang 31

Interest point detectors

Harris-Affine [Mikolajczyk & Schmid ’02]

• Algorithm iteratively adapts

– shape of support region

– spatial location x (k)

– integration scale σ I (based on Laplacian)

– derivation scale σ D = s σ I

Trang 32

Detector Descriptor Intensity Rotation Scale Affine

PCA-Kadir &

Brady, 01

Matas, ‘02

others others

Trang 33

Detector Descriptor Intensity Rotation Scale Affine

PCA-Kadir &

Brady, 01

Matas, ‘02

others others

Trang 34

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 2000.

0

1

0

( ) ( )

points along the ray

• We will obtain approximately

corresponding regions

Trang 35

Affine Invariant Detection

• The regions found may not exactly correspond, so we

approximate them with ellipses

• Geometric Moments:

2

( , )

p q pq

Fact: moments mpq uniquely

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

Trang 36

Affine Invariant Detection

to the center of mass)

Ellipses, computed for corresponding

regions, also correspond!

Trang 37

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.

Trang 38

Detector Descriptor Intensity Rotation Scale Affine

PCA-Kadir &

Brady, 01

Matas, ‘02

others others

Trang 39

Detector Descriptor Intensity Rotation Scale Affine

PCA-Kadir &

Brady, 01

Matas, ‘02

others others

Trang 40

Interest point detectors

Difference of Gaussians [Lowe ’99]

• Difference of Gaussians in scale-space

– detects ‘blob’-like features

• Can be computed efficiently with image pyramid

Trang 41

Key point localization

• Detect maxima and minima of

difference-of-Gaussian in scale

space (Lowe, 1999)

• 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):

Trang 42

Select canonical orientation

• Create histogram of local

Trang 43

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

Trang 44

Creating features stable to viewpoint change

• Edelman, Intrator & Poggio (97) showed that complex cell outputs are better for 3D recognition than simple

correlation

Trang 45

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

Trang 46

Feature stability to noise

• Match features after random change in image scale & orientation, with differing levels of image noise

• Find nearest neighbor in database of 30,000 features

Trang 47

Feature stability to affine change

• Match features after random change in image scale &

orientation, with 2% image noise, and affine distortion

• Find nearest neighbor in database of 30,000 features

Trang 48

Detector Descriptor Intensity Rotation Scale Affine

Kadir &

Brady, 01

Matas, ‘02

others others

Trang 49

Detector Descriptor Intensity Rotation Scale Affine

Kadir &

Brady, 01

Matas, ‘02

others others

Trang 50

Other interest point detectors

Scale Saliency [Kadir & Brady ’01, ’03]

Trang 51

Other interest point detectors

Scale Saliency [Kadir & Brady ’01, ’03]

• Uses entropy measure of local pdf of intensities:

• Takes local maxima in scale

• Weights with ‘change’ of distribution with scale:

• To get saliency measure:

s

s s

) , ( )

, ( )

, ( s x H s x W s x

Trang 52

Other interest point detectors

Scale Saliency [Kadir & Brady ’01, ’03]

Trang 53

Other interest point detectors

maximum stable extremal regions [matas et al 02]

Trang 54

Detector Descriptor Intensity Rotation Scale Affine

Kadir &

Brady, 01

others others

Trang 55

Detector Descriptor Intensity Rotation Scale Affine

Kadir &

Brady, 01

others others

Trang 56

Affine-invariant texture

recognition

• Texture recognition under viewpoint changes and non-rigid transformations

• Use of affine-invariant regions

– invariance to viewpoint changes

– spatial selection => more compact representation, reduction of

redundancy in texton dictionary

[A sparse texture representation using affine-invariant regions,

S Lazebnik, C Schmid and J Ponce, CVPR 2003]

Trang 57

Overview of the

approach

Trang 58

Harris detector

Laplace detector

Region extraction

Trang 59

Descriptors – Spin

images

Trang 60

Spatial selection

clustering each pixel clustering selected pixels

Trang 61

Signature and EMD

• Hierarchical clustering

=> Signature :

• Earth movers distance

– robust distance, optimizes the flow between distributions

– can match signatures of different size

– not sensitive to the number of clusters

S = { ( m 1 , w 1 ) , … , ( m k , w k ) }

Trang 62

Database with viewpoint

changes

20 samples of 10 different textures

Trang 63

Results

Trang 64

Feature detectors

Trang 65

Widely used descriptors

Trang 66

SIFT

Trang 67

Gray-scale intensity

11x11 patch Normalize

Projection onto PCA basis

c1

c2

c15

Trang 68

Steerable filters

Trang 70

GLOH

Trang 71

Shape context

Belongie et al 2002

Trang 72

Geometric blur

Berg et al 2001

Trang 73

Geometric blur

Ngày đăng: 26/01/2015, 10:06

TỪ KHÓA LIÊN QUAN