50% off: Unlimited data and AI learning.
State of Data and AI Literacy Report 2025

shapes (version 1.0-2)

riemdist: Riemannian shape distance

Description

Calculates the Riemannian shape distance $$ between two configurations riemdist(x, y)x{k x m matrix (or complex k-vector for 2D data) where k = number of landmarks and m = no of dimensions} y{k x m matrix (or complex k-vector for 2D data)} The Riemannian shape distance rho between the two configurations. Note 0 <= rho="" <="pi/2

Arguments

References

Kendall, D. G. (1984). Shape manifolds, Procrustean metrics and complex projective spaces, Bulletin of the London Mathematical Society, 16, 81-121.

See Also

procOPA,procGPA

Examples

Run this code
data(gorf.dat)
data(gorm.dat)
gorf<-procGPA(gorf.dat)
gorm<-procGPA(gorm.dat)
rho<-riemdist(gorf$mshape,gorm$mshape)
cat("Riemannian distance between mean shapes is ",rho,"")

Run the code above in your browser using DataLab