0.1.4 • Published 12 months ago
@kaorun/pointcloudpng v0.1.4
pointcloudpng
Analyze and extract PointCloud-PNG data. See PointCloudPNG. Extended from @kaorun/listpng
.
Installation
$ npm install @kaorun/pointcloudpng
Import
import { PointCloudPNG } from @kaorun/pointcloudpng;
Usage
analyze( imageData )
Extract data from PointCloud-PNG file.
Argument
imageData
- imageData of PointCloud-PNG file to extract data.
Return
DataSource object
- Extracted data from PointCloud-PNG file. See DataSource.
DataSource
getHeader( name )
Argument
name
- header key to specify.
Return
mixed
- value for key.
getHeaders()
Return
object
- key/value of all header data.
getCustom()
Return
Uint8ClampedArray
- RGBA data array of custom header data.
getColumn( value )
Argument
value
- index of column or propertyname
.
Return
mixed
- object of column or undefined.
getColumns()
Return
array
- all columns