neodroidvision.data.synthesis.conversion.mnist.threed.voxel_grid.VoxelGrid¶
- class neodroidvision.data.synthesis.conversion.mnist.threed.voxel_grid.VoxelGrid(points, x_y_z=(1, 1, 1), bb_cuboid=True, build=True)[source]¶
Bases:
object
description
- __init__(points, x_y_z=(1, 1, 1), bb_cuboid=True, build=True)[source]¶
- Parameters
points ((N,3) ndarray) – The point cloud from wich we want to construct the VoxelGrid. Where N is the number of points in the point cloud and the second dimension represents the x, y and z coordinates of each point.
x_y_z (list) – The segments in wich each axis will be divided. x_y_z[0]: x axis x_y_z[1]: y axis x_y_z[2]: z axis
bb_cuboid(Optional) (bool) –
- If True(Default):
The bounding box of the point cloud will be adjusted in order to have all the dimensions of equal lenght.
- If False:
The bounding box is allowed to have dimensions of different sizes.
Methods
__init__
(points[, x_y_z, bb_cuboid, build])- param points
The point cloud from wich we want to construct the VoxelGrid.
build
()description
plot
([d, cmap, show_axis])- param d