Load image, crop and return a tensor with an image and a corresponding label. Internal function to be called by image generator function.
imageLabelCrop(data, classes, height = 299, width = 299, standardize = FALSE)
An image and label tensor.
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
list of classes
the height the cropped image will be resized to.
the width the cropped image will be resized to.
standardize the image, TRUE or FALSE.