Calculates the tangent angle along the perimeter of a shape

Share:

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_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

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.