powered by
Carries out Bookstein's baseline registration and calculates a mean shape
bookstein2d(A,l1=1,l2=2)
a k x 2 x n real array, or k x n complex matrix, where k is the number of landmarks, n is the number of observations
l1: an integer : l1 is sent to (-1/2,0) in the registration
l2: an integer : l2 is sent to (1/2,0) in the registration
A list with components:
number of landmarks
sample size
Bookstein mean shape with baseline l1, l2
the k x n x 2 array of Bookstein shape variables, including the baseline
Dryden, I.L. and Mardia, K.V. (1998) Statistical Shape Analysis. Wiley, Chichester. Chapter 2.
Bookstein, F. L. (1986) Size and shape spaces for landmark data in two dimensions (with discussion). Statistical Science, 1:181-242.
# NOT RUN { data(gorf.dat) data(gorm.dat) bookf<-bookstein2d(gorf.dat) bookm<-bookstein2d(gorm.dat) plotshapes(bookf$mshape,bookm$mshape,joinline=c(1,6,7,8,2,3,4,5,1)) # }
Run the code above in your browser using DataLab