This function uses a 2-knot piecewise linear model to calculate inverse warping
functions for registration. The parameters knot1_x
and knot1_y
control the x and y locations of the first knot, and the parameters
knot1_x
and knot1_y
control the x and y locations of the second
knot. The designation (inverse) is intended to communicate that these
functions take data from the unregistered space to the registered space,
consistent with functional data literature on registration.
piecewise_linear2_hinv(grid, knot_locations = c(0.25, 0.3, 0.75, 0.9))
grid of values over which to evaluate the function.
controls the x and y locations of the two knots.
Erin McDonnell eim2117@cumc.columbia.edu