iat_mosaic

[ MOSAIC ] = iat_mosaic( IMAGE1, IMAGE2, H )

iat_mosaic creates a mosaic given two input images and the transformation matrix that relates them. IMAGE1 is the reference image and is stitched with IMAGE2, after the transformation of the latter by H. H should be given as a 3×3 array. For example, give [1 0 tx; 0 1 ty; 0 0 1] for 2D translation.

Input arguments

IMAGE1 The first (reference) image
IMAGE2 The second image
H A 3×3 array that defines the planar transformation (up to homography)

Output arguments

MOSAIC The final mosaic image

Back to Index