curve_pair_align {fdasrvf} | R Documentation |
Pairwise align two curves
Description
This function aligns to curves using Elastic Framework
Usage
curve_pair_align(beta1, beta2, mode = "O", rotation = TRUE, scale = TRUE)
Arguments
beta1 |
curve 1, provided as a matrix of dimensions |
beta2 |
curve 2, provided as a matrix of dimensions |
mode |
Open ( |
rotation |
Include rotation (default = |
scale |
scale curves to unit length (default = |
Value
a list containing
beta2n |
aligned curve 2 to 1 |
q2n |
aligned srvf 2 to 1 |
gam |
warping function |
q1 |
srvf of curve 1 |
beta1 |
centered curve 1 |
beta2 |
centered curve 2 |
R |
rotation matrix |
tau |
seed |
References
Srivastava, A., Klassen, E., Joshi, S., Jermyn, I., (2011). Shape analysis of elastic curves in euclidean spaces. Pattern Analysis and Machine Intelligence, IEEE Transactions on 33 (7), 1415-1428.
Examples
out <- curve_pair_align(beta[, , 1, 1], beta[, , 1, 5])
[Package fdasrvf version 2.3.1 Index]