Stack - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

Online Help

All Products    Maple    MapleSim


ImageTools

  

Stack

  

stack images horizontally or vertically

 

Calling Sequence

Parameters

Options

Description

Examples

Calling Sequence

Stack( img_list, dir, opts )

Parameters

img_list

-

list(Image); images to stack

dir

-

horizontal or vertical; direction of stacking

opts

-

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

Options

• 

halign = left, center, or right

  

Specifies the horizontal alignment of vertically stacked images. The default is left.

• 

valign = top, center, or bottom

  

Specifies the vertical alignment of horizontally stacked images. The default is top.

Description

• 

The Stack command stacks images to form a larger image.

• 

The img_list parameter is a list of the images that are to be stacked. The images must have the same number of layers.

• 

The optional dir parameter determines the stacking direction. Allowable values are horizontal and vertical. If horizontal, then the images are stacked horizontally, the first image in the list being the leftmost. If vertical, then the images are stacked vertically, the first image in the list being the topmost. The default is horizontal.

• 

If the input images have different sizes, they are aligned according to the halign or valign options.

Examples

withImageTools:

img1Create100,150,r,cevalf0.5+0.5sin0.005+0.003cc0.5+0.5sin0.15r:

img2Create120,120,r,cevalf0.5+0.5sin0.01c2+0.01r2:

imgaStackimg1,img2,horizontal:

imgbStackimg1,img2,horizontal,valign=center:

imgcStackimg1,img2,horizontal,valign=bottom:

Embedimga,imgb,imgc

imgaStackimg1,img2,vertical:

imgbStackimg1,img2,vertical,halign=center:

imgcStackimg1,img2,vertical,halign=right:

Embedimga,imgb,imgc

img_halfStackFlipimg2,horizontal,img2,horizontal:

img_finalStackFlipimg_half,vertical,img_half,vertical:

Embedimg_final

See Also

ImageTools

ImageTools[Flip]

ImageTools[View]