dfourier: Discrete cosine transform

Description Usage Arguments Details Value Functions References See Also Examples

View source: R/core_dfourier.R

Description

Calculates discrete cosine transforms, as introduced by Dommergues and colleagues, on open outlines.

Usage

1
2
3
dfourier(x, nb_h, raw = FALSE, from_col, to_col, drop_coo, ...)

dfourier_i(x, nb_h, nb_pts, from_col, to_col, ...)

Arguments

x

coo_single, coo_list or mom_tbl

nb_h

int nb of harmonics. Default to 6 for dfourier, to all of them for dfourier_i

raw

logical whether to return raw and full results for dfourier

from_col, to_col

column names

drop_coo

logical whether to drop coo column (default to TRUE)

...

for generics. Useless here.

nb_pts

int nb of points for the reconstruction

Details

Shapes must be normalized, ie using coo_bookstein before performing the dct transform.

Value

a list with components when applied on a single shape:

Functions

References

See Also

Other morphometrics: efourier(), npoly(), opoly()

Examples

1
olea[1:3, ] %>% dfourier()

MomX/Momocs2 documentation built on May 13, 2020, 4:28 a.m.