Skip to contents

A non-exact baseline registration on t1 and t2 coordinates, for the ldk1-th and ldk2-th points. By default it returns Bookstein's coordinates.

Usage

coo_baseline(coo, ldk1, ldk2, t1, t2)

Arguments

coo

matrix of (x; y) coordinates or any Coo object.

ldk1

numeric the id of the first point of the new baseline

ldk2

numeric the id of the second point of the new baseline

t1

numeric the (x; y) coordinates of the 1st point of the new baseline

t2

numeric the (x; y) coordinates of the 2nd point of the new baseline

Value

a matrix of (x; y) coordinates or a Coo object.

Examples

h <- hearts %>% slice(1:5) # for speed sake
stack(h)

stack(coo_baseline(h, 2, 4, c(-1, 0), c(1, 1)))