Description Usage Arguments Details Value Examples
Load a batch of images.
1 2 3 4 5 | LoadImageBatch(files, loader, h, w, nch, channel_last = TRUE,
batch_last = FALSE, ret.flatten = FALSE)
LoadPNGBatch(files, h, w, nch, channel_last = TRUE, batch_last = FALSE,
ret.flatten = FALSE)
|
files |
a list of files or a list of files by channel. |
loader |
a function to load the images. |
h |
height of images. Ignored if ret.flatten. |
w |
width of images. Ignored if ret.flatten. |
nch |
number of channels of each image. |
channel_last |
whether the images are channel_last format. Default: TRUE |
batch_last |
whether the batch is indexed in last dimension. Default: FALSE |
ret.flatten |
whether to return flatten image vectors. Default: FALSE |
The argument files can be either a list of files to load, or a list of which each element contains a list of files to load and concatenate by channel. The latter can be handy when data is provided in single-channel image files.
a 4-d array.
1 2 3 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.