Exercise

# Affine transform

An affine transformation matrix provides directions for up to four types of changes: translating, rotating, rescaling and shearing. The elements of the matrix map the coordinates from the input array to the output.

For this exercise, use `ndi.affine_transform()`

to apply the following registration matrices to `im`

. Which one does the best job of **centering, leveling and enlarging** the original image?

Instructions

**50 XP**

##### Possible Answers

- [[1, 0, 0], [0, 1, 0], [0, 0, 1]]
- [[1.5, -0.8, 60], [0.8, 1.5, -140], [0, 0, 1]]
- [[1, -0.3, 60], [-0.3, 1, 60], [0, 0, 1]]
- [[0.8, -0.4, 90], [0.4, 0.8, -6.0], [0, 0, 1]]