createAtlas {Morpho} | R Documentation |
Create an atlas needed in placePatch
Description
Create an atlas needed in placePatch
Usage
createAtlas(
mesh,
landmarks,
patch,
corrCurves = NULL,
patchCurves = NULL,
keep.fix = NULL
)
Arguments
mesh |
triangular mesh representing the atlas' surface |
landmarks |
matrix containing landmarks defined on the atlas, as well as on each specimen in the corresponding sample. |
patch |
matrix containing semi-landmarks to be projected onto each specimen in the corresponding sample. |
corrCurves |
a vector or a list containing vectors specifiyng the rowindices of
|
patchCurves |
a vector or a list containing vectors specifiyng the
rowindices of |
keep.fix |
in case corrCurves are set, specify explicitly which landmarks are not allowed to slide during projection (with |
Value
Returns a list of class "atlas". Its content is corresponding to argument names.
Note
This is a helper function of placePatch
.
See Also
Examples
data(nose)
atlas <- createAtlas(shortnose.mesh, landmarks =
shortnose.lm[c(1:5,20:21),], patch=shortnose.lm[-c(1:5,20:21),])