View source: R/calc_shape_dist.R
calc_shape_dist | R Documentation |
Calculate elastic shape distance between two curves beta1 and beta2
calc_shape_dist(beta1, beta2, mode = "O", scale = F)
beta1 |
array describing curve1 (n,T) |
beta2 |
array describing curve |
mode |
Open ("O") or Closed ("C") curves |
scale |
Include scale (default =F) |
Returns a list containing
d |
geodesic distance |
dx |
phase distance |
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.
out <- calc_shape_dist(beta[, , 1, 1], beta[, , 1, 4])
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.