| mirror | R Documentation |
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).
mirror(stimuli, tem_id = NULL, axis = "vertical")
stimuli |
list of stimuli |
tem_id |
template ID to be passed to |
axis |
vertical or horizontal axis of mirroring |
list of stimuli with mirrored images and templates
Stimulus manipulation functions
align(),
crop_tem(),
crop(),
greyscale(),
horiz_eyes(),
image_func(),
mask_oval(),
mask(),
pad(),
resize(),
rotate(),
to_size()
# load an image and mirror it
o <- demo_tems("frl") |> resize(0.5)
m <- mirror(o, "frl")
# visualise the face outline points
c(o, m) |>
subset_tem(features("face")) |>
draw_tem(pt.shape = "index", pt.size = 15) |>
label(c("original", "mirrored"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.