Presentation is loading. Please wait.

Presentation is loading. Please wait.

CSE 473/573 RANSAC & Least Squares Devansh Arpit.

Similar presentations


Presentation on theme: "CSE 473/573 RANSAC & Least Squares Devansh Arpit."— Presentation transcript:

1 CSE 473/573 RANSAC & Least Squares Devansh Arpit

2 Mathematical Models Compact Understanding of the World Input Prediction Model Playing Golf

3 Mathematical Models - Example Face Recognition with varying expressions Too Easy…

4 Mathematical Models Face Recognition with varying expressions Learn Model Feature Space

5 I. RANSAC Random Sample Consensus Used for Parametric Matching/Model Fitting Applications:

6 Line Fitting Fit the best possible Line to these points Brute Force Search – 2 N possibilities!!! Not Feasible Better Strategy?

7 How RANSAC Works Random Search – Much Faster!!!

8 Line Fitting using RANSAC Iteration 1

9 Line Fitting using RANSAC Iteration 1

10 Line Fitting using RANSAC Iteration 1

11 Line Fitting using RANSAC Iteration 2

12 Line Fitting using RANSAC Iteration 2

13 Line Fitting using RANSAC Iteration 2

14 Line Fitting using RANSAC … Iteration 5

15 Line Fitting using RANSAC Iteration 5

16 Line Fitting using RANSAC Iteration 5

17 Why RANSAC Works? Inliers vs Outliers P(selecting outliers) = 17 C 2 / 27 C 2 + 17 C 1 10 C 1 / 27 C 2 = 0.48

18 Why RANSAC Works? Inliers vs Outliers P(selecting outliers) 17 C 2 / 27 C 2 + 17 C 1 10 C 1 / 27 C 2 = 0.48 After 5 iterations… P(selecting outliers) = (0.48) 5 = 0.026

19 Why RANSAC Works? In general: p = 1 – (1 - w n ) k Where, p = probability for selecting inliers w = ratio of inliers to total #points n = minimum #points required (for line = 2, circle =3) k = #iterations

20 RANSAC Algorithms

21 II. Least Squares Fitting Curves/Learning Data Manifolds Fitting Line Fitting Quadratic Curve Fitting Higher Degree Polynomials Learning Manifolds

22 Line Fitting Goal: Find a line that best explains the observed data Target: y i Data: x i Line parameter: w,b Line Model: y i = w x i + b Fitting Line

23 Line Fitting Line Model: y i = w x i + b Too many samples! Minimize error: min. ∑(y i - w x i + b) 2 Fitting Line w,b i=1 N

24 #Samples(m) vs #Model-Parameters(n) Case 1 (m=n): Unique Solution w=X\y No least square requires

25 #Samples(m) vs #Model-Parameters(n) Case 2 (m>n): Over-determined system of equations No Solution exists! Hence, we minimize error (fitting)

26 #Samples(m) vs #Model-Parameters(n) Case 3 (m<n): Under-determined system of equations Infinite Solutions exist! Which one to choose?


Download ppt "CSE 473/573 RANSAC & Least Squares Devansh Arpit."

Similar presentations


Ads by Google