cv.flip - MATLAB File Help
cv.flip

Flips a 2D array around vertical, horizontal, or both axes

dst = cv.flip(src, flipCode)

Input

Output

The function cv.flip flips the array in one of three different ways (row and column indices are 0-based):

           { src(size(src,1)-i-1,j)                if flipCode = 0
dst(i,j) = { src(i,size(src,2)-j-1)                if flipCode > 0
           { src(size(src,1)-i-1,size(src,2)-j-1)  if flipCode < 0

The example scenarios of using the function are the following:

See also