make.sliders | R Documentation |
Create sliders file with code
make.sliders(perimeter.map, main.lms)
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. |
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.
This function returns a slider format that geomorph can use for sliding semilandmarks.
define.sliders
(used for landmarking)
#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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.