align new data to an existing Procrustes registration
align new data to an existing Procrustes registration
align2procSym(x, newdata, orp = TRUE)
x |
result of a |
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 |
an array with data aligned to the mean shape in x (and projected into tangent space)
this will never yield the same result as a pooled Procrustes analysis because the sample mean is iteratively updated and new data would change the mean.
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 ## Not run: deformGrid3d(newalign[,,1],proc$orpdata[,,61]) ## End(Not run)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.