instance level recognition local invariant features
play

Instance-level recognition: Local invariant features Cordelia - PowerPoint PPT Presentation

Instance-level recognition: Local invariant features Cordelia Schmid INRIA, Grenoble Overview Introduction to local features Harris interest points + SSD, ZNCC, SIFT Scale & affine invariant interest point detectors Scale


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

  2. Overview • Introduction to local features • Harris interest points + SSD, ZNCC, SIFT • Scale & affine invariant interest point detectors • Scale & affine invariant interest point detectors • Evaluation and comparison of different detectors • Region descriptors and their performance

  3. Local features ( ) local descriptor Several / many local descriptors per image Robust to occlusion/clutter + no object segmentation required Photometric : distinctive Invariant : to image transformations + illumination changes

  4. Local features: interest points

  5. Local features: Contours/segments

  6. Local features: segmentation

  7. Application: Matching Find corresponding locations in the image

  8. Illustration – Matching Interest points extracted with Harris detector (~ 500 points)

  9. Illustration – Matching Matching Interest points matched based on cross-correlation (188 pairs)

  10. Illustration – Matching Global constraints Global constraint - Robust estimation of the fundamental matrix 99 inliers 89 outliers

  11. Application: Panorama stitching Images courtesy of A. Zisserman.

  12. Application: Instance-level recognition Search for particular objects and scenes in large databases …

  13. Difficulties Finding the object despite possibly large changes in scale, viewpoint, lighting and partial occlusion � � � � requires invariant description Scale Viewpoint Occlusion Lighting

  14. Difficulties • Very large images collection � need for efficient indexing – 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 – Video collections, i.e., YouTube

  15. Instance-level recognition: Approach • Image content is transformed into local features invariant to geometric and photometric transformations • Matching local invariant descriptors ���������������� ��������� �� �������������������� ������������������������

  16. Applications Search photos on the web for particular places Find these landmarks ...in these images and 1M more

  17. Applications • Take a picture of a product or advertisement � find relevant information on the web [Pixee – Milpix]

  18. Applications • Finding stolen/missing objects in a large collection …

  19. Applications • Copy detection for images and videos Search in 200h of video Query video

  20. Applications • Sony Aibo – Robotics – Recognize docking station – Communicate with visual cards – Place recognition – Loop closure in SLAM �� �������������������� ������������������������

  21. Local features - history • Line segments [Lowe’87, Ayache’90] • Interest points & cross correlation [Z. Zhang et al. 95] • Rotation invariance with differential invariants [Schmid&Mohr’96] • Scale & affine invariant detectors [Lindeberg’98, Lowe’99, Tuytelaars&VanGool’00, Mikolajczyk&Schmid’02, Matas et al.’02] • Dense detectors and descriptors [Leung&Malik’99, Fei-Fei& Perona’05, Lazebnik et al.’06] • Contour and region (segmentation) descriptors [Shotton et al.’05, Opelt et al.’06, Ferrari et al.’06, Leordeanu et al.’07]

  22. Local features 1) Extraction of local features – Contours/segments – Interest points & regions – Regions by segmentation – Dense features, points on a regular grid 2) Description of local features – Dependant on the feature type – Contours/segments � angles, length ratios – Interest points � greylevels, gradient histograms – Regions (segmentation) � texture + color distributions

  23. Line matching • Extraction de contours – Zero crossing of Laplacian – Local maxima of gradients • Chain contour points (hysteresis) • Chain contour points (hysteresis) • Extraction of line segments • Description of segments – Mi-point, length, orientation, angle between pairs etc.

  24. Experimental results – line segments images 600 x 600

  25. Experimental results – line segments 248 / 212 line segments extracted

  26. Experimental results – line segments 89 matched line segments - 100% correct

  27. Experimental results – line segments 3D reconstruction

  28. Problems of line segments • Often only partial extraction – Line segments broken into parts – Missing parts • Information not very discriminative • Information not very discriminative – 1D information – Similar for many segments • Potential solutions – Pairs and triplets of segments – Interest points

  29. Overview • Introduction to local features • Harris interest points + SSD, ZNCC, SIFT • Scale & affine invariant interest point detectors • Scale & affine invariant interest point detectors • Evaluation and comparison of different detectors • Region descriptors and their performance

  30. Harris detector [Harris & Stephens’88] Based on the idea of auto-correlation Important difference in all directions => interest point

  31. Harris detector ∆ x ∆ y x y Auto-correlation function for a point and a shift ( , ) ( , ) ∑ = − + ∆ + ∆ A x y I x y I x x y y 2 ( , ) ( ( , ) ( , )) k k k k ∈ x y W x y ( , ) ( , ) k k ∆ x ∆ y ( , ) W

  32. Harris detector ∆ x ∆ y x y Auto-correlation function for a point and a shift ( , ) ( , ) ∑ = − + ∆ + ∆ A x y I x y I x x y y 2 ( , ) ( ( , ) ( , )) k k k k ∈ x y W x y ( , ) ( , ) k k ∆ x ∆ y ( , ) W → uniform region small in all directions A { x y → contour ( , ) large in one directions → interest point large in all directions

  33. Harris detector

  34. Harris detector Discret shifts are avoided based on the auto-correlation matrix with first order approximation  ∆ x  + + ∆ ∆ + + ∆ ∆ = = + +     I I x x x x y y y y I I x x y y I I x x y y I I x x y y ( ( , , ) ) ( ( , , ) ) ( ( ( ( , , ) ) ( ( , , )) ))      ∆ k k k k x k k y k k y  ∑ = − + ∆ + ∆ A x y I x y I x x y y 2 ( , ) ( ( , ) ( , )) k k k k ∈ x y W x y ( , ) ( , ) k k ∆ 2    x  ( ) ∑   =   I x y I x y ( , ) ( , )     ∆ x k k y k k y     ∈ x y W ( , ) k k

  35. Harris detector ∑ ∑   I x y I x y I x y 2 ( ( , )) ( , ) ( , ) x k k x k k y k k ∆ x     ( ) x y ∈ W x y ∈ W   = ∆ ∆ x y ( , ) ( , ) k k k k    ∑ ∑  ∆ I x y I x y I x y y 2   ( , ) ( , ) ( ( , ))   x k k y k k y k k   x y ∈ W x y ∈ W ( , ) ( , ) k k k k Auto-correlation matrix the sum can be smoothed with a Gaussian   ∆ x I I I   2 ( ) = ∆ ∆ ⊗   x y G x x y     ∆ y I I I 2       x y y

  36. Harris detector • Auto-correlation matrix   I I I 2 = ⊗ x x y A x y G   ( , ) I I I 2     x y y – captures the structure of the local neighborhood – measure based on eigenvalues of this matrix => interest point • 2 strong eigenvalues => contour • 1 strong eigenvalue => uniform region • 0 eigenvalue

  37. Interpreting the eigenvalues Classification of image points using eigenvalues of autocorrelation matrix : λ 2 “Edge” λ 2 >> λ 1 “Corner” λ 1 and λ 2 are large, λ ~ λ ; λ 1 ~ λ 2 ; \ λ 1 and λ 2 are small; “Edge” “Flat” λ 1 >> λ 2 region λ 1

  38. Corner response function = − α = λ λ − α λ + λ R A A 2 2 det( ) trace ( ) ( ) 1 2 1 2 α : constant (0.04 to 0.06) “Edge” R < 0 “Corner” R > 0 |R| small “Edge” “Flat” R < 0 region

  39. Harris detector • Cornerness function = − = λ λ − λ + λ f A k trace A k 2 2 det( ) ( ( )) ( ) 1 2 1 2 Reduces the effect of a strong contour Reduces the effect of a strong contour • Interest point detection – Treshold (absolut, relatif, number of corners) – Local maxima ′ ′ > ∧ ∀ ∈ − ≥ f thresh x y neighbourh ood f x y f x y , 8 ( , ) ( , )

  40. Harris Detector: Steps

  41. Harris Detector: Steps Compute corner response R

  42. Harris Detector: Steps Find points with large corner response: R> threshold

  43. Harris Detector: Steps Take only the points of local maxima of R

  44. Harris Detector: Steps

Recommend


More recommend