cat tst.num
1.0 1.0 2.1 1.0
2.0 1.0 1.0 0.1
2.0 2.0 2.1 -1.0
WlzAffineTransformLSq tst.num | WlzFacts
Object type: WLZ_AFFINE_TRANS.
Linkcount: 0.
Transform type: WLZ_TRANSFORM_2D_AFFINE.
Linkcount: 1.
tx: 2.1.
ty: 3.
tz: 0.
scale: 1.
theta: -1.5708.
phi: 0.
alpha: 0.2.
psi: 0.785398.
xsi: 0.
invert: 0.
WlzAffineTransformLSq -r tst.num | WlzFacts
Object type: WLZ_AFFINE_TRANS.
Linkcount: 0.
Transform type: WLZ_TRANSFORM_2D_AFFINE.
Linkcount: 1.
tx: 2.15156.
ty: 3.09784.
tz: 0.
scale: 1.
theta: -1.62075.
phi: 0.
alpha: 0.
psi: 0.
xsi: 0.
invert: 0.
WlzAffineTransformLSq -t tst.num | WlzFacts
Object type: WLZ_AFFINE_TRANS.
Linkcount: 0.
Transform type: WLZ_TRANSFORM_2D_AFFINE.
Linkcount: 1.
tx: 1.73333.
ty: 0.0333333.
tz: 0.
scale: 1.
theta: 0.
phi: 0.
alpha: 0.
psi: 0.
xsi: 0.
invert: 0.