Lecture 2
Lecture 2
(unless otherwise stated slides taken or adapted from David Lowe, Bob Woodham, Jim Little, Fred Tung and Leon Sigal )
1
Menu for Today (January 12, 2022)
Topics:
Readings:
Reminders:
“Tried taking a picture of a sink draining, wound up with a picture of an eye instead”
Photo credit: reddit user Liammm
5
Surprising faces!
Photo credit: camaro5.com
6
Lecture 1: Re-cap
7
Lecture 1: Re-cap
8
Related Disciplines
Artificial Intelligence (AI)
Robotics
Computer Vision
Machine Human
Learning Scope of CPSC 425 Computer
Interaction
Image Processing
Graphics Geometric Reasoning
Recognition Medical
Imaging
Computational
Photography Neuroscience
Optics
Images Model
Vision
Graphics
11
12
Wired’s 100 Most Influential People in the World
13
14
CVPR Attendance
15
Lecture 2: Goal
16
What is Computer Vision?
Compute vision, broadly speaking, is a research field aimed to enable computers to
process and interpret visual data, as sighted humans can.
17
Overview: Image Formation, Cameras and Lenses
Sensor (or eye) captures the amount of light reflected from the object
18
(small) Graphics Review
source
normal sensor
surface
element
19
(small) Graphics Review
Surface reflection depends on both the viewing and illumination
direction, with Bidirectional Reflection Distribution Function:
source
normal sensor
Lambertian surface:
surface
element
source
normal sensor
Lambertian surface:
surface
element
source
normal sensor
Lambertian surface:
surface
element
digital sensor
(CCD or
CMOS)
digital sensor
real-world
(CCD or
object
CMOS)
digital sensor
real-world
(CCD or
object
CMOS)
digital sensor
real-world
(CCD or
object
CMOS)
digital sensor
real-world
(CCD or
object
CMOS)
digital sensor
real-world
(CCD or
object
CMOS)
barrier (diaphragm)
pinhole
(aperture)
digital sensor
real-world
(CCD or
object
CMOS)
digital sensor
real-world
(CCD or
object
CMOS)
one makes it
through
digital sensor
real-world
(CCD or
object
CMOS)
Credit: TuftsNow
Accidental Pinhole Camera
The pin hole camera is not just an abstraction, these are images of
“accidental” room-sized pinhole cameras that resulted from having blinds
with small holes in them.
Note: In a pinhole camera we can adjust the focal length, all this will do is change the size of the resulting image
Pinhole Camera (Simplified)
It is convenient to think of the image plane which is in from of the pinhole
What happens if object moves towards the camera? Away from the camera?
48
Perspective Effects
Far objects appear smaller than close ones
53
Vanishing Points
Each set of parallel lines meet at a different point
— the point is called vanishing point
Sets of parallel lines one the same plane lead to collinear vanishing points
— the line is called a horizon for that plane
54
Vanishing Points
Sets of parallel lines one the same plane lead to collinear vanishing points
— the line is called a horizon for that plane
57
Vanishing Points
Vanishing Vanishing
point point
62
Properties of Projection
Degenerate cases
— Line through focal point (pinhole or aperture) projects to a point
— Plane through focal point projects to a line
63
Projection Illusion
64
Perspective Projection
3D object point
Forsyth & Ponce (1st ed.) Figure 1.4
Note: this assumes world coordinate frame at the optical center (pinhole) and aligned with the image plane,
image coordinate frame aligned with the camera coordinate frame
67
Perspective Projection: Proof
3D object point
Forsyth & Ponce (1st ed.) Figure 1.4
Note: this assumes world coordinate frame at the optical center (pinhole) and aligned with the image plane,
image coordinate frame aligned with the camera coordinate frame
68
Aside: Camera Matrix
Camera Matrix
3D object point
Forsyth & Ponce (1st ed.) Figure 1.4
Note: this assumes world coordinate frame at the optical center (pinhole) and aligned with the image plane,
image coordinate frame aligned with the camera coordinate frame
Aside: Camera Matrix
Camera Matrix
71
Aside: Camera Matrix
Camera Matrix
72
Aside: Camera Matrix
Camera Matrix
73
Aside: Camera Matrix
Camera Matrix
74
Aside: Camera Matrix
Camera Matrix
75
Aside: Camera Matrix
Camera Matrix
78
Aside: Camera Matrix
Camera Matrix
79
Perspective Projection
3D object point
Forsyth & Ponce (1st ed.) Figure 1.4
Note: this assumes world coordinate frame at the optical center (pinhole) and aligned with the image plane, image coord
Weak Perspective
where and
81
Orthographic Projection
where
82
Summary of Projection Equations
3D object point projects to 2D image point where
Perspective
Weak Perspective
Orthographic
83
Projection Models: Pros and Cons
84
Reminders
Readings:
Reminders:
85