Helps to define landmarks on a Coo
object.
The number of landmarks must be specified and rows indices that
correspond to the nearest points clicked on every outlines are
stored in the $ldk
slot of the Coo
object.
Arguments
- Coo
an Out or Opn object
- nb.ldk
the number of landmarks to define on every shape
- close
logical
whether to close (typically for outlines)- points
logical
whether to display points
See also
Other ldk/slidings methods:
add_ldk()
,
def_slidings()
,
get_ldk()
,
get_slidings()
,
rearrange_ldk()
,
slidings_scheme()
Examples
if (FALSE) {
bot <- bot[1:5] # to make it shorter to try
# click on 3 points, 5 times.
# Don't forget to save the object returned by def_ldk...
bot2 <- def_ldk(bot, 3)
stack(bot2)
bot2$ldk
}