create_curve_info: Create curve info object

View source: R/create_curve_info.R

create_curve_infoR Documentation

Create curve info object

Description

Create curve info object

Usage

create_curve_info(curvedata, n_fixed)

Arguments

curvedata

a dataframe or tibble with columns "lm1", "lm2" and "ptswanted".

n_fixed

a number indicating how many landmarks are fixed anatomical landmarks

Value

output contains the necessary information to subsample curves, and the identity of each curve for sliding

Curves

a list of curves with the landmarks that begin and end each curve

Curve.in

the same list of curves without the landmarks that begin and end each

Sliding.LMs

an integer vector of all the points that are sliding semilandmarks on curves

Fixed

an integer vector of all the points that are fixed landmarks that are not allowed to slide

Examples

my_curvedata <- read_csv("curvedatafile.csv")
my_curves <- create_curve_info(curvedata = my_curvedata, n_fixed = 32)

rnfelice/SURGE documentation built on July 4, 2023, 3:39 p.m.