coo_align: Align shapes

Description Usage Arguments Details Value Functions See Also Examples

View source: R/coo_modifyers.R

Description

Align shape along their longer axis using var-cov matrix and eigen values.

Usage

1
2
3
coo_align(x, from_col = coo, to_col = coo, ...)

coo_align_xax(x, from_col, to_col, ...)

Arguments

x

coo_single, coo_list or mom_tbl

from_col

colnames from where to get the coo_list and how to name the resulting one (only for mom_tbl method)

to_col

colnames from where to get the coo_list and how to name the resulting one (only for mom_tbl method)

...

useless here

Details

(todo) For coo_align_xax: ff some shapes are upside-down (or mirror of each others), try redefining a new starting point (eg with coo_slidedirection) before the alignment step. This may solve your problem because coo_calliper orders the '$arr.ind“ used by coo_aligncalliper.

Value

a coo_single, coo_list or mom_tbl

Functions

See Also

Other coo_modifyers: coo_baseline(), coo_center(), coo_reflect, coo_rev(), coo_rotatecenter(), coo_rotate(), coo_sample_rr(), coo_sample(), coo_scale(), coo_shear(), coo_slide(), coo_split(), coo_template(), coo_trans(), coo_trim(), coo_up()

Other rotations: coo_rotatecenter(), coo_rotate()

Examples

1
2
bot %>% pick(1) %>% coo_align
bot %>% pick(1) %>% coo_align_xax

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