cigvis.utils.coord module#

coordinate transform tools

cigvis.utils.coord.apply_transform(p, transform_metrix, inv=False)#

apply affine transform to translate the coordinate

cigvis.utils.coord.get_transform_metrix(p1, p2)#

Calculate affine transform metrix H using LSTSQ, and ignore w.

p2 = H cdot p1

Parameters#

p1array-like

points in coordinate 1

p2array-like

points in coordinate 2

Returns#

Harray-like

shape is (3, 3)