bookstein2d: Bookstein's baseline registration for 2D data

View source: R/shapes.R

bookstein2dR Documentation

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

Author(s)

Ian Dryden

References

Dryden, I.L. and Mardia, K.V. (2016). Statistical Shape Analysis, with applications in R (Second Edition). 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

     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))

shapes documentation built on Feb. 16, 2023, 8:16 p.m.