cv.flip - MATLAB File Help |
Flips a 2D array around vertical, horizontal, or both axes
dst = cv.flip(src, flipCode)
src
.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:
flipCode == 0
) to switch between
top-left and bottom-left image origin. This is a typical operation in
video processing on Microsoft Windows OS.flipCode > 0
).flipCode < 0
).