Your cart is currently empty!
Write a program that loads in an image and repeatedly rotates it by x degrees until the image has been rotated 360⁰ in total. Your program should include the following:…
Write a program that loads in an image and repeatedly rotates it by x degrees until the image has been rotated 360⁰ in total.
Your program should include the following:
cos | − sin | |
using the matrix multiplication function (prior bullet). | ||
= �sin | cos | � |
(numPixelsInImage * numTimesImageWasRotated)
You can use the OpenCV and Numpy libraries for opening, displaying, and saving images and to create empty arrays/images. You may also use the math library built into Python for sine, cosine, and PI calculations. You may not use any other built-in functions or libraries.
Submit your code and a report. Your report must be a PDF and contain the following:
Angle Step Size | # Rotations | Absolute Color Error | Pixel Displacement | (# Rotations) * (Pixel |
Displacement) | ||||
45⁰ | 8 | |||
60⁰ | 6 | |||
90⁰ | 4 | |||
120⁰ | 3 | |||
180⁰ | 2 | |||
360⁰ | 1 |