tpsreg creates an object encapsulating a thin plate spine transform mapping a paired landmark set.

xformpoints.tpsreg enables xform and friends to transform 3d vertices (or more complex objects containing 3d vertices) using a thin plate spline mapping stored in a tpsreg object.

tpsreg(sample, reference, ...)

# S3 method for tpsreg
xformpoints(reg, points, swap = NULL, ...)

Arguments

sample, reference
Matrices defining the sample (or floating) and reference (desired target after transformation) spaces. See details.
...
additional arguments passed to xformpoints.tpsreg
reg
The tpsreg registration object
points
The 3D points to transform
swap
Whether to change the direction of registration (default of NULL checks if reg has a attr('swap'=TRUE)) otherwise

Details

Note that we use the nat convention for naming the sample/reference space arguments but these actually clash with the nomenclature in the underlying Morpho::tps3d function.

  • refmat (Morpho3d) == sample (nat)

  • tarmat (Morpho3d) == reference (nat)

See also

reglist, read.landmarks