Flipping out
As a prank, someone has turned an image from a photo album of a trip to Seville upside-down and back-to-front! Now, we need to straighten the image, by flipping it.
Image loaded as
flipped_seville.
show_image() function.
NumPy is already imported as np.
แบบฝึกหัดนี้เป็นส่วนหนึ่งของหลักสูตร
Image Processing in Python
แบบฝึกหัดเชิงโต้ตอบแบบลงมือทำ
ลองทำแบบฝึกหัดนี้โดยเติมโค้ดตัวอย่างนี้ให้สมบูรณ์
# Flip the image vertically
seville_vertical_flip = ____.____(flipped_seville)