CSE445Computer Vision

2D and 3D Transformations

The rigid, similarity, affine, and projective hierarchy, with composition and inversion.

Key Terms

RigidSimilarityAffineProjectiveCompositionInverse Transform

Python Tools

NumPyOpenCVMatplotlib

Textbook Reference

Szeliski Ch.2Hartley & Zisserman Ch.2

Topics Covered

  1. 1Translation, rotation, scale, and shear as matrices
  2. 2The transformation hierarchy: rigid, similarity, affine, projective, and their invariants
  3. 33D rotation representations and rigid motion
  4. 4Composing transformations across coordinate frames
  5. 5Inverting transformations and interpreting the results geometrically

Learning Outcomes

  • Place a given transformation in the rigid, similarity, affine, or projective class
  • Compose and invert 2D and 3D transformations
  • Identify which geometric properties each transformation class preserves

Lecture Infographics

1 image file

Transformations Interactive Demo

Visualise 2D & 3D coordinate transforms with live matrices

xy

Transformation Matrix

[10tx01ty001]\begin{bmatrix}1 & 0 & t_x \\ 0 & 1 & t_y \\ 0 & 0 & 1\end{bmatrix}
Original
Transformed

Translation — Adds (tx, ty) to every point — pure displacement, no distortion. 2 DOF.

Object Transformation Walkthrough

A house shape with labeled vertices — watch coordinates update live as each point transforms

xyABCDE

Formula

x′=x+txx' = x + t_x
y′=y+ty(tx=48, ty=22)y' = y + t_y \quad (t_x = 48,\ t_y = 22)

Live Coordinates

Ptxy→x′y′
A0.0-52.0→0.0-52.0
B-40.0-8.0→-40.0-8.0
C40.0-8.0→40.0-8.0
D40.044.0→40.044.0
E-40.044.0→-40.044.0
Original position
Transformed position

Translate — Every vertex shifts by the same vector (tx, ty). The shape, size, and orientation are all preserved — pure displacement, 2 DOF.

Lecture PDFs

2D and 3D Transformations

The embedded PDF preview is disabled to reduce Vercel bandwidth usage. Open the lecture file directly in Google Drive for viewing, downloading, or presenting.