Learn R Programming

Morpho (version 2.12)

align2procSym: align new data to an existing Procrustes registration

Description

align new data to an existing Procrustes registration

Usage

align2procSym(x, newdata, orp = TRUE)

Value

an array with data aligned to the mean shape in x (and projected into tangent space)

Arguments

x

result of a procSym call

newdata

matrix or array of with landmarks corresponding to the data aligned in x

orp

logical: allows to skip orthogonal projection, even if it was used in the procSym call.

Examples

Run this code
require(Morpho)
data(boneData)
# run procSym on entire data set
proc <- procSym(boneLM)
# this is the training data
array1 <- boneLM[,,1:60]
newdata <- boneLM[,,61:80]
proc1 <- procSym(array1)
newalign <- align2procSym(proc1,newdata)
## compare alignment for one specimen to Proc. registration using all data
if (FALSE) {
deformGrid3d(newalign[,,1],proc$orpdata[,,61])
}

Run the code above in your browser using DataLab