digit.curves.p: Creates homogeneous level curve for every model

Description Usage Arguments Value References See Also Examples

View source: R/digit.curves.R

Description

Creates homogeneous level curve for every model (adapted from the function digit.curves of the geomorph R package)

Usage

1
digit.curves.p(start, curve, nPoints, closed = TRUE)

Arguments

start

A numeric vector of x,y, coordinates for the landmark defining the start of the curve

curve

A matrix (p x k) of 2D coordinates for a set of ordered points defining a curve

nPoints

Numeric how many semilandmarks to place equidistantly along the curve (not counting beginning and end points)

closed

Logical Whether the curve is closed (TRUE) or open (FALSE)

Value

A matrix of coordinates for nPoints equally spaced semilandmarks sampled along the curve

References

Bookstein, F. J. 1997 Landmark Methods for Forms without Landmarks: Morphometrics of Group Differences in Outline Shape. Medical Image Analysis 1(3):225-243.

Rohlf, F.J., 2015. The tps series of software. Hystrix 26(1):9-12.

See Also

digit.curves

Examples

1
2
3
4
5
6
7
8
# Curve  creation
x<-seq(0,30, length=200)
y=90-x^2
curve=data.frame(x,y)

# Homogenization of the number of points
ltl<-digit.curves.p(start=curve[1,], curve=as.matrix(curve), nPoints=98, closed = FALSE)
plot(ltl)

mobirep documentation built on April 22, 2021, 5:07 p.m.