ImageTools - Maple Programming Help

Online Help

All Products    Maple    MapleSim


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

ImageTools

  

Rotate

  

rotate an image in increments of 90 degrees

 

Calling Sequence

Parameters

Options

Description

Examples

Calling Sequence

Rotate( img, angle, opts )

Parameters

img

-

Image; input image

angle

-

degrees of rotation, an integral multiple of 90

opts

-

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

Options

• 

output = Image

  

Specifies a data structure into which the output is written. This can be used to avoid allocating memory. The size and number of layers must match that of the input. The dimensions of the output image are adjusted so that the row and column indices match the input. The default is NULL.

Description

• 

The Rotate command returns an image that has been rotated by angle degrees.  Only rotations in steps of 90 degrees are supported.

• 

The img parameter is of type Image.

• 

The angle parameter specifies the angle of rotation in a clockwise direction. It may be an integral multiple of 90 or one of the names left or right. An angle of 90 degrees is equivalent to right.

• 

The start row and column indices are preserved. If the input image starting row and column indices are m and n, respectively, then the output image starting row and column indices are m and n, respectively.

Examples

withImageTools:

imgCreate100,200,r,c→0.5+evalfⅇc500.5sinr20

img 1..100 x 1..200 ArrayData Type: float8Storage: rectangularOrder: C_order

(5.1)

img1Rotateimg,90

img1 1..200 x 1..100 ArrayData Type: float8Storage: rectangularOrder: C_order

(5.2)

img2Rotateimg,180

img2 1..100 x 1..200 ArrayData Type: float8Storage: rectangularOrder: C_order

(5.3)

img3Rotateimg,270

img3 1..200 x 1..100 ArrayData Type: float8Storage: rectangularOrder: C_order

(5.4)

Embedimg,img1,img3,img2

See Also

ImageTools

ImageTools[Flip]

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