resize_pad | R Documentation |
Resize image by padding or cropping.
resize_pad(x, target_size, value)
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 |
A centered resized matrix
Allan Sauvat, allan.sauvat@gustaveroussy.fr
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.