mirror: Mirror templates and images

Description Usage Arguments Value Examples

View source: R/mirror.R

Description

Use tem_id to get the symmetry map for your template. If tem_id is omitted, images and templates will be fully reversed (e.g., if point 1 is the left eye in the original image, it will be the right eye in the mirrored image).

Usage

1
mirror(stimuli, tem_id = NULL, axis = "vertical")

Arguments

stimuli

list of class stimlist

tem_id

template ID to be passed to tem_def (usually "frl" or "fpp106") or NULL

axis

vertical or horizontal axis of mirroring

Value

stimlist with mirrored images and templates

Examples

1
2
3
4
5
6
7
o <- demo_stim("london", "005_03")
m <- mirror(o, "frl")

c(o, m) %>%
  draw_tem() %>%
  label(c("original", "mirrored")) %>%
  plot()

facelab/webmorph documentation built on April 11, 2021, 6:34 a.m.