ImageGeneratorSize | R Documentation |
Creates an image data generator that resizes images if requested and also returns the original images size needed for MegaDetector.
ImageGeneratorSize(
files,
resize_height = NULL,
resize_width = NULL,
pad = FALSE,
standardize = FALSE,
batch = 1
)
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. |
A Tensorflow image data generator.
## Not run:
dataset <- ImageGenerator(images, standardize = FALSE, batch = batch)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.