Flipping images left-to-right#

For the remaining lessons, we are going to learn various ways to define a function that transforms images. We will be using the flip image transformation as our key example. You may have experience of using flip in applications that edit digital photos. For example, in the following window from the Photos application on my Mac, you can see an option to flip the image from left to right.

../../../_images/image_flip.png

After I click Flip, I see the following result.

../../../_images/image_flip2.png

Let’s implement it!