stack images horizontally or vertically - Maple Help

Online Help

All Products    Maple    MapleSim


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

ImageTools[Stack] - stack images horizontally or vertically

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

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:

img1:=Create100,150,r,c→evalf0.5+0.5sin0.005+0.003cc0.5+0.5sin0.15r:

img2:=Create120,120,r,c→evalf0.5+0.5sin0.01r2+c2:

imga:=Stackimg1,img2,horizontal:

imgb:=Stackimg1,img2,horizontal,valign=center:

imgc:=Stackimg1,img2,horizontal,valign=bottom:

Embedimga,imgb,imgc

imga:=Stackimg1,img2,vertical:

imgb:=Stackimg1,img2,vertical,halign=center:

imgc:=Stackimg1,img2,vertical,halign=right:

Embedimga,imgb,imgc

img_half:=StackFlipimg2,horizontal,img2,horizontal:

img_final:=StackFlipimg_half,vertical,img_half,vertical:

Embedimg_final

See Also

ImageTools, ImageTools[Flip], ImageTools[View]


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