make.sliders: Create sliders file with code

Description Usage Arguments Details Value See Also Examples

View source: R/make.sliders.R

Description

Create sliders file with code

Usage

1
make.sliders(perimeter.map, main.lms)

Arguments

perimeter.map

A vector denoting the order your landmarks are placed in to create an outline around the object.

main.lms

A vector of landmarks that should NOT be used as sliding semilandmarks.

Details

This function is a wrapper around geomorph::define.sliders(). Instead of loading up images and clicking on points to define sliders, we used define.sliders()'s AUTO mode, which can generate sliders from the points given in order. The drawback from that is that it treats the non-sliding landmarks like sliders. This function let's you specify the main landmarks and removes them from the sliders file, leaving you with only sliding semilandmarks.

Value

This function returns a slider format that geomorph can use for sliding semilandmarks.

See Also

define.sliders (used for landmarking)

Examples

1
2
#the first seven landmarks are type 1 lms for the guppy data. The rest can slide.
guppy.sliders <- make.sliders(c(1,8:17, 2, 18:19, 3, 20:27, 4, 28:42, 5, 43:52, 6, 53:54, 7, 55:62), main.lms = 1:7)

J0vid/Colormesh documentation built on Feb. 4, 2022, 1:33 a.m.