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

coo_angle_tangentR Documentation

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_angle_tangent(coo)

## Default S3 method:
coo_angle_tangent(coo)

## S3 method for class 'Coo'
coo_angle_tangent(coo)

coo_tangle(coo)

Arguments

coo

a matrix of coordinates or any Coo

Value

numeric, the tangent angle along the perimeter, or a list of those for Coo

See Also

tfourier

Other coo_ descriptors: coo_angle_edges(), coo_area(), coo_boundingbox(), coo_chull(), coo_circularity(), coo_convexity(), coo_eccentricity, coo_elongation(), coo_length(), coo_lw(), coo_rectangularity(), coo_rectilinearity(), coo_scalars(), coo_solidity(), coo_tac(), coo_width()

Examples

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

# on Coo
bot %>% coo_angle_tangent

Momocs documentation built on Nov. 13, 2023, 5:07 p.m.