Figure 3 Flips — The horizontal flip exchanges the vertical columns on opposite sides of the center of the image array and the vertical flip exchanges horizontal rows on opposite sides of the center of the image array.

Input Image Array

     1 2 3
     4 5 6
     7 8 9

Flip # 4 - Horizontal  Flip # 5 - Vertical

     3 2 1                  7 8 9
     6 5 4                  4 5 6
     9 8 7                  1 2 3