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

imrep

Replicate images


Description

Kinda like rep, for images. Copy image n times and (optionally), append.

Usage

imrep(x, n = 1, axis = NULL)

Arguments

x

an image

n

number of replications

axis

axis to append along (one of NULL, "x","y","z","c"). Default: NULL

Value

either an image or an image list

Author(s)

Simon Barthelme

Examples

#Result is a list
imrep(boats,3) %>% plot
#Result is an image 
imrep(boats,3,"x") %>% plot
#Make an animation by repeating each frame 10x
#map_il(1:5,~ isoblur(boats,.) %>% imrep(10,"z")) %>%
#                       imappend("z") %>% play

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.