loadImageResizeCrop {animl}R Documentation

Load, resize and crop an image and return an image tensor.

Description

Load a JPEG image and crop it to a bounding box. Internal function to be called by image generator function.

Usage

loadImageResizeCrop(data, height = 299, width = 299, standardize = FALSE)

Arguments

data

a list with the first element being a path to an image file and the next four arguments being the bounding box coordinates.

height

the height the cropped image will be resized to.

width

the width the cropped image will be resized to.

standardize

standardize the image, TRUE or FALSE.

Value

A Tensorflow image data generator.


[Package animl version 1.1.0 Index]