CIGAL Reference Manual, Chapter 3 (Functions): flip
usage: newimage = flip(oldimage,mode)
FLIP does a 180-degree rotation of a matrix (eg. image) variable about either the X axis (vertical flip) or the Y axis (horizontal flip). In both cases the origin for the rotation is the center of the matrix.
MODE selects which rotation to perform:
MODE = 0 - No rotation, simply copies the matrix 1 - Flip about the Y axis (flips left to right) 2 - Flip about the X axis (flips top to bottom) 4 - Flip about the diagonal (top left to bottom right)
Note: The X and Y axis flips can be combined in a single operation (MODE=3) but neither of these can be combined with a diagonal flip (MODE=4).
See Also:
CIGAL Home,
CIGAL Manual,
Functions List,
Manual Help