make an array of JPEG-like data for invocations of a (presumably random) shape-generating function

build_array(
  shapefun = rancirc,
  nimages = 2500,
  sidelength = 64,
  depth = 3,
  npts = 90,
  ...
)

Arguments

shapefun

a function producing a sidelength x sidelength binary image

nimages

numeric(1) number of images

sidelength

numeric(1) passed to load_jpeg as siz

depth

numeric(1) defaults to 3

npts

numeric(1) passed to shapefun

Examples

circarr = build_array( rancirc, sidelength=32, side_plane=32, npts=120 )
dim(circarr)
#> [1] 2500   32   32    3