[mmtext] [Up] [mmlimits] Image Information and Manipulation

mmconcat
Concatenate two or more images along width, height or depth.

Synopsis

function Y = mmconcat ( DIM , X1 , X2 , X3 , X4 )

Input

DIM String

Dimension to concatenate. 'WIDTH' or 'W', 'HEIGHT' or 'H', or ' DEPTH' or 'D'.

X1 Image Gray-scale (uint8 or uint16) or binary image
X2 Image Gray-scale (uint8 or uint16) or binary image
X3 Image Gray-scale (uint8 or uint16) or binary image

Default: NULL

X4 Image Gray-scale (uint8 or uint16) or binary image

Default: NULL

Output

Y Image Gray-scale (uint8 or uint16) or binary image

Description

Concatenate two or more images in any of the dimensions: width, height or depth. If the images do not match the dimension, a larger image is create with zero pixels to accommodate them. The images must have the same datatype.

Examples

f1=mmreadgray('cameraman.tif');
f2=mmreadgray('blob.tif');
g=mmconcat('W', f1, mmgray(mmneg(f2)));
mmshow(g);
g

See also

mmshow Display binary or gray-scale images and optionally overlay it with binary images.
[mmtext] [Up] [mmlimits]