Docsity

Camera Parameters - Introduction to Computer Vision - Lecture Slides, Slides of Computer Vision

Toggle sidebar
bg1
1
CSE152, Spr 2012 Intro Computer Vision
Image Formation
and Cameras
Introduction to Computer Vision
CSE 152
Lecture 5
CSE152, Spr 2012 Intro Computer Vision
•
 
 
 
CSE152, Spr 2012 Intro Computer Vision
Coordinate Changes: Rigid Transformations
Rotation + Translation
CSE152, Spr 2012 Intro Computer Vision
More about rotations matrices
A rotation matrix R has the following properties:
•  Its inverse is equal to its transpose R
-1
= R
T
or
R
T
R = I
•  Its determinant is equal to 1: det(R)=1.
Or equivalently:
•  Rows (or columns) of R form a right-handed
orthonormal coordinate system.
Even though a rotation matrix is 3x3 with nine numbers, it
only has three degrees of freedom can be parameterized with
three numbers. There are many parameterizations:
•  Roll-Pitch Yaw
•  Euler angles
•  Axis Angle
CSE152, Spr 2012 Intro Computer Vision
Camera parameters
• Issue
– camera may not be at the origin, looking down the
z-axis
• extrinsic parameters (Rigid Transformation)
– one unit in camera coordinates may not be the
same as one unit in world coordinates
• intrinsic parameters - focal length, principal point,
aspect ratio, angle between axes, etc.
€
U
V
W
⎛
⎝
⎜
⎜
⎜
⎞
⎠
⎟
⎟
⎟
=
Transformation
representing
intrinsic parameters
⎛
⎝
⎜
⎜
⎜
⎞
⎠
⎟
⎟
⎟
1000
0100
0010
⎛
⎝
⎜
⎜
⎜
⎞
⎠
⎟
⎟
⎟
Transformation
representing
extrinsic parameters
⎛
⎝
⎜
⎜
⎜
⎞
⎠
⎟
⎟
⎟
X
Y
Z
T
⎛
⎝
⎜
⎜
⎜
⎜
⎞
⎠
⎟
⎟
⎟
⎟
3 x 3 4 x 4
CSE152, Spr 2012 Intro Computer Vision
, estimate the camera matrix which includes the intrinsic
and extrinsic camera parameters
•  See Text book for how to do it.
•  Camera Calibration Toolbox for Matlab (Bouguet)
http://www.vision.caltech.edu/bouguetj/calib_doc/
Camera Calibration
Docsity.com
pf3
pf4
pf5

Partial preview of the text

Download Camera Parameters - Introduction to Computer Vision - Lecture Slides and more Slides Computer Vision in PDF only on Docsity!

CSE152, Spr 2012 Intro Computer Vision

Image Formation

and Cameras

Introduction to Computer Vision

CSE 152

Lecture 5

CSE152, Spr 2012 Intro Computer Vision

CSE152, Spr 2012 Intro Computer Vision

Coordinate Changes: Rigid Transformations Rotation + Translation

CSE152, Spr 2012 Intro Computer Vision

More about rotations matrices

A rotation matrix R has the following properties:

  • Its inverse is equal to its transpose R-1^ = RT^ or RTR = I
  • Its determinant is equal to 1: det(R)=1. Or equivalently:
  • Rows (or columns) of R form a right-handed orthonormal coordinate system. Even though a rotation matrix is 3x3 with nine numbers, it only has three degrees of freedom can be parameterized with three numbers. There are many parameterizations:
  • Roll-Pitch Yaw
  • Euler angles
  • Axis Angle

CSE152, Spr 2012 Intro Computer Vision

Camera parameters

• Issue

– camera may not be at the origin, looking down the

z-axis

  • extrinsic parameters (Rigid Transformation)

– one unit in camera coordinates may not be the

same as one unit in world coordinates

  • intrinsic parameters - focal length, principal point, aspect ratio, angle between axes, etc.

U

V

W

Transformation representing intrinsic parameters

Transformation representing extrinsic parameters

X

Y

Z

T

3 x 3 (^) 4 x 4 CSE152, Spr 2012 Intro Computer Vision

, estimate the camera matrix which includes the intrinsic and extrinsic camera parameters

  • See Text book for how to do it.
  • Camera Calibration Toolbox for Matlab (Bouguet) http://www.vision.caltech.edu/bouguetj/calib_doc/

Camera Calibration

CSE152, Spr 2012 Intro Computer Vision

The reason for lenses

CSE152, Spr 2012 Intro Computer Vision

Pinhole Camera Images with Variable

Aperture

1mm

.35 mm

.07 mm

.6 mm

2 mm

.15 mm

CSE152, Spr 2012 Intro Computer Vision

Thin Lens: Image of Point

F O

P

P’

Z’

f

Z

CSE152, Spr 2012 Intro Computer Vision

Thin Lens: Image Plane

F O

P

P’

Image Plane

Q’

Q

A price: Whereas the image of P is in focus,

the image of Q isn’t.

Circle of Confusion

Depth of field

CSE152, Spr 2012 Intro Computer Vision

Field of View

O

Field of View

Image Plane

f

CSE152, Spr 2012 Intro Computer Vision

Deviations from the lens model

Deviations from this ideal are aberrations Two types

  1. chromatic
  2. geometrical  spherical aberration  astigmatism  distortion  coma

Aberrations are reduced by combining lenses

Compound lenses

Only part of the light reaches the sensor Periphery of the image is dimmer

Vignetting

CSE152, Spr 2012 Intro Computer Vision

Radiometry, Lighting, Intensity

CSE152, Spr 2012 Intro Computer Vision

Lighting

• Special light sources

– Point sources

– Distant point sources

– Strip sources

– Area sources

• Common to think of lighting at infinity (a

function on the sphere, a 2-D space)

• Most generally, applied lighting can be

represented as a function on the 4-D ray

space (radiances)

CSE152, Spr 2012 Intro Computer Vision

Radiance

  • Power traveling at some point in a specified direction, per unit area perpendicular to the direction of travel, per unit solid angle
  • Units: watts per square meter per steradian : w/(m^2 sr^1 )

Irradiance

  • How much light is arriving at a surface?
  • Irradiance -- power per unit area: W/cm^2
  • Total power arriving at the surface is given by adding irradiance over all incoming angles

x

x

dA

θ d ω

(θ, φ)

CSE152, Spr 2012 Intro Computer Vision

Camera’s sensor

  • Measured pixel intensity is a function of irradiance integrated over - pixel’s area - over a range of wavelengths - For some time

CSE152, Spr 2012 Intro Computer Vision

Light at surfaces

Many effects when light strikes a surface -- could be:

  • transmitted
    • Skin, glass
  • reflected
    • mirror
  • scattered
    • milk
  • travel along the surface and leave at some other point
  • absorbed
    • sweaty skin

We generally assume that

• surfaces don’t fluoresce

  • e.g. scorpions, detergents

• surfaces don’t emit light

(i.e. are cool)

• all the light leaving a

point is due to that

arriving at that point

CSE152, Spr 2012 Intro Computer Vision

BRDF

  • Bi-directional Reflectance Distribution Function

ρ(θin, φin ; θout, φout)

  • Function of
    • Incoming light direction:

θin , φin

  • Outgoing light direction:

θout , φout

  • Ratio of incident irradiance to emitted radiance

^n

(θin,φin)

(θout,φout)

CSE152, Spr 2012 Intro Computer Vision

Surface Reflectance Models

• Lambertian

• Phong

• Physics-based

  • Specular [Blinn 1977], [Cook-Torrance 1982], [Ward 1992]
  • Diffuse [Hanrahan, Kreuger 1993]
  • Generalized Lambertian [Oren, Nayar 1995]
  • Thoroughly Pitted Surfaces [Koenderink et al 1999]

• Phenomenological

[Koenderink, Van Doorn 1996]

Common Models Arbitrary Reflectance

  • Non-parametric model
  • Anisotropic
  • Non-uniform over surface
  • BRDF Measurement [Dana et al, 1999], [Marschner ]

CSE152, Spr 2012 Intro Computer Vision

Lambertian Surface

At image location (u,v), the intensity of a pixel x(u,v) is:

  • a(u,v) is the albedo of the surface projecting to (u,v).
  • n (u,v) is the direction of the surface normal.
  • s 0 is the light source intensity.
  • s is the direction to the light source.

^n

^s

a

x(u,v)

^

x ( u , v ) = a ( u , v ) n ˆ( u , v ) • s 0 s ˆ

= b ( u , v ) • s

CSE152, Spr 2012 Intro Computer Vision

Specular Reflection: Smooth Surface

N

Phong – rough, specular

CSE152, Spr 2012 Intro Computer Vision

Rough Specular Surface

Phong Lobe

CSE152, Spr 2012 Intro Computer Vision

7

CSE152, Spr 2012 Intro Computer Vision

color CMOS sensor Foveon’s X

better image quality smarter pixels