#pragma once #include #include #include #include typedef pcl::PointXYZRGB PointRGB; typedef pcl::PointCloud PointCloudRGB; typedef PointCloudRGB::Ptr PtrCloud; class PCLConverter { public: static PtrCloud points_to_pcl(const rs2::points &points, const rs2::video_frame &color); static void convert_and_save_ply(const std::string &fileName, const rs2::points &points, const rs2::video_frame &color); private: static std::tuple get_texcolor(rs2::video_frame texture, rs2::texture_coordinate texcoords); };