EECE 5639 Computer Vision I: Hough Transform, Model Fitting, Planar Unwarping Hw3 Has Been Posted
EECE 5639 Computer Vision I: Hough Transform, Model Fitting, Planar Unwarping Hw3 Has Been Posted
Lecture 1
Hough Transform, Model Fitting, Planar Unwarpin
Hw3 has been poste
Next Clas
Planar Unwarping
1
s
The H.T. can be used even if the curve has not a simple analytic form!
yc = yi + risin(αi)
φ1 (r11,α11),(r12,α12),…,(r1n1,α1n1)
φj φ2 (r21,α21),(r22,α12),…,(r2n2,α1n2)
αj
rj . .
. .
(xc,yc) φi .
ri αi .
Pi φm (rm1,αm1),(rm2,αm2),…,(rmnm,αmnm)
xc = xi + ricos(αi)
yc = yi + risin(αi)
H.T. table
3
H.T. Summary
H.T. is a “voting” scheme
points vote for a set of parameters describing a line or curve
The more votes for a particular se
the more evidence that the corresponding curve is present in
the image
Can detect MULTIPLE curves in one shot
Computational cost increases with the number of parameters
describing the curve.
5
.
Segmentation by
Fitting
Fitting Lines
Using Least Squares Fitting Error:
7
Line tting can be max.
likelihood - but choice of
model is important
8
fi
Fitting Lines
Eigenvalue
Problem!
10
?
fi
s
11
Slide by D.A. Forsyth
12
Inliers-Outliers
13
fi
fi
Problems with Outliers
Least square estimation is very sensitive to outliers! :
Few outliers can GREATLY skew the result.
14
15
16
17
18
Outliers are not the only problem
Multiple structures can also skew results
The tting procedure implicitly assumes ONE instance
19
fi
.
Robustness
As we have seen, squared error can be a source of bias in the
presence of noise point
One x is EM - we’ll not do this in this clas
Another is an M-estimato
Square nearby, threshold far awa
A third is RANSA
Search for good points
20
fi
C
Robust Estimation
Two steps
Classify data into INLIERS and OUTLIER
Use only INLIERS to t the mode
21
:
fi
l
Parameter
Controlling
Error in uence
Residual error a
xi Set of parameters
Being tted
22
fi
fl
23
Issues:
24
25
Too large sigma
26
Good sigma value:
27
RANSAC
RANdom SAmple Consensus
RANSAC procedure (line example)
29
RANSAC procedure (line example)
30
RANSAC procedure (line example)
31
RANSAC procedure (line example)
32
RANSAC procedure (line example)
33
RANSAC procedure (line example)
34
RANSAC procedure (line example)
35
RANSAC procedure (line example)
36
RANSAC procedure (line example)
37
RANSAC procedure (line example)
38
RANSAC
Choose a small subset uniformly at rando
Fit to tha
Anything that is close to result is signal; all others are nois
Re
Do this many times and choose the best
39
fi
t
ISSUES
40
42
43
44
46
48
Line example
12 pts: n = 12
Sample size: s = 2
Outliers 2: e=1/6 -> 20%
N = 5 gives 99% chance of getting a good sample
(trying every possible pair requires 66 trials!)
49
50
After RANSAC
51
52
fi
d
Planar Unwarping
Thanks: Several of these slides are from Bob Collins
Remove Perspective Distortion
54
Review : Forward Projection
U X Mint u
V Y v
W Z
U u
M
V m11 m12 m13 m14 v
W m21 m22 m23 m24
m31 m31 m33 m34
55
Recall
from R.Szeliski
10/15/10 56
Summary of 2D Transformations
from R.Szeliski
57
Projection of Points on Planar Surface
Perspective
projection
y
Film coordinates
x
Point
on plane
Rotation +
Translation
58
Projection of Planar Points
59
Projection of Planar Points (cont)
Homography H
(planar projective
transformation)
60
Special Case : Frontal Plane
What if the planar surface is perpendicular to the optic axis
(Z axis of camera coord system)?
Then world rotation matrix simpli es:
61
fi
Frontal Plane
So the homography for a frontal plane simpli es:
Similarity Transformation!
62
fi