continuum: Morph between two images

View source: R/continuum.R

continuumR Documentation

Morph between two images

Description

Morph from one image to another in the specified steps.

Usage

continuum(from_img, to_img, from = 0, to = 1, by = 0.1, ...)

Arguments

from_img

image to start at

to_img

image to end at

from

starting percentage

to

ending percentage

by

step size

...

arguments to pass to trans()

Value

a list of stimuli containing each step of the continuum

See Also

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

Examples


if (webmorph_up()) {
  stimuli <- demo_stim()
  cont <- continuum(stimuli$f_multi, stimuli$m_multi)
  
  # create an animated gif
  animate(cont, fps = 10, rev = TRUE)
}


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