symmetrize: Symmetrize Images

View source: R/symmetrise.R

symmetrizeR Documentation

Symmetrize Images

Description

Use webmorph.org to make faces symmetric in shape and/or colour.

Usage

symmetrize(stimuli, shape = 1, color = 1, tem_id = "frl", ...)

symmetrise(stimuli, shape = 1, color = 1, tem_id = "frl", ...)

Arguments

stimuli

list of stimuli

shape, color

amount of symmetry (0 for none, 1.0 for perfect)

tem_id

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

...

Additional arguments to pass to trans()

Value

list of stimuli with symmetrised images and templates

See Also

WebMorph.org functions avg(), continuum(), loop(), trans(), webmorph_up()

Examples


if (webmorph_up()) {
  stimuli <- demo_stim(1)

  sym_both <- symmetrize(stimuli)
  sym_shape <- symmetrize(stimuli, color = 0)
  sym_color <- symmetrize(stimuli, shape = 0)
  sym_anti <- symmetrize(stimuli, shape = -1.0, color = 0)
}


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