Load and resize an image and return an image tensor. Internal function to be called by image generator function.
loadImageResize(
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.
logical indicating whether the images should be padded or streched.
standardize the image, TRUE or FALSE.