Learn R Programming

shapes (version 1.2.3)

bookstein2d: Bookstein's baseline registration for 2D data

Description

Carries out Bookstein's baseline registration and calculates a mean shape

Usage

bookstein2d(A,l1=1,l2=2)

Arguments

A

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

l1: an integer : l1 is sent to (-1/2,0) in the registration

l2

l2: an integer : l2 is sent to (1/2,0) in the registration

Value

A list with components:

k

number of landmarks

n

sample size

mshape

Bookstein mean shape with baseline l1, l2

bshpv

the k x n x 2 array of Bookstein shape variables, including the baseline

References

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.

Examples

Run this code
# 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