Learn R Programming

fdasrvf (version 1.9.4)

reparam_curve: Align two curves

Description

This function aligns two SRVF functions using Dynamic Programming

Usage

reparam_curve(
  beta1,
  beta2,
  lambda = 0,
  method = "DP",
  w = 0.01,
  rotated = T,
  isclosed = F,
  mode = "O"
)

Arguments

beta1

array defining curve 1

beta2

array defining curve 1

lambda

controls amount of warping (default = 0)

method

controls which optimization method (default="DP") options are Dynamic Programming ("DP"), Coordinate Descent ("DP2"), Riemannian BFGS ("RBFGS")

w

controls LRBFGS (default = 0.01)

rotated

boolean if rotation is desired

isclosed

boolean if curve is closed

mode

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

Value

return a List containing

gam

warping function

R

rotation matrix

tau

seed point

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

Run this code
# NOT RUN {
data("mpeg7")
gam = reparam_curve(beta[,,1,1],beta[,,1,5])$gam
# }

Run the code above in your browser using DataLab