loadImageResize {animl}R Documentation

Load and resize an image and return an image tensor.

Description

Load and resize an image and return an image tensor. Internal function to be called by image generator function.

Usage

loadImageResize(
  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

logical indicating whether the images should be padded or streched.

standardize

standardize the image, TRUE or FALSE.

Value

An image tensor.


[Package animl version 1.1.0 Index]