Week 12 • Tuesday

Block 113: Geometric Transformations

Resize, crop, rotate, and flip images.

Concepts

Code Examples

See exercise below.

Exercise

Resize an image to 50% and 200% of original. Display both. Rotate an image 45° around its center without cropping (use warpAffine with full canvas).

Homework

What is interpolation in image resizing? Compare INTER_NEAREST vs INTER_CUBIC visually.