1 of 61

CS131: Computer Vision: Foundations and Applications

Juan Carlos Niebles, Adrien Gaidon, Silvio Savarese

April 13, 2026

Lecture 7Single View Metrology

Silvio Savarese & Jeanette Bohg

Lecture 4 -

2 of 61

17-Apr-26

  • Review calibration and 2D transformations
  • Vanishing points and lines
  • Estimating geometry from a single image
  • Extensions

Lecture 7Single View Metrology�

Silvio Savarese & Jeanette Bohg

Lecture 4 -

3 of 61

Calibration Problem

In pixels

World ref. system

Need at least 6 correspondences

11 unknowns

jC

Calibration rig

pi

pi

image

4 of 61

Pinhole perspective projection

Once the camera is calibrated...

C

Ow

  • Internal parameters K are known
  • R, T are known – but these can only relate C to the calibration rig

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

5 of 61

http://www.robots.ox.ac.uk/~vgg/projects/SingleView/models/hut/hutme.wrl

Recovering structure from a single view

6 of 61

Transformation in 2D

  • Isometries

  • Similarities

  • Affinity

  • Homographic /Projective

7 of 61

Transformation in 2D

Isometries:

  • Preserve distance (areas)
  • 3 DOF
  • Regulate motion

of rigid object

[Euclideans]

[Eq. 4]

8 of 61

Transformation in 2D

Similarities:

  • Preserve
    • ratio of lengths
    • angles
  • 4 DOF

[Eq. 5]

9 of 61

Transformation in 2D

Affinities:

[Eq. 6]

[Eq. 7]

10 of 61

Transformation in 2D

Affinities:

  • Preserve:
    • Parallel lines
    • Ratio of areas
    • Ratio of lengths on

collinear lines

- others…

  • 6 DOF

[Eq. 6]

[Eq. 7]

11 of 61

Transformation in 2D

Affinities:

[Eq. 6]

[Eq. 7]

A = UDVT = UVT VDVT = (UVT) (V )(D) (VT)

12 of 61

Transformation in 2D

Homographies

(Projectivities)

  • 8 DOF
  • Preserve:
    • collinearity
    • and a few others…

[Eq. 8]

13 of 61

17-Apr-26

  • Review calibration and 2D transformations
  • Vanishing points and lines
  • Estimating geometry from a single image
  • Extensions

Lecture 4Single View Metrology�

Silvio Savarese & Jeanette Bohg

Lecture 4 -

14 of 61

Lines in a 2D plane

-c/b

-a/b

If x = [ x1, x2]T ∈ l

x

y

[Eq. 10]

15 of 61

Lines in a 2D plane

Intersecting lines

Proof

x

→ x is the intersection point

x

y

x

[Eq. 12]

[Eq. 13]

[Eq. 11]

16 of 61

2D Points at infinity (ideal points)

Let’s intersect two parallel lines:

  • In Euclidian coordinates this point is at infinity
  • Agree with the general idea of two lines intersecting at infinity

[Eq.13]

= ideal point!

17 of 61

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

18 of 61

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

19 of 61

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]

20 of 61

Projective transformation of a line (in 2D)

is it a line at infinity?

…no!

[Eq. 19]

[Eq. 20]

[Eq. 21]

21 of 61

Transformation in 2D

Affinities:

  • Preserve:
    • Parallel lines
    • Points at infinity
    • Lines at infinity

[Eq. 6]

22 of 61

Points and planes in 3D

x

y

z

[Eq. 23]

[Eq. 22]

23 of 61

  • Lines have 4 degrees of freedom - hard to represent in 3D-space

  • Can be defined as intersection of 2 planes

Lines in 3D

d = direction of the line

= [a, b, c]T

24 of 61

Points at infinity in 3D

Points where parallel lines intersect in 3D

world

Parallel lines

point at infinity

25 of 61

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

26 of 61

d = direction of the line

= [a, b, c]T

d

C

v

M

[Eq. 24]

[Eq. 25]

Proof:

Vanishing points and directions

27 of 61

Vanishing (horizon) line

horizon

Projective transformation M

Image

π

[Eq. 26]

28 of 61

Example of horizon line

The orange line is the horizon!

29 of 61

Are these two lines parallel or not?

- Recognize the horizon line

  • Measure if the 2 lines meet at the horizon
  • if yes, these 2 lines are // in 3D
  • Recognition helps reconstruction!
  • Humans have learnt this

30 of 61

Vanishing points and planes

C

n

π

[Eq. 27]

31 of 61

Angle between 2 vanishing points

C

d1

v2

v1

d2

If

[Eq. 28]

x1∞

x2∞

[Eq. 29]

Scalar equation

[Eq. 30]

32 of 61

Properties of

symmetric and known up scale

zero-skew

square pixel

1.

2.

3.

[Eq. 30]

33 of 61

Summary

[Eq. 24]

[Eq. 27]

[Eq. 28]

[Eq. 29]

  • To calibrate the camera
  • To estimate the geometry of the 3D world

Useful to:

[Eq. 30]

34 of 61

17-Apr-26

  • Review calibration
  • Vanishing points and line
  • Estimating geometry from a single image
  • Extensions

Lecture 4Single View Metrology�

Silvio Savarese & Jeanette Bohg

Lecture 4 -

35 of 61

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

36 of 61

v1

Single view calibration - example

[Eq. 28]

v3

[Eqs. 31]

v2

37 of 61

Single view calibration - example

[Eqs. 31]

v1

v2

v3

  • Square pixels
  • No skew

🡪

known up to scale

38 of 61

Single view calibration - example

🡪 Compute !

[Eqs. 31]

v1

v2

v3

  • Square pixels
  • No skew

🡪

known up to scale

39 of 61

Single view calibration - example

(Cholesky factorization)

Once ω is calculated, we get K:

[Eqs. 31]

v1

v2

v3

  • Square pixels
  • No skew

🡪

40 of 61

Single view reconstruction - example

lh

known

= Scene plane orientation in

the camera reference system

Select orientation discontinuities

[Eq. 27]

41 of 61

Single view reconstruction - example

Recover the structure within the camera reference system

Notice: the actual scale of the scene is NOT recovered

C

  • Recognition helps reconstruction!
  • Humans have learnt this

42 of 61

17-Apr-26

  • Review calibration
  • Vanishing points and lines
  • Estimating geometry from a single image
  • Extensions

Lecture 4Single View Metrology�

Silvio Savarese & Jeanette Bohg

Lecture 4 -

43 of 61

Criminisi & Zisserman, 99

http://www.robots.ox.ac.uk/~vgg/projects/SingleView/models/merton/merton.wrl

44 of 61

Criminisi & Zisserman, 99

http://www.robots.ox.ac.uk/~vgg/projects/SingleView/models/merton/merton.wrl

45 of 61

La Trinita' (1426) Firenze, Santa Maria Novella; by Masaccio (1401-1428)

46 of 61

La Trinita' (1426) Firenze, Santa Maria Novella; by Masaccio (1401-1428)

47 of 61

http://www.robots.ox.ac.uk/~vgg/projects/SingleView/models/hut/hutme.wrl

48 of 61

Manually select:

  • Vanishing points and lines;
  • Planar surfaces;
  • Occluding boundaries;
  • Etc..

Single view reconstruction - drawbacks

49 of 61

Automatic Photo Pop-up

Hoiem et al, 05

50 of 61

Automatic Photo Pop-up

Hoiem et al, 05…

51 of 61

Automatic Photo Pop-up

Hoiem et al, 05…

http://www.cs.uiuc.edu/homes/dhoiem/projects/software.html

Software:

52 of 61

Training

Image

Depth

Prediction

Planar Surface

Segmentation

Plane Parameter MRF

Connectivity

Co-Planarity

Make3D

Saxena, Sun, Ng, 05…

53 of 61

A software: Make3D

“Convert your image into 3d model”

Make3D

Saxena, Sun, Ng, 05…

http://make3d.stanford.edu/

http://make3d.cs.cornell.edu/

54 of 61

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

55 of 61

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

56 of 61

3D Layout estimation

57 of 61

Coherent object detection and scene layout estimation from a single image

Bao, et al., CVPR 2010, BMVC 2010

Y. Bao

M. Sun

58 of 61

Next lecture:

Multi-view geometry (epipolar geometry)

59 of 61

Appendix

60 of 61

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

61 of 61

v1

v2