generates images of rectangles and ellipsoids
simulate_shapes(n, size, channels = 1)
array of dimension (n, 1, size, size)
number of images
size of the (quadratic) images
number of channels the generated data has (in each channel a new rectangle/ellipsoid is created)
Armin Schenk
This function generates simple data to demonstrate the usage of cnn(). The generated images are of centered rectangles and ellipsoids with random widths and heights.