resize_pad: Resize image by padding or cropping.

View source: R/resize_pad.R

resize_padR Documentation

Resize image by padding or cropping.

Description

Resize image by padding or cropping.

Usage

resize_pad(x, target_size, value)

Arguments

x

An input (image) matrix

target_size

The target size of the resulting image matrix

value

The pixel value to be added. If absent, the median from the original image will be used

Value

A centered resized matrix

Author(s)

Allan Sauvat, allan.sauvat@gustaveroussy.fr


kroemerlab/MorphR documentation built on Oct. 9, 2022, 3:19 a.m.