Class PointCloudPlyWriter
Defined in File PointCloudPlyWriter.h
Class Documentation
-
class PointCloudPlyWriter
Class for writing point clouds to PLY files.
Public Static Functions
-
static bool WriteFormatPLY(const char *filename, const std::vector<PointXYZ> &points, bool useBinary)
Save a point cloud to a file in Polygon File Format (PLY), see: https://en.wikipedia.org/wiki/PLY_%28file_format%29.
- Parameters:
filename – The file to save the point cloud to
points – The points to save
useBinary – If the output file is binary or ascii
- Returns:
Returns true if write was successful and false otherwise
-
static bool WriteFormatPLY(const char *filename, const std::vector<PointXYZ> &points, const std::vector<uint32_t> &rgbaMap, bool useBinary)
Save a point cloud to a file in Polygon File Format (PLY) which has colors for each point, see: https://en.wikipedia.org/wiki/PLY_%28file_format%29.
- Parameters:
filename – The file to save the point cloud to
points – The points to save
rgbaMap – RGBA colors for each point, must be same length as points
useBinary – If the output file is binary or ascii
- Returns:
Returns true if write was successful and false otherwise
-
static bool WriteFormatPLY(const char *filename, const std::vector<PointXYZ> &points, const std::vector<uint16_t> &intensityMap, bool useBinary)
Save a point cloud to a file in Polygon File Format (PLY) which has intensities for each point, see: https://en.wikipedia.org/wiki/PLY_%28file_format%29.
- Parameters:
filename – The file to save the point cloud to
points – The points to save
intensityMap – Intensities for each point, must be same length as points
useBinary – If the output file is binary or ascii
- Returns:
Returns true if write was successful and false otherwise
-
static bool WriteFormatPLY(const char *filename, const std::vector<PointXYZ> &points, const std::vector<uint32_t> &rgbaMap, const std::vector<uint16_t> &intensityMap, bool useBinary)
Save a point cloud to a file in Polygon File Format (PLY) which has intensities and colors for each point, see: https://en.wikipedia.org/wiki/PLY_%28file_format%29”>Specification.
- Parameters:
filename – The file to save the point cloud to
points – The points to save
rgbaMap – RGBA colors for each point, must be same length as points
intensityMap – Intensities for each point, must be same length as points
useBinary – If the output file is binary or ascii
- Returns:
Returns true if write was successful and false otherwise
-
static bool WriteFormatPLY(const char *filename, const std::vector<PointXYZ> &points, bool useBinary)