R/islr_cnn_code.R
build_array.Rd
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,
...
)
a function producing a sidelength x sidelength binary image
numeric(1) number of images
numeric(1) passed to load_jpeg as siz
numeric(1) defaults to 3
numeric(1) passed to shapefun
circarr = build_array( rancirc, sidelength=32, side_plane=32, npts=120 )
dim(circarr)
#> [1] 2500 32 32 3