Transformation Format in mosaic.xform File

 

The transformation starts with the tag "xform = <" and ends with ">" (the inverse transformation starts with "inverse_xform = <") in the .xform file. Compared to the typical form of transformations, the ones used in GDB-ICP are centered transformations, i.e., the transformation is w.r.t. the center. The details are explained as follows:

The text format is:
AFFINE
2
a11 a12
a21 a22
t1 t2 c1 c2

The 1st line "AFFINE" indicates it is an affine transformation. The 2nd line indicates this transformation applies to 2D coordinates. (The same idea applies to the following transformations.) The rest of lines are coefficients to the transformation in this format:
affine transform

The text format is:
HOMOGRAPHY2D
2
h11 h12 h13
h21 h22 h23
h31 h32 h33
c1 c2 d1 d2

Denoting H Matrix as the 3-by-3 homography matrix and
homography function
as the homography function in inhomogeneous coordinates, the transformation is written as center coordinate
homography transform

Denote
homography function

as the homography function (same as before) and
radial distortion
as the radial lens distortion function. The transformation is written as
homography with radial lens distortion

The text format is:
REDUCED_QUADRATIC
2
b11 b12 b13
b21 b22 b23
a11 a12
a21 a22
t1 t2 c1 c2

Let center coordinate

quadratic transform

The text format is:
QUADRATIC
2
b11 b12 b13
b21 b22 b23
a11 a12
a21 a22
t1 t2 c1 c2

Let center coordinate

quadratic transform