Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

play

Play a video


Description

A very basic video player. Press the space bar to pause and ESC to close. Note that you need X11 library to use this function.

Usage

play(vid, loop = FALSE, delay = 30L, normalise = TRUE)

Arguments

vid

A cimg object, to be played as video

loop

loop the video (default false)

delay

delay between frames, in ms. Default 30.

normalise

if true pixel values are rescaled to 0...255 (default TRUE). The normalisation is based on the *first frame*. If you don't want the default behaviour you can normalise by hand. Default TRUE.


imager

Image Processing Library Based on 'CImg'

v0.42.10
LGPL-3
Authors
Simon Barthelme [aut], David Tschumperle [ctb], Jan Wijffels [ctb], Haz Edine Assemlal [ctb], Shota Ochi [cre]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.