Created
December 20, 2019 15:42
-
-
Save ritvikmath/d0293c683365e9beadf797737909c50c 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
| #create a square mask around the top right of the image | |
| square_mask = (x<200)&(x>100)&(y<600)&(y>500) | |
| #make the square red | |
| copyImg[square_mask] = [255,0,0] | |
| #show image | |
| plt.imshow(copyImg) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment