# Affine Transformation

An affine transformation is a linear function with an offset, i.e.

$f(p )=[R_{θ}]p +b$

Also called an orthogonal projection.

ChatGPT taught me this, while I was trying to understand how to turn an image from pixel space to meter space, when I was working on F1TENTH for the map converter.

Also saw this at work at Enlighted.

### Matrix Form

The matrix form of the affine transformation is as follows:

\begin{equation} \mathbf{T}_A = \left[ {\begin{array}{*{20}{c}} \mathbf{A} & \mathbf{t}\\ {{\mathbf{0}^T}} & 1 \end{array}} \right] \end{equation}Unlike the Euclidean Transformation, the affine transformation requires only $A$ to be an invertible matrix, not necessarily an orthogonal matrix. After the affine transformation, the cube is no longer square, but the faces are still parallelograms.

In Eigen

Affine transformation combines linear transformations with a translation component. There are

### ChatGPT

Affine transformation is **a linear mapping method that preserves points, straight lines, and planes**. Sets of parallel lines remain parallel after an affine transformation. The affine transformation technique is typically used to correct for geometric distortions or deformations that occur with non-ideal camera angles.