coo_tangle: Calculates the tangent angle along the perimeter of a shape

Description Usage Arguments Value See Also Examples

View source: R/coo-shapedescriptors.R

Description

Calculated using complex numbers and returned in radians minus the first one (modulo 2*pi).

Usage

1

Arguments

coo

a matrix of coordinates

Value

a numeric, the tangent angle along the perimeter

See Also

tfourier

Other coo_ descriptors: coo_area, coo_boundingbox, coo_chull, coo_circularityharalick, coo_circularitynorm, coo_circularity, coo_convexity, coo_eccentricityboundingbox, coo_eccentricityeigen, coo_elongation, coo_length, coo_lw, coo_rectangularity, coo_rectilinearity, coo_solidity, coo_theta3, coo_thetapts, coo_width

Examples

1
2
3
4
5
6
data(bot)
b <- bot[1]
phi  <- coo_tangle(b)
phi2 <- coo_tangle(coo_smooth(b, 2))
plot(phi, type='l')
plot(phi2, type='l', col='red') # ta is very sensible to noise

Momocs documentation built on May 30, 2017, 5:23 a.m.

Search within the Momocs package
Search all R packages, documentation and source code