Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mikolalysenko/splat-points-3d
Splats a collection of points onto a 3D volume
https://github.com/mikolalysenko/splat-points-3d
Last synced: about 2 months ago
JSON representation
Splats a collection of points onto a 3D volume
- Host: GitHub
- URL: https://github.com/mikolalysenko/splat-points-3d
- Owner: mikolalysenko
- License: mit
- Created: 2014-01-31T05:47:47.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2015-05-04T19:07:58.000Z (over 9 years ago)
- Last Synced: 2024-10-10T21:40:15.642Z (3 months ago)
- Language: JavaScript
- Size: 113 KB
- Stars: 3
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
splat-points-3d
===============
Splats a point cloud onto a volumetric grid.## Example
```javascript
var splat = require("splat-points-3d")
var pack = require("ndarray-pack")
var zeros = require("zeros")var points = pack([
[1, 0, 0],
[0, 4, 0],
[0, 0, 8]
])var weights = pack([
1,
2,
4
])var grid = zeros([32, 32, 32])
splat(grid, points, weights, 3.0)
```## 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 ndarray
* `points` is a `[n, 3]` shape ndarray encoding the x/y/z grid coordinates of the points to splat
* `weights` is a `[n]` shape ndarray
* `radius` is the radius of the point splat to draw## Credits
(c) 2014 Mikola Lysenko. MIT License