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?
This exercise is part of the course
Biomedical Image Analysis in Python
Hands-on interactive exercise
Turn theory into action with one of our interactive exercises
