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.
loadImageResizeSize(
file,
height = 299,
width = 299,
pad = FALSE,
standardize = FALSE
)
An image tensor.
path to a JPEG file
the height the cropped image will be resized to.
the width the cropped image will be resized to.
pad the image instead of stretching it, TRUE or FALSE.
standardize the image, TRUE or FALSE.