Skip to content

danielhavir/voxelize3d

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

3D Point Cloud Voxelization in NumPy

This is very similar to spconv 's voxelization implementation but in plain NumPy without any C/C++ with on-par performance.

There are 2 versions:

Example

import numpy as np
from voxelize import voxelize
from jit_voxelize import voxelize_jit

points = ...  # (num_points, num_features) first 3 features must be x, y, z
voxels, coords, num_points_per_voxel = voxelize(points, voxel_size=np.array([0.2, 0.2, 0.4]), grid_range=np.array([-50, -50, -5, 50, 50, 3]), max_points_in_voxel=10, max_num_voxels=50000)

voxels, coords, num_points_per_voxel = voxelize_jit(points, voxel_size=np.array([0.2, 0.2, 0.4]), grid_range=np.array([-50, -50, -5, 50, 50, 3]), max_points_in_voxel=10, max_num_voxels=50000)

About

3D Point Cloud Voxelization in NumPy

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages