padding: Padding an image

Description Usage Arguments Value Author(s) Examples

View source: R/padding.R

Description

This function pads an image with specified width and height.

Usage

1
padding(img, w, h = w)

Arguments

img

An image of Image class.

w, h

Width and height of padding spaces.

Value

Returns a padded image in Image class.

Author(s)

Yuichiro Hourai, yhourai@gmail.com

Takeo Katsuki, takeo.katsuki@gmail.com

Examples

1
2
3
  motor <- readImage(system.file("images/motorcycle.jpg", package="RImageBook"))
  motorpad <- padding(motor, 20, 10)
  display(motorpad)

tkatsuki/dipr documentation built on April 19, 2021, 7:18 p.m.