darsia.bounding_box#
- bounding_box(voxels, padding=0, max_size=None)[source]#
Determine bounding box for a set of given coordinates.
- Parameters:
- voxels
VoxelArray Voxel array of size N x dim, using matrix indexing in 2d.
- padding
int Padding to create a slightly larger bounding box. Might be of interest if the area that is prescribed in coords cover slightly less than strictly needed. Default is 0.
- max_size
listortuple,optional Max size of bounding box in each dimension.
- voxels
- Returns:
tupleofslicesSlices with ranges from min to max value per dimension.