tem_def: Get template definition

View source: R/tem.R

tem_defR Documentation

Get template definition

Description

Template definitions are lists that contain information about templates that are needed to do things like symmetrising and masking images. This function is mostly used internally.

Usage

tem_def(tem_id = "frl", path = NULL)

Arguments

tem_id

the name of a built-in template (frl, fpp106, fpp83, dlib70, or dlib7) or a numeric ID of a template to retrieve from webmorph.org

path

path of local tem definition file

Details

If you have defined a custom template on webmorph.org, you can get its function definition by ID. You can see the ID numbers next to the templates available to you under the Template > Current Template menu.

Value

list with template definition

See Also

Template functions auto_delin(), average_tem(), centroid(), change_lines(), delin(), draw_tem(), features(), get_point(), remove_tem(), require_tems(), same_tems(), squash_tem(), subset_tem(), viz_tem_def()

Examples

fpp106 <- tem_def("fpp106")
fpp106$lines |> str()


fpp83 <- tem_def("fpp83")
fpp83$mask |> str()

frl <- tem_def("frl")
frl$points[1:10, ]
viz_tem_def(frl, pt.size = 10, line.size = 5)


webmorphR documentation built on June 2, 2022, 5:07 p.m.