loadImageResize | R Documentation |
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
)
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 |
logical indicating whether the images should be padded or streched. |
standardize |
standardize the image, TRUE or FALSE. |
An image tensor.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.