ImageGeneratorSize {animl} | R Documentation |
Tensorflow data generator that resizes images and returns original image size.
Description
Creates an image data generator that resizes images if requested and also returns the original images size needed for MegaDetector.
Usage
ImageGeneratorSize(
files,
resize_height = NULL,
resize_width = NULL,
pad = FALSE,
standardize = FALSE,
batch = 1
)
Arguments
files |
a vector of file names |
resize_height |
the height the cropped image will be resized to. If NULL returns original size images. |
resize_width |
the width the cropped image will be resized to. If NULL returns original size images.. |
pad |
pad the image instead of stretching it, TRUE or FALSE. |
standardize |
standardize the image to the range 0 to 1, TRUE or FALSE. |
batch |
the batch size for the image generator. |
Value
A Tensorflow image data generator.
Examples
## Not run:
dataset <- ImageGenerator(images, standardize = FALSE, batch = batch)
## End(Not run)
[Package animl version 1.1.0 Index]