Module: NMatrix::IO::PointCloud
- Defined in:
- lib/nmatrix/io/point_cloud.rb
Overview
Reader for Point Cloud Data (PCD) file format.
The documentation of this format can be found in:
pointclouds.org/documentation/tutorials/pcd_file_format.php
Note that this implementation does not take the width or height parameters into account.
Defined Under Namespace
Classes: MetaReader
Constant Summary collapse
- INT_DTYPE_BY_SIZE =
For UINT, just add 1 to the index.
[:int8, :int8, :int16, :int32, :int64, :int64]
- FLOAT_DTYPE_BY_SIZE =
:nodoc:
{4 => :float32, 8 => :float64}
Class Method Summary collapse
-
.load(filename) ⇒ Object
call-seq: load(filename) -> NMatrix.
Class Method Details
.load(filename) ⇒ Object
call-seq:
load(filename) -> NMatrix
-
Arguments :
-
filename
-> String giving the name of the file to be loaded.
-
Load a Point Cloud Library PCD file as a matrix.
52 53 54 |
# File 'lib/nmatrix/io/point_cloud.rb', line 52 def load(filename) MetaReader.new(filename).matrix end |