Robust Feature Matching and Fast GMS Solution 6/14/2017 1/57
Robust Feature Matching and Fast GMS Solution Singapore University - - PowerPoint PPT Presentation
Robust Feature Matching and Fast GMS Solution Singapore University - - PowerPoint PPT Presentation
Robust Feature Matching and Fast GMS Solution Singapore University of Technology and Design (SUTD) Advanced Digital Sciences Center (ADSC) Speaker JiaWang Bian( ) http://jwbian.net/ June 14,2017 6/14/2017 Robust Feature Matching
Robust Feature Matching and Fast GMS Solution 6/14/2017 2/57
- Feature Matching Introduction
- Feature Matching
- Feature Detector & Descriptor
- Matching
- RANSAC-based Geometry Estimation (or Verification)
- Recent Robust Matchers
- CODE (PAMI,2016)
- RepMatch (ECCV,2016)
- Fast and Robust GMS Solution(CVPR,2017)
- Video Demo
- Methodology
- Algorithm
- Share (Material Links)
Content
Robust Feature Matching and Fast GMS Solution 6/14/2017 3/57
Feature Matching Introduction
Robust Feature Matching and Fast GMS Solution 6/14/2017 4/57
Feature Matching Introduction
- Feature Matching
- Pipeline
Detection Description Matching Geometry
Robust Feature Matching and Fast GMS Solution 6/14/2017 5/57
Feature Matching Introduction
- Applications
Correct Correspondences Geometry between 2 views Similarity(Number of matches) Image retrieval Object Recognition Loop Closing (SLAM) Re-localization (SLAM) … Estimate Camera Pose Localization (SFM) Tracking (SLAM) …
Robust Feature Matching and Fast GMS Solution 6/14/2017 6/57
Sparse Feature Matching
- Feature detector & descriptor
SIFT SURF, ORB, AKAZE, … PCA-SIFT, ASIFT, LIFT, … Faster Better
Robust Feature Matching and Fast GMS Solution 6/14/2017 7/57
Feature Matching Introduction
- Matching
Matching Nearest-Neighbor Optimization Graph Matching Others Brute-Force Approximate(FLANN) Matching Algorithms
CODE, RepMatch, GMS…
Robust Feature Matching and Fast GMS Solution 6/14/2017 8/57
Feature Matching Introduction
- RANSAC-based Geometry Estimation (or Verification)
- An example for RANSAC framework (fitting a line)
Robust Feature Matching and Fast GMS Solution 6/14/2017 9/57
Feature Matching Introduction
- RANSAC-based Geometry Estimation (or Verification)
- Fundamental Matrix (for 3D scenes)
- Point to Line (weak, general)
- Homography (for 2D scenes)
- Point to Point (strong, narrow range)
Robust Feature Matching and Fast GMS Solution 6/14/2017 10/57
Recent Robust Matchers
Robust Feature Matching and Fast GMS Solution 6/14/2017 11/57
Recent Robust Matchers
- CODE[1]
- For wide-baseline matching.
- RepMatch[2]
- Based on CODE[1].
- Solve the repeated structure problem.
[1] CODE: Coherence Based Decision Boundaries for Feature Correspondence, IEEE TPAMI,2016, Lin et. al. [2] RepMatch: Robust Feature Matching and Pose for Reconstructing Modern Cities, ECCV, 2016,, Lin et. al.
Robust Feature Matching and Fast GMS Solution 6/14/2017 12/57
Recent Robust Matchers (CODE)
- Wide-baseline matching
Robust Feature Matching and Fast GMS Solution 6/14/2017 13/57
Recent Robust Matchers (CODE)
- Idea
Robust Feature Matching and Fast GMS Solution 6/14/2017 14/57
Recent Robust Matchers (CODE)
- Regression models
- Likelihood Regression
- Affine motion regression -> x
- Affine motion regression -> y
Robust Feature Matching and Fast GMS Solution 6/14/2017 15/57
Recent Robust Matchers (CODE)
- Likelihood Regression
- Train Data
- Selected distinctive correspondences(after ratio-test).
- Test Data
- All feature correspondences.
- Features of a correspondence
- 𝑌𝑗 = [𝑦, 𝑧, 𝑒𝑦, 𝑒𝑧, 𝑈1, 𝑈2, 𝑈3, 𝑈4].
- T is a transformation matrix of [s1, r1] to [s2, r2].
- s means scale, r represents rotation.
- Labels
- 1 for all correspondences
- Cost function
- Huber function
- Non-linear Optimization
- Construct Gaussian Similar Matrix
- X(Matrix with n x n elements), Y(Matrix with nx1 elements(1) )
- n is the number of train data
Robust Feature Matching and Fast GMS Solution 6/14/2017 16/57
Recent Robust Matchers (CODE)
- Affine motion regression
- Train Data
- The inliers of train data in the likelihood model
- Test Data
- Correspondences filtered by the likelihood model
- Feature Space
- Same as the likelihood model
- Label
- X2, and y2.(x,y represents pixel position, 2 means the second image)
- Cost function
- Huber function
- Non-linear Optimization
- Same as before(Gaussian Similar Matrix).
Robust Feature Matching and Fast GMS Solution 6/14/2017 17/57
Recent Robust Matchers (CODE)
- Insight (likelihood model)
Robust Feature Matching and Fast GMS Solution 6/14/2017 18/57
Recent Robust Matchers (CODE)
- Matching samples
Robust Feature Matching and Fast GMS Solution 6/14/2017 19/57
Recent Robust Matchers (CODE)
- Structure from Motion
- C. Wu, “VisualSfM: A visual structure from motion system,” 2011[Online]. Available: http://ccwu.me/vsfm/
Robust Feature Matching and Fast GMS Solution 6/14/2017 20/57
Recent Robust Matchers (CODE)
- Run time comparison
Robust Feature Matching and Fast GMS Solution 6/14/2017 21/57
Recent Robust Matchers (RepMatch)
- RepMatch
Robust Feature Matching and Fast GMS Solution 6/14/2017 22/57
Recent Robust Matchers (RepMatch)
- Repetitive Structure
Robust Feature Matching and Fast GMS Solution 6/14/2017 23/57
Recent Robust Matchers (RepMatch)
- Idea
Robust Feature Matching and Fast GMS Solution 6/14/2017 24/57
Recent Robust Matchers (RepMatch)
- Structure from Motion
Robust Feature Matching and Fast GMS Solution 6/14/2017 25/57
Recent Robust Matchers (RepMatch)
- Structure from Motion
Robust Feature Matching and Fast GMS Solution 6/14/2017 26/57
Recent Robust Matchers (RepMatch)
- Structure from Motion
Robust Feature Matching and Fast GMS Solution 6/14/2017 27/57
Recent Robust Matchers (RepMatch)
- Structure from Motion
Robust Feature Matching and Fast GMS Solution 6/14/2017 28/57
Fast and Robust GMS Solution
Robust Feature Matching and Fast GMS Solution 6/14/2017 29/57
Video Demo
- ORB with GMS vs SIFT with Ratio
Robust Feature Matching and Fast GMS Solution 6/14/2017 30/57
Motivation: Trade-off of quality and speed
- Trade-off
Matching Nearest-Neighbor Optimization Graph Matching Ratio test Current Methods GMS
Popular, Fast, Non-Robust Slow, Robust Fast, Robust
Robust Feature Matching and Fast GMS Solution 6/14/2017 31/57
Methodology: Motion Smoothness
- Observation
- True matches(green) are visually smooth while false
matches(cyan) are not.
Robust Feature Matching and Fast GMS Solution 6/14/2017 32/57
Methodology: Key idea
- Inference
- According to the Bayesian rule, as true matches are smooth in
motion space, consistent matches are thus more likely to be true.
- Key idea
- Find smooth matches from noisy data as our proposals.
- Method
Motion Statistics Grid Framework Motion Kernels
Robust Feature Matching and Fast GMS Solution 6/14/2017 33/57
Methodology: Motion Statistics
- Motion Statistics Model
Robust Feature Matching and Fast GMS Solution 6/14/2017 34/57
Methodology: Motion Statistics
- Distribution
- Let 𝑔𝑏 be one of the n supporting features in region 𝑏
- Let 𝑞𝑢 , 𝑞𝑔 be the probability that, feature fa’s nearest
neighbor is in region 𝑐, given {𝑏, 𝑐} view the same and different location, respectively,
Robust Feature Matching and Fast GMS Solution 6/14/2017 35/57
Methodology: Motion Statistics
- Event
- Assumption
Here, 𝑛 is the number of features in region 𝑐 and 𝑁 is the number
- f features in second image. 𝛾 is a factor added to accommodate
violations of assumption caused by repeated patterns.
Robust Feature Matching and Fast GMS Solution 6/14/2017 36/57
Methodology: Motion Statistics
- Probability
Explanation: If {𝑏 𝑐} view the different location, event
𝑔
𝑏 𝑐 occurs only when 𝑔𝑏 matches wrongly and coincidentally
lands in region 𝑐. Explanation: If {𝑏 𝑐} view the same location, event 𝑔
𝑏 𝑐 occurs
when 𝑔𝑏 matches correctly or it matches wrongly but coincidentally lands in region 𝑐.
Robust Feature Matching and Fast GMS Solution 6/14/2017 37/57
Methodology: Motion Statistics
- Multi-region Generalization
Robust Feature Matching and Fast GMS Solution 6/14/2017 38/57
Methodology: Motion Statistics
- Distribution
- Mean & Variance
Robust Feature Matching and Fast GMS Solution 6/14/2017 39/57
Methodology: Motion Statistics
- Analysis
- Partionability
- Quantity-Quality equivalence:
- Relationship to Descriptors:
Robust Feature Matching and Fast GMS Solution 6/14/2017 40/57
Methodology: Motion Statistics
- Experiments on real data:
The model is evaluated on Oxford Affine Dataset. Here, we run SIFT matching and label all matches as inlier or outlier according to the ground truth. we count the supporting score for each match in a small region.
Robust Feature Matching and Fast GMS Solution 6/14/2017 41/57
Algorithm: Grid Framework
- Grid Framework
- Both images are segmented by a pre-defined grid.
- Calculating the Motion Statistics for cell-pairs instead of each
feature correspondence. O(N) O(1)!
Robust Feature Matching and Fast GMS Solution 6/14/2017 42/57
Algorithm: Motion Kernels
- Basic Motion Kernel
Robust Feature Matching and Fast GMS Solution 6/14/2017 43/57
Algorithm: Motion Kernels
- Generalized Motion Kernels (Extension*)
- Rotation
- Scale
- Varying the cell size of the second image by a scale factor.
Robust Feature Matching and Fast GMS Solution 6/14/2017 44/57
Algorithm: Empirical parameters
- How many grid-cells should be used?
- Too fine: weak statistics and low efficiency.
- Too coarse: low accuracy
- The empirical results show 20 x 20 is a good choice.
- How to set the threshold?
Robust Feature Matching and Fast GMS Solution 6/14/2017 45/57
Algorithm: GMS
- Grid Motion Statistics Algorithm
Robust Feature Matching and Fast GMS Solution 6/14/2017 46/57
Algorithm: Full Feature Matching
- Full feature matching pipeline
Robust Feature Matching and Fast GMS Solution 6/14/2017 47/57
Algorithm: Run time
- Run time on Image pairs
- ORB feature extraction(about 35ms on cpu)
- Nearest Neighbor Matching(106ms on cpu, 25ms on gpu)
- GMS(1ms on cpu)
- Overall : 1000 / (2 * 35 + 25 + 1) = 10.42fps
- Real time on Video data
- ORB and NN can run parallelly on video sequence.
- Overall : 1000 / 35 = 28.57fps
Robust Feature Matching and Fast GMS Solution 6/14/2017 48/57
Evaluation
- Dataset
- Capture of TUM dataset
Robust Feature Matching and Fast GMS Solution 6/14/2017 49/57
Evaluation
- Capture of Strecha dataset
- Capture of VGG dataset
Robust Feature Matching and Fast GMS Solution 6/14/2017 50/57
Evaluation
- Matching ability
Robust Feature Matching and Fast GMS Solution 6/14/2017 51/57
Evaluation
- Pose Estimation
Robust Feature Matching and Fast GMS Solution 6/14/2017 52/57
Evaluation
- Wide-baseline matching
In both graphs raphs, the first row shows initial results and the second row illustrates illustrates the the matches matches after after RANSAC. RANSAC.
Robust Feature Matching and Fast GMS Solution 6/14/2017 53/57
Evaluation
- GMS on Images with Repetitive Structures
Images are selected by [1], where many state-of
- f-art matchers fail and SIFT
fails all.
[1] Epipolar Geometry Estimation for Urban Scenes with Repetitive Structures, IEEE TPAMI, 2014, Kushnir et. al.
Robust Feature Matching and Fast GMS Solution 6/14/2017 54/57
Evaluation
- Non-rigid object
Robust Feature Matching and Fast GMS Solution 6/14/2017 55/57
Evaluation
- Video Demo(screen shot)
Robust Feature Matching and Fast GMS Solution 6/14/2017 56/57
Share
- JiaWang’s Home Page
- http://jwbian.net/
- Project Page
- http://jwbian.net/gms/
- Code on GitHub:
- https://github.com/JiawangBian/GMS-Feature-Matcher
- Videos on YouTube:
- https://youtu.be/3SlBqspLbxI
- Links to CODE and RepMatch
- http://www.kind-of-works.com/
Robust Feature Matching and Fast GMS Solution 6/14/2017 57/57