April 2020
Intermediate to advanced
438 pages
12h 2m
English
An affine transformation is a geometric transformation that preserves points, straight lines, and planes. Lines that are parallel before the transform remain parallel post-application of the transform. For every pixel x in an image, the affine transformation can be represented by the mapping, x |→ Mx+b, where M is a linear transform (matrix) and b is an offset vector.
In this recipe, we will use the scipy ndimage library function, affine_transform(), to implement such a transformation on an image.
Read now
Unlock full access