Function slam_mer::utils::write_ply_ascii(const std::string&, const std::vector<std::array<float, 3>>&, const std::vector<uint32_t> *const, bool)

Function Documentation

void slam_mer::utils::write_ply_ascii(const std::string &filename_, const std::vector<std::array<float, 3>> &points_, const std::vector<uint32_t> *const colors_ = nullptr, bool flip_ = false)

Write a point cloud to an ASCII PLY file using packed RGBA colors.

Parameters:
  • filename_ – Output path of the generated PLY file.

  • points_ – Point positions in XYZ order.

  • colors_ – Optional packed RGBA colors (high byte = red, then green, blue, alpha).

  • flip_ – When true, converts coordinates from camera rbf to PLY flu.