lanArray: Build landmark array for 'Morpho'.

View source: R/lanArray.R

lanArrayR Documentation

Build landmark array for Morpho.

Description

Build landmark array for Morpho.

Usage

lanArray(sampleList, adjustCoords = FALSE, imageList = NULL, imageIDs = NULL)

Arguments

sampleList

List of landmark matrices as returned by makeList.

adjustCoords

Adjust landmark coordinates in case they are reversed compared to pixel coordinates (default = FALSE).

imageList

List of RasterStacks as returned by makeList should be given when adjustCoords = TRUE.

imageIDs

A list of IDs to match landmarks to images if landmarkList and imageList don't have the same length.

Value

X x Y x n array, where X and Y define the coordinates of the landmark points and n is the sample size.

Examples


## Not run: 
IDlist <- c('BC0077','BC0071','BC0050','BC0049','BC0004')

prepath <- system.file("extdata",  package = 'patternize')
extension <- '_landmarks_LFW.txt'

landmarkList <- makeList(IDlist, 'landmark', prepath, extension)

landmarkArray <- lanArray(landmarkList)

## End(Not run)


patternize documentation built on Aug. 22, 2023, 5:07 p.m.