loadImageResizeSize {animl} | R Documentation |
Load and resize an image and return an image tensor as well as a tensor with the original image size.
Description
Load and resize an image and return an image tensor as well as a tensor with the original image size. Internal function to be called by image generator function.
Usage
loadImageResizeSize(
file,
height = 299,
width = 299,
pad = FALSE,
standardize = FALSE
)
Arguments
file |
path to a JPEG file |
height |
the height the cropped image will be resized to. |
width |
the width the cropped image will be resized to. |
pad |
pad the image instead of stretching it, TRUE or FALSE. |
standardize |
standardize the image, TRUE or FALSE. |
Value
An image tensor.
[Package animl version 1.1.0 Index]