M-File Help: iconcat View code for iconcat

iconcat

Concatenate images

C = iconcat(im,options) concatenates images from the cell array im.

iconcat(im,options) as above but displays the concatenated images using IDISP.

[C,u] = iconcat(im,options) as above but also returns the vector u whose elements are the coordinates of the left (or top in vertical mode) edge of the corresponding image within the concatenated image.

Options

'dir', D direction of concatenation: 'horizontal' (default) or 'vertical'.
'bgval', B value of padding pixels (default NaN)

Examples

Horizontally concatenate three images

c = iconcat({im1, im2, im3}, 'h');

Find the first column of each of the three images

[c,u] = iconcat({im1, im2, im3}, 'h');

where u is a 3-vector such that im3 starts in the u(3)'rd column of c.

Notes

See also

idisp


 

© 1990-2012 Peter Corke.