CS131: Computer Vision: Foundations and Applications
Juan Carlos Niebles, Adrien Gaidon, Silvio Savarese
April 13, 2026
Lecture 7�Single View Metrology�
Silvio Savarese & Jeanette Bohg
Lecture 4 -
17-Apr-26
Lecture 7�Single View Metrology�
Silvio Savarese & Jeanette Bohg
Lecture 4 -
Calibration Problem
In pixels
World ref. system
Need at least 6 correspondences
11 unknowns
jC
Calibration rig
pi
pi
image
Pinhole perspective projection
Once the camera is calibrated...
C
Ow
P
p
Can I estimate P from the measurement p from a single image?
No - in general ☹ (P can be anywhere along the line defined by C and p)
Line of sight
http://www.robots.ox.ac.uk/~vgg/projects/SingleView/models/hut/hutme.wrl
Recovering structure from a single view
Transformation in 2D
Transformation in 2D
Isometries:
of rigid object
[Euclideans]
[Eq. 4]
Transformation in 2D
Similarities:
[Eq. 5]
Transformation in 2D
Affinities:
[Eq. 6]
[Eq. 7]
Transformation in 2D
Affinities:
collinear lines
- others…
[Eq. 6]
[Eq. 7]
Transformation in 2D
Affinities:
[Eq. 6]
[Eq. 7]
A = UDVT = UVT VDVT = (UVT) (V )(D) (VT)
Transformation in 2D
Homographies
(Projectivities)
[Eq. 8]
17-Apr-26
Lecture 4�Single View Metrology�
Silvio Savarese & Jeanette Bohg
Lecture 4 -
Lines in a 2D plane
-c/b
-a/b
If x = [ x1, x2]T ∈ l
x
y
[Eq. 10]
Lines in a 2D plane
Intersecting lines
Proof
x
→ x is the intersection point
x
y
x
[Eq. 12]
[Eq. 13]
[Eq. 11]
2D Points at infinity (ideal points)
Let’s intersect two parallel lines:
[Eq.13]
= ideal point!
2D Points at infinity (ideal points)
Note: the line l = [a b c]T pass trough the ideal point
So does the line l’ since a b’ = a’ b
[Eq. 15]
= [b –a 0]T
Lines infinity
Set of ideal points lies on a line called the line at infinity.
How does it look like?
Indeed:
A line at infinity can be thought of the set of “directions” of lines in the plane
Projective transformation of a point at infinity
is it a point at infinity?
…no!
An affine transformation of a point
at infinity is still a point at infinity
[Eq. 17]
[Eq. 18]
Projective transformation of a line (in 2D)
is it a line at infinity?
…no!
[Eq. 19]
[Eq. 20]
[Eq. 21]
Transformation in 2D
Affinities:
[Eq. 6]
Points and planes in 3D
x
y
z
[Eq. 23]
[Eq. 22]
Lines in 3D
d = direction of the line
= [a, b, c]T
Points at infinity in 3D
Points where parallel lines intersect in 3D
world
Parallel lines
point at infinity
Vanishing points
The projective projection of a point at infinity into the image plane defines a vanishing point.
M
world
Parallel lines
point at infinity
= direction of a pair of parallel lines in 3D
d = direction of the line
= [a, b, c]T
d
C
v
M
[Eq. 24]
[Eq. 25]
Proof:
Vanishing points and directions
Vanishing (horizon) line
horizon
Projective transformation M
Image
π
[Eq. 26]
Example of horizon line
The orange line is the horizon!
Are these two lines parallel or not?
- Recognize the horizon line
Vanishing points and planes
C
n
…
π
[Eq. 27]
Angle between 2 vanishing points
C
d1
v2
v1
d2
If
[Eq. 28]
x1∞
x2∞
[Eq. 29]
Scalar equation
[Eq. 30]
Properties of
symmetric and known up scale
zero-skew
square pixel
1.
2.
3.
[Eq. 30]
Summary
[Eq. 24]
[Eq. 27]
[Eq. 28]
[Eq. 29]
Useful to:
[Eq. 30]
17-Apr-26
Lecture 4�Single View Metrology�
Silvio Savarese & Jeanette Bohg
Lecture 4 -
v1
Do we have enough constraints to estimate K?
K has 5 degrees of freedom and Eq.29 is a scalar equation ☹
Single view calibration - example
[Eq. 28]
[Eq. 29]
v2
v1
Single view calibration - example
[Eq. 28]
v3
[Eqs. 31]
v2
Single view calibration - example
[Eqs. 31]
v1
v2
v3
🡪
known up to scale
Single view calibration - example
🡪 Compute !
[Eqs. 31]
v1
v2
v3
🡪
known up to scale
Single view calibration - example
(Cholesky factorization)
Once ω is calculated, we get K:
[Eqs. 31]
v1
v2
v3
🡪
Single view reconstruction - example
lh
known
= Scene plane orientation in
the camera reference system
Select orientation discontinuities
[Eq. 27]
Single view reconstruction - example
Recover the structure within the camera reference system
Notice: the actual scale of the scene is NOT recovered
C
17-Apr-26
Lecture 4�Single View Metrology�
Silvio Savarese & Jeanette Bohg
Lecture 4 -
Criminisi & Zisserman, 99
http://www.robots.ox.ac.uk/~vgg/projects/SingleView/models/merton/merton.wrl
Criminisi & Zisserman, 99
http://www.robots.ox.ac.uk/~vgg/projects/SingleView/models/merton/merton.wrl
La Trinita' (1426) Firenze, Santa Maria Novella; by Masaccio (1401-1428)
La Trinita' (1426) Firenze, Santa Maria Novella; by Masaccio (1401-1428)
http://www.robots.ox.ac.uk/~vgg/projects/SingleView/models/hut/hutme.wrl
Manually select:
Single view reconstruction - drawbacks
Automatic Photo Pop-up
Hoiem et al, 05
Automatic Photo Pop-up
Hoiem et al, 05…
Automatic Photo Pop-up
Hoiem et al, 05…
http://www.cs.uiuc.edu/homes/dhoiem/projects/software.html
Software:
Training
Image
Depth
Prediction
Planar Surface
Segmentation
Plane Parameter MRF
Connectivity
Co-Planarity
Make3D
Saxena, Sun, Ng, 05…
A software: Make3D
“Convert your image into 3d model”
Make3D
Saxena, Sun, Ng, 05…
http://make3d.stanford.edu/
http://make3d.cs.cornell.edu/
Depth map reconstruction using deep learning
Depth Map Prediction from a Single Image using a Multi-Scale Deep Network,
Eigen, D., Puhrsch, C. and Fergus, R. Proc. Neural Information Processing Systems 2014,
Eigen et al., 2014
3D Layout estimation
55
Dasgupta, et al. CVPR 2016
Hoiem et al, 2006
Oliva & Torralba, 2007
Rabinovich et al, 2007
Li & Fei-Fei, 2007
Vogel & Schiele, 2007
Herdau et al., 2009
Gupta et al, 2010
Sadeghi & Farhardi, 2011
Li et al, 2012
Fouhey et al, 2012
Desai et al, 2009
Gould et al., 2009
3D Layout estimation
Coherent object detection and scene layout estimation from a single image
Bao, et al., CVPR 2010, BMVC 2010
Y. Bao
M. Sun
Next lecture:
Multi-view geometry (epipolar geometry)
Appendix
Vanishing points - example
C2
v2
C1
v1
R,T
star
v1, v2: measurements
K = known and constant
Can I compute R?
No rotation around z
In 2D
d
v1
v2