loadImageResizeSize | R Documentation |
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
)
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. |
An image tensor.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.