Skip to content

Reduce 3d point clouds using voxel grid sampling or random subsampling

Notifications You must be signed in to change notification settings

chongma/pointcloud-3d

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pointcloud-3d

npm version

Reduce 3d point clouds using random subsampling or voxel grid sampling

Reduce point cloud by subsampling

import { reduceSampling } from 'pointcloud-3d'

const data = [
    [0.1, 0.2, 0.3],
    [0.3, 0.2, 0.1],
    [0.2, 0.1, 0.3],
    [0.1, 0.2, 0.3],
    [0.3, 0.2, 0.1],
    [0.2, 0.1, 0.3]
]

const reduced = reduceSampling(data, 3)

Reduce point cloud by voxel grid sampling

import { reduceVoxel } from 'pointcloud-3d'

const data = [
    [0.1, 0.2, 0.3],
    [0.3, 0.2, 0.1],
    [0.2, 0.1, 0.3],
    [0.1, 0.2, 0.3],
    [0.3, 0.2, 0.1],
    [0.2, 0.1, 0.3]
]

const reduced = reduceVoxel(data, 0.1)

About

Reduce 3d point clouds using voxel grid sampling or random subsampling

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published