(10 pts.) Forward Rotation: Write code to perform forward rotation on an image.
(10 pts.) Reverse Rotation: Write code to perform reverse rotation on the input image.
(20 pts.) Rotation with interpolation: Write code to rotate an the input image, using nearest neighbor and bilinear interpolation.
One images is provided for testing: cameraman.jpg
Notes:
Files not to be changed: requirements.txt and Jenkinsfile
the code has to run using one of the following commands
Usage:./dip_hw1_rotate.py -i image-name -t theta -m method
./dip_hw1_rotate.py -i image-name -t theta -m method
Example:./dip_hw1_rotate.py -i cameraman.jpg -t 0.5 -m nearest_neighbor
./dip_hw1_rotate.py -i cameraman.jpg -t 0.5 -m nearest_neighbor
Usage:python dip_hw1_rotate.py -i image-name -t theta -m method
python dip_hw1_rotate.py -i image-name -t theta -m method
Example:python dip_hw1_rotate.py -i cameraman.jpg -t 0.5 -m bilinear
python dip_hw1_rotate.py -i cameraman.jpg -t 0.5 -m bilinear
Any output file or image should be written to output/ folder
The code has to run on jenkins CI/CD
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here