imageLabelCrop {animl}R Documentation

Load image, crop and return a tensor with an image and a corresponding label.

Description

Load image, crop and return a tensor with an image and a corresponding label. Internal function to be called by image generator function.

Usage

imageLabelCrop(data, classes, height = 299, width = 299, standardize = FALSE)

Arguments

data

a list with the first element being an image file path, the next four elements being the bounding box coordinates and the last element a label

classes

list of classes

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

An image and label tensor.


[Package animl version 1.1.0 Index]