Exercises 2 (Python)
Write a transform function Image that Given an image img returnsthe representation of this image invert on the four directions:
![Voila limagc à transfomc es risullals 4uon devrait ur: 100 200 зос 400 500 600 0.8 0.4 0.2 8OC 0.0 200 400 60 300 1000 Complétez le code suivant import matplotlib.pyplot as plt import matplotlib.image as mpimg import numpy as np def transformerImage(img,direction-None) if direction =- h : elif direction b: elif directiong elif directiod else: return img img=img [ : : 1, : : 1,-] //... .ici img-img[:1,-1,:1 ici ici directionh](../../../media.cheggcdn.com/media/8f7/8f7f3944-b86e-4eed-958e-4b622d5a67be/image.png)

PayPal Gateway not configured
PayPal Gateway not configured
Exercises 2 (Python)
Write a transform function Image that Given an image img returnsthe representation of this image invert on the four directions:
![Voila limagc à transfomc es risullals 4uon devrait ur: 100 200 зос 400 500 600 0.8 0.4 0.2 8OC 0.0 200 400 60 300 1000 Complétez le code suivant import matplotlib.pyplot as plt import matplotlib.image as mpimg import numpy as np def transformerImage(img,direction-None) if direction =- h : elif direction b: elif directiong elif directiod else: return img img=img [ : : 1, : : 1,-] //... .ici img-img[:1,-1,:1 ici ici directionh](../../../media.cheggcdn.com/media/8f7/8f7f3944-b86e-4eed-958e-4b622d5a67be/image.png)

PayPal Gateway not configured
PayPal Gateway not configured