pcd-loader-0.2.0: PCD file loader.

Safe HaskellNone

PCD.Data

Description

Parser for PCD (point cloud data) files. Also provides a facility for converting from ASCII to binary formatted point data.

Synopsis

Documentation

loadAllFields :: FilePath -> IO (Text -> Vector FieldType)Source

Parse every field of every point in a PCD file. Returns a function that may be used to project out a named field.

loadXyzw :: (Fractional a, Storable a) => FilePath -> IO (Vector (V4 a))Source

Read a PCD file consisting of floating point XYZW coordinates for each point (where the final "W" field may be an RGB triple encoded as a float).

loadXyz :: (Fractional a, Storable a) => FilePath -> IO (Vector (V3 a))Source

Read a PCD file consisting of floating point XYZ coordinates for each point.

asciiToBinary :: FilePath -> FilePath -> IO ()Source

asciiToBinary inputFile outputFile converts a PCD file from ASCII to Binary.