← Back to Lesson 8

Quiz 8: Geometric Transformations

Score: 0 / 4

. In cv2.flip(img, code), what does code=1 do?

code=1 is a horizontal flip, code=0 is vertical, and code=-1 flips both.

. Which of the three transform types (Euclidean, similarity, affine) is capable of shearing a square into a parallelogram?

Affine transforms allow any invertible 2x2 matrix, including shear, which neither Euclidean nor similarity transforms permit.

. What does a similarity transform preserve that a general affine transform does not necessarily preserve?

Similarity transforms preserve angles and length ratios; affine transforms give up angle preservation in exchange for allowing shear.

. How many point correspondences does cv2.getAffineTransform require to solve for all 6 affine parameters?

3 point correspondences give exactly 6 equations, matching the 6 free parameters of an affine transform.