make_image_blocks_from_dirs: Make Image Blocks From Dirs Function

Description Usage Arguments Value Examples

View source: R/make_image_block.R

Description

make_image_blocks_from_dirs Creates and writes a TXT blocks of image names. Notably, this function uses a list of lists of image files from databases to construct an equally but randomly allocated list of images from each in a series of equally sized blocks.

Usage

1
2
3
4
5
6
7
make_image_blocks_from_dirs(
  dbs_path,
  validation_path,
  output_path,
  block_size,
  breaks = 0
)

Arguments

dbs_path

The path relative to working directory of database lists of images.

validation_path

The path relative to working directory of validation image files.

output_path

The path relative to working directory of output block TXT files.

block_size

The number of images per block.

breaks

The number of breaks that should be inserted with image name "break.jpg". Breaks will be inserted evenly throughout a block after the block is created. Defaults to 0.

Value

List of image file names with prefix database identifiers.

Examples

1
2
3
4
make_image_list_from_dirs("imgct/images/databases",
 "imgct/images/validation",
 "imgct/images/blocks",
 300)

sokolhessnerlab/shlab.imgct documentation built on Oct. 4, 2020, 7:31 a.m.