pad: Pad images

Description Usage Arguments Value Examples

View source: R/crop.R

Description

Convenience function to calcuate offsets for crop

Usage

1
pad(stimuli, top = 10, right = top, bottom = top, left = right, ...)

Arguments

stimuli

list of class stimlist

top

number of pixels to pad the top

right

number of pixels to pad the right side

bottom

number of pixels to pad the bottom

left

number of pixels to pad the left side

...

additional arguments to pass to crop

Value

list of class stimlist

Examples

1
demo_stim() %>% pad(10, fill = "red") %>% plot()

facelab/webmorph documentation built on April 11, 2021, 6:34 a.m.