get_ldk: Retrieves landmarks coordinates

View source: R/coo-ldk-utilities.R

get_ldkR Documentation

Retrieves landmarks coordinates

Description

See Details for the different behaviors implemented.

Usage

get_ldk(Coo)

Arguments

Coo

an Out, Opn or Ldk object

Details

Different behaviors depending on the class of the object:

  • Ldk: retrieves landmarks.

  • Ldk with slidings defined: retrieves only the fixed landmarks, not the sliding ones. See also get_slidings.

  • Out landmarks from $ldk and $coo, if any.

  • Opn: same as above.

Value

a list of shapes

See Also

Other ldk/slidings methods: add_ldk(), def_ldk(), def_slidings(), get_slidings(), rearrange_ldk(), slidings_scheme()

Examples

# Out example
ldk.h <- get_ldk(hearts)
stack(Ldk(ldk.h))

# on Ldk (no slidings)
get_ldk(wings) # equivalent to wings$coo

# on Ldk (slidings)
get_ldk(chaff)
get_ldk(chaff) %>% Ldk %>% fgProcrustes(tol=0.1) %>% stack

MomX/Momocs documentation built on Nov. 18, 2023, 10:53 p.m.