Function iaconcat

Synopse

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

  • Y = iaconcat(DIM, X1, X2, X3=NULL, X4=NULL)
    • Y: Image
    • DIM: String Dimension to concatenate. 'WIDTH' or 'W', 'HEIGHT' or 'H', or ' DEPTH' or 'D'.
    • X1: Image
    • X2: Image
    • X3: Image
    • X4: 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

Example 1

01. from ia870 import iaconcat
02. from ia870 import iagray
03. from ia870 import ianeg
04. from ia870 import iatext
05. 
06. f1=mmreadgray('cameraman.tif')
07. f2=mmreadgray('blob.tif')
08. g=iaconcat('W',f1,iagray( ianeg(f2)))
09. adshow(g,title='f1|f2')
10. adshow(iaconcat('w',mmtext('a'),mmtext('b')),title='a|b')

f1|f2

a|b