Learn R Programming

Momocs (version 1.0.0)

tps2d: Thin Plate Splines for 2D data

Description

tps2d is the core function for Thin Plate Splines. It is used internally for all TPS graphical functions.tps_apply is the very same function but with arguments properly named (I maintain tps2d as it is for historical reasons) when we want a apply a trasnformation grid.

Usage

tps2d(grid0, fr, to)
tps_apply(fr, to, new)

Arguments

grid0
a matrix of coordinates on which to calculate deformations
fr
the reference $(x; y)$ coordinates
to
the target $(x; y)$ coordinates
new
the target coordinates (again)

Value

a matrix of (x; y) coordinates with TPS-interpolated deformations

See Also

Other thin plate splines: tps_arr, tps_grid, tps_iso, tps_raw