Learn R Programming

webmorphR (version 0.1.1)

tem_def: 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

Value

list with template definition

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.

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

Run this code
# NOT RUN {
fpp106 <- tem_def("fpp106")
fpp106$lines |> str()

# }
# NOT RUN {
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)
# }

Run the code above in your browser using DataLab