add_canvas: Add canvas to an image

Description Usage Arguments Value

View source: R/image_processing_utils.R

Description

Add canvas to an image of class EBImage.

Usage

1
add_canvas(x, nrows, ncols, center = T, col = "white")

Arguments

x

the original image, either of class EBImage::Image or matrix.

nrows, ncols

The number of rows and columns of which the image should be enlarged

center

should the original picture be centered within the canvas?

col

the color of the canvas

Value

The image with an enlarged canvas in


MartinHinz/shapAAR documentation built on July 12, 2020, 7:41 p.m.