Learn R Programming

Momocs (version 1.1.6)

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

Description

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

Usage

coo_tangle(coo)

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

Run this code
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

Run the code above in your browser using DataLab