splat-points-3d
Splats a point cloud onto a volumetric grid.
Example
var splat = var pack = var zeros = var points = var weights = var grid =
Install
npm install splat-points-3d
API
require("splat-points-3d")(out, points, weights, radius)
Splats a collection of points onto a 3D volumetric grid using Lanczos/sinc filtering. If you want a different kernel afterwards, you can apply a convolution via the FFT
out
is a 3D ndarraypoints
is a[n, 3]
shape ndarray encoding the x/y/z grid coordinates of the points to splatweights
is a[n]
shape ndarrayradius
is the radius of the point splat to draw
Credits
(c) 2014 Mikola Lysenko. MIT License