im_pad: Pad image with n pixels

View source: R/pictplot.R

im_padR Documentation

Pad image with n pixels

Description

Pad image with n pixels

Usage

im_pad(im, n, method = "mirror")

Arguments

im

an image

n

number of pixels to pad with

method

either "zero", "mean", "repeat", "mirror", or a numeric value

Examples

# zero padding
im = im_pad(regatta, 20, "zero")
plot(im)
# mirror padding
im = im_pad(regatta, 100, "mirror")
plot(im)

tsuda16k/pictplot documentation built on March 1, 2023, 8:44 p.m.