Learn R Programming

Morpho (version 1.0-1)

createAtlas: Create an atlas needed in placePatch

Description

Create an atlas needed in placePatch

Usage

createAtlas(mesh, landmarks, patch, corrCuves = NULL, patchCurves = 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.
corrCuves
integer vector specifiyng the rowindices of landmarks to be curves defined on the atlas AND each specimen.
patchCurves
integer vector specifiyng the rowindices of patch to be curves only defined on the atlas.

Value

  • Returns a list of class "atlas". Its content is corresponding to argument names.

See Also

placePatch, plotAtlas

Examples

Run this code
data(nose)
atlas <- createAtlas(shortnose.mesh, landmarks =
            shortnose.lm[c(1:5,20:21),], patch=shortnose.lm[-c(1:5,20:21),])

Run the code above in your browser using DataLab