flip an image horizontally or vertically - Maple Help

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : Graphics : Image Processing : ImageTools Package : ImageTools/Flip

ImageTools[Flip] - flip an image horizontally or vertically

Calling Sequence

Flip( img, dir, opts )

Parameters

img

-

Image; input image

dir

-

name; one of horizontal or vertical, direction of the flip

opts

-

(optional) equation(s) of the form option = value; specify options for the Flip command

Description

• 

The Flip command flips an image either horizontally or vertically.

• 

The img parameter specifies the image.

• 

The dir parameter specifies the direction of the flip. Two directions are supported: horizontal and vertical. A horizontal flip exchanges the columns of the image so that those originally on the left are now on the right, and vice-versa. A vertical flip exchanges the rows of the image so that those originally on the top are now on the bottom, and vice-versa.

• 

Row and column indices are preserved.

Examples

withImageTools:

img:=Create100,200,r,c→ⅇr+c200.:

Embedimg

i_h:=Flipimg,horizontal:

i_v:=Flipimg,vertical:

Embedi_h,i_v

See Also

ImageTools, ImageTools[Rotate], ImageTools[Transpose]


Download Help Document

Was this information helpful?



Please add your Comment (Optional)
E-mail Address (Optional)
What is ? This question helps us to combat spam