imgPadding: Pad an image to the given dimensions

Description Usage Arguments Value Examples

Description

This function returns an imagedata padded to the given dimensions, leaving the input imagedata in the center of the result.

Usage

1
imgPadding(imgdata, n, m = n)

Arguments

imgdata

The image

n

The new width

m

The new height

Value

return an imagedata

Examples

1
2
3
4
5
	## Not run: 
		x <- readJpeg(system.file("samples", "violet.jpg", package="biOps"))
		t <- imgPadding(x, 350)
	
## End(Not run)

matiasb/biOps documentation built on May 21, 2019, 12:55 p.m.