The voxel shape library (VSL) is a collection of MATLAB functions and plotting routines to help generate 3D voxel images of various shapes in different configurations. The library supports modifying the resolution, scale, translation, rotation, and threshold sharpness of the objects. The following types of shapes are implemented:
This code has been tested to run with MATLAB 2016a and later. The following example scripts show how to use the library functions.
- example_create_basic_shapes.m - Shows how to create and plot basic 3D voxel shapes
- example_create_basic_shapes_with_noise.m - Shows how to create and plot basic 3D voxel shapes with value noise
- example_create_shape_dataset.m - Shows how to create and plot a dataset of 3D voxel shapes
- example_create_shape_mosaic.m - Creates a mosaic of example 3D shapes using random parameter configurations