Lec4 Imaging Geometry
Lec4 Imaging Geometry
Imaging Geometry:
Imaging Geometry:
(dx,dy,dz)
P1(X1,Y1,Z1)
Z
Translation:
X2 = X1 + dx ===>(i)
Y2 = Y1 + dy ===>(ii)
Z2 = Z1 + dz ===>(iii)
Translation:
Where (X2, Y2, Z2) are new points and can be represented in
Matrix form, as:
X2 1 0 0 dx x1
y2 0 1 0 dy y1
z2 0 0 1 dz z1
V* = T V
where, V* is the new point,
T is the translation matrix,
and V is the original point.
Translation:
Here, the product of Matrices T & V seems Invalid,
As Columns of T = Rows of V
1 0 0 dx
0 1 0 dy
T = 0 0 1 dz Translation Matrix
0 0 0 1
Inverse Translation:
V = T-1
V* X1 1 0 0 -dx x2
y1 0 1 0 -dy y2
z1 0 0 1 -dz z2
1 000 1 1
1 0 0 -dx
T-1 = 0 1 0 -dy Inverse Translation
0 0 1 -dz Matrix
0 0 0 1
T . T-1 = I
Translation:
Original Image Translated Image
Translation:
Translated Image Translated Image
X2 = X1 * sx ===>(i)
Y2 = Y1 * sy ===>(ii)
Z2 = Z1 * sz ===>(iii)
Where (X2, Y2, Z2) are new points and expressed in Matrix form as:
X2 sx 0 0 0 X1
V* = T
Y2 = 0 sy 0 0 Y1
V
Z2 0 0 sz 0 Z1
1 0 0 0 1 1
V = T-1
V* X1 1/Sx 0 0 0 x2
y1 0 1/Sy 0 0 y2
z1 0 0 1/Sz 0
z2 1 0 0 0 1
1
1/Sx 0 0 0
0 1/Sy 0 0 Inverse Translation
T-1
0 0 1/Sz 0 Matrix
0 0 0 1
T . T-1 = I
Rotation :
The transformation used for 3-D rotation is inherently more
complex than the Transformations discussed so far.
Y1
R
θ
φ
0 X2 X
X1
Z
Rotation along Z-axis:
Assume that the Vector (R) is making an angle of φ with X
axis.
X2 = X1 cosθ - Y1 sinθ
Y2 = X1 sinθ + Y1 cosθ
z2= z1
Rotation along Z-axis:
For matrix representation, these equations can be interpreted
as:
X2 = X1 cosθ - Y1 sinθ + 0
Y2 = X1 sinθ + Y1 cosθ + 0
z2 = 0 + 0 + z1
x2 cosθ -sinθ 0 x1
y2 sinθ cosθ 0 y1
z2 0 0 1 z1
V* = RθZ V
Inverse Rotation along Z-axis:
V = (RθZ)-1 V*
x1 cosθ sinθ 0 x2
y1 -sinθ cosθ 0 y2
z1 0 0 1 z2
(RθZ). (RθZ)-1 = I
Rotation along Y-Axis:
Assume that the Vector (R) is making an angle of φ with Z-axis.
X1=R sin φ
Y1=Y1
Z1=R cos φ
R cosφ=x1 ===>(a)
R sinφ=z1 ===>(b)
X2 = X1 cosβ + Z1 sinβ
Y2 = Y1
z2 = Z1 cosβ - X1 sinβ
Rotation along Y-Axis:
For matrix representation, these equations can be interpreted
as:
X2 = X1 cosβ + 0 + Z1 sinβ
Y2 = 0 + Y1 + 0
z2 = -X1 sinβ + 0 + Z1 cosβ
x2 cosβ 0 +sinβ x1
=
y2 0 1 0 y1
z2 -sinβ 0 cosβ z1
V* = R β
Y
V
Inverse Rotation along Y-axis:
x1 cosβ 0 -sinβ x2
y1 0 1 0 y2
z1 sinβ 0 cosβ z2
(R β Y).(R β Y)-1 = I
Rotation along X-Axis:
Assume that the Vector (R) is making an angle of φ with Y-axis.
X1=X1
Y1=R cosφ
Z1=R sinφ
X2= X1
Y2 = R cosφ cos α - R sinφ sinα
Z2 = R sinφ cos α + R cosφ sin α
X2 = X1
Y2 = Y1 cos α - Z1 sinα
z2 = Z1 cos α + Y1 sin α
Rotation along X-Axis:
For matrix representation, these equations can be interpreted
as:
X2 = X1 + 0 + 0
Y2 = 0 + Y1 cos α - Z1 sin α
Z2 = 0 + Y1 sin α + Z1 cos α
x2 1 0 0 x1
=
y2 0 cos α -sin α y1
z2 0 sin α cos α z1
V* = R α
X
V
Inverse Rotation along Y-axis:
x1 1 0 0 x2
y1 0 cosα sinα y2
z1 0 -sinα cosα z2
(R α )
X -1
represents the Inverse Rotation Matrix.
(R α
X
). (R α )
X -1
= I
Inverse Rotation:
The Inverse rotation of an angle, say (θo), around an axis is,
equivalent to the rotation by (–θo) around same axis.
[RθZ]-1 = [R-θZ]
Cosθ sinθ 0 Cosθ sinθ 0
-sinθ cosθ 0 = -sinθ cosθ 0
0 0 1 0 0 1
Original Image
Rotation: