read_images_from_directory: Reads images from directory.

Description Usage Arguments

View source: R/segmentation_generator.R

Description

Reads images from directory.

Usage

1
2
3
4
5
6
7
8
read_images_from_directory(
  paths,
  indices = NULL,
  target_size = c(256, 256),
  grayscale = FALSE,
  scale = 1/255,
  colormap = NULL
)

Arguments

paths

Images directories.

indices

Indices of selected images. If 'NULL' all images in 'paths' will be selected.

target_size

Images size (height, width). Default to 'c(256, 256)'.

grayscale

Boolean, whether to load the image as grayscale.

scale

Scaling factor for images pixel values. Default to '1 / 255'.

colormap

Class color map. For example voc_colormap.


maju116/platypus documentation built on Oct. 18, 2020, 9:40 a.m.