Last active
December 20, 2019 19:18
-
-
Save ritvikmath/862b4efd69ceb288188f678df3c6e28a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#operate on a copy | |
copyImg = img.copy() | |
#rotating an image 90 degrees CCW is like mapping the pixel at (x,y) to the pixel at (y,-x) | |
copyImg = img[y,-x] | |
#show image | |
plt.imshow(copyImg) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment