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 n \times T for n-dimensional curve evaluated on T sample points

beta2

curve 2, provided as a matrix of dimensions n \times T for n-dimensional curve evaluated on T sample points

mode

Open ("O") or Closed ("C") curves

rotation

Include rotation (default = TRUE)

scale

scale curves to unit length (default = TRUE)

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.2.0 Index]