editTemplate | R Documentation |
An interactive function to remove landmarks from a 3D template file.
editTemplate(template, fixed, n)
template |
Matrix of template 3D coordinates |
fixed |
Number of "fixed" landmark points (non surface sliding points) |
n |
Number of points to be removed |
The function edits a 'template.txt' file made by buildtemplate
, which must be in the current
working directory, and which is overwritten. Use read.table("template.txt", header = T) to read in the template
first.
Choosing which landmarks will be deleted involves landmark selection using a mouse in the rgl plot window. With a standard 3-button (PC) buildtemplate uses:
the RIGHT mouse button (primary) to choose points to be deleted,
the LEFT mouse button (secondary) is used to rotate mesh,
the mouse SCROLLER (third/middle) is used to zoom in and out.
NOTE: Digitizing functions on MACINTOSH computers using a standard 3-button mice works as specified. Macs using platform specific single button mice, XQuartz must be configured: go to Preferences > Input > tick "Emulate three button mouse":
press button to rotate 3D mesh,
press button while pressing COMMAND key to select points to be deleted,
press button while pressing OPTION key to adjust mesh perspective.
the mouse SCROLLER or trackpad two finger scroll is used to zoom in an out.
Function returns a matrix containing the x,y,z coordinates of the new template landmarks. Function also writes to the working directory 'template.txt' containing the x,y,z coordinates of the updated template
Erik Otarola-Castillo & Emma Sherratt
rgl-package
(used in 3D plotting)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.