imgPadding {biOps}R Documentation

Pad an image to the given dimensions

Description

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

Usage

imgPadding(imgdata, n, m = n)

Arguments

imgdata The image
n The new width
m The new height

Value

return an imagedata

Examples

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

[Package biOps version 0.2.1 Index]