Imaging Geometry
Imaging Geometry
Imaging Geometry
and
Imaging Geometry
What is a Digital Image?
• A 2D function f(x,y)
• Spatial(plane) coordinates x,y
• Amplitude of f at any coordinate is the intensity or
gray level
• A digital image is composed of finite number of
elements each of which has a particular location and
value.
• Picture elements - Pixels
Matrix representation of an MxN image
An image of size M x N pixels
ie., M rows, N columns
1-D function representation
y
* y=f(x)
x
2-D Function Representation
2
2 3 2
2
Imaging Geometry
2D coordinates (x,y)
Translation
Translation
The task:
(X0,Y0,Z0)
(X,Y,Z) (X*,Y*,Z*)
X* = X+ X0
y* = y+ y0
Z* = Z+ Z0
v* = Av
A - Transformation matrix
v – column vector with original coordinates
Translation
Use of square matrix simplifies the representation
v* = Tv
T - Translation matrix
v – column vector with original coordinates
Scaling
Scaling
Assumption:
• Camera coordinate system is
aligned with world coordinate system
• Z > λ always.
The image plane coordinates (x,y) of the projected 3D
point at (X,Y,Z)
Non-linear because of the division by coordinate Z
Homogeneous coordinates
Cartesian coordinates Homogeneous coordinates
• Cartesian coordinates
Difficulty in Inverse perspective
transformation
• For any 3D point, Z=0.
• This is because the projection of a 3D point onto the image plane is a
many-to-one transformation.
• The image point (x0,y0)
corresponds to a set of collinear
3D points that lie on the line passing
through (x0,y0,0) and (0,0,λ).
Recovering 3D coordinates
• The equations of the line mentioned above in world coordinate system