Curve Fitting - PowerPoint PPT Presentation

1 / 33
About This Presentation
Title:

Curve Fitting

Description:

Curve Fitting. Lecture 11. Three main questions: what object (line, circle, ... Refit. Do this many times and choose the best. How many times? ... – PowerPoint PPT presentation

Number of Views:318
Avg rating:3.0/5.0
Slides: 34
Provided by: hit4
Category:
Tags: curve | fitting | refit

less

Transcript and Presenter's Notes

Title: Curve Fitting


1
Curve Fitting
Lecture 11
2
(No Transcript)
3
(No Transcript)
4
(No Transcript)
5
(No Transcript)
6
(No Transcript)
7
(No Transcript)
8
(No Transcript)
9
  • Three main questions
  • what object (line, circle, ellipse,) represents
    this set of points best?
  • how many objects are there?
  • which of several objects gets which point?

What criteria of fitting?
10
Fitting lines
Number of lines 1
Error ? min
11
d
d
d f(x) - y
12
Least Square Error
Maximum Absolute Error
Mean Square Error
Normalized Maximum Error
13
?r²i,j ?min
14
Assume we do not know how many lines there are.
Polyline fitting
  1. Splitting
  2. Merging

15
Polyline splitting
16
Polyline splitting
17
Polyline splitting
dmax
dmax lt Thresh
18
  • Polyline Splitting
  • Input L- list of pixels (edges), Thresh
  • L(x1,y1),(x2,y2),,(xn,yn)
  • Output Polyline
  • Fit a line between the first and last edges in
    the list
  • If the ? gt Thresh, split the list by the point
    of maximum error (xi,yi) L1(x1,y1),(x2,y2),,(
    xi,yi) and L2(xi,yi),(xi1,yi1),,(xn,yn)
  • 2.1 Polyline Splitting(L1,Thresh)
  • 2.2 Polyline Splitting(L2,Thresh)

19
Incremental line fitting (Merging)
20
Incremental line fitting (Merging)
21
Incremental line fitting (Merging)
22
(No Transcript)
23
Hop-Along Polyline fitting (SplitMerge)
24
Hop-Along Polyline fitting (SplitMerge)
  1. Start with the first k edges from the list
  2. Fit a line between the first and the last edges
    in the sublist
  3. If NME gt Thresh , shorten the sublist to the
    point of maximum error. Return to step 2.
  4. If the line fit succeeds, compare the orientation
    of the current line segment with the previous
    line segment. If the lines have similar
    orientation, replace the two line segments with a
    single line.
  5. Make the current line segment the previous line
    segment and advance the window of edges so that
    there are k edges in the sublist. Return to the
    step 2.

25
If the number of lines is known
26
Robustness
A computer vision algorithm is called robust if
it can tolerate outliers (data which does not
obey the assumed model).
Robustness is the ability to extract the visual
information of relevance for a specific task,
even when this information is carried only by a
small subset of the data.
27
LSE criteria
28
LSE criteria
29
Least-median-squares
30
RANSAC
  • Choose a small subset uniformly at random
  • Fit to that
  • Anything that is close to result is signal all
    others are noise
  • Refit
  • Do this many times and choose the best
  • How many times?
  • Often enough that we are likely to have a good
    line
  • How big a subset?
  • Smallest possible
  • What does close mean?
  • Depends on the problem
  • What is a good line?
  • One where the number of nearby points is so big
    it is unlikely to be all outliers

31
(No Transcript)
32
Fitting curves other than lines
Circular arcs
P1(x1,y1),P2(x2,y2),P3(x3,y3)
x x - x1, y y - y1
33
q
d q - r
Write a Comment
User Comments (0)
About PowerShow.com