| tf_align | R Documentation |
tf_align() applies the inverse warping function to unregistered data
to obtain aligned (registered) functions.
tf_align(x, warp, ...)
## S3 method for class 'tfd'
tf_align(x, warp, ..., keep_new_arg = FALSE)
## S3 method for class 'tfb'
tf_align(x, warp, ...)
x |
|
warp |
|
... |
additional arguments passed to |
keep_new_arg |
keep new |
the aligned tf vector (registered functions)
Other registration functions:
tf_estimate_warps(),
tf_landmarks_extrema(),
tf_register(),
tf_registration,
tf_warp()
# Estimate warps, then align manually:
t <- seq(0, 2 * pi, length.out = 101)
x <- tfd(t(sapply(c(-0.3, 0, 0.3), function(s) sin(t + s))), arg = t)
warps <- tf_estimate_warps(x, method = "affine", type = "shift")
aligned <- tf_align(x, warps)
plot(aligned, col = 1:3)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.