Template Function Cloudini::PCLPointCloudEncode(const pcl::PointCloud<PointT>&, std::vector<uint8_t>&, double)

Function Documentation

template<typename PointT>
size_t Cloudini::PCLPointCloudEncode(const pcl::PointCloud<PointT> &cloud, std::vector<uint8_t> &serialized_cloud, double resolution_XYZ)

Encodes a point cloud into a serialized format. If you use a point type different that PointXYZ or PointXYZI, you need to specialize the ConvertToEncodingInfo function for that point type.

Parameters:
  • cloud – The input point cloud to encode.

  • serialized_cloud – The output vector where the serialized data will be stored.

  • resolution_XYZ – The resolution for the XYZ coordinates, used for lossy encoding.

Returns:

The size of the serialized data in bytes.