JA EN

Affine Transformation

A linear geometric transformation combining translation, rotation, scaling, and shearing that preserves parallel lines while deforming image geometry - a fundamental image processing operation.

An affine transformation combines translation, rotation, scaling, and shearing while preserving straight lines and parallelism. It is fundamental to image resizing, rotation, skew correction, and data augmentation in machine learning.

Represented by a 2×3 matrix:

Common types:

In OpenCV, cv2.getAffineTransform() computes the matrix from 3 points and cv2.warpAffine() applies it. Random affine transforms are a standard data augmentation technique in deep learning, improving model generalization by exposing networks to geometric variations.

Related Terms

Related Articles