curvature_circlefit: Calculate total curvature from a circle fitted to the...

View source: R/curvature_circlefit.R

curvature_circlefitR Documentation

Calculate total curvature from a circle fitted to the landmarks

Description

Calculate total curvature from a circle fitted to the landmarks

Usage

curvature_circlefit(landmark_matrix, x_range)

Arguments

landmark_matrix

is a matrix object with [,1] containing the x landmark coordinates and [,2] containing the y landmark coordinates.

x_range

the lower and upper x-value bounds to calculate curvature. Concatenate the lower and upper bounds using c(), E.g. for lower = 1 and upper = 10, type c(1,10).

Value

a 'list' with one named element. '$Ktot' is the total curvature in radians.


mannfred/curvr documentation built on Nov. 6, 2024, 7:10 p.m.