6#include "reusex/core/SensorIntrinsics.hpp"
7#include "reusex/types.hpp"
9#include <opencv2/core/mat.hpp>
10#include <pcl/PolygonMesh.h>
11#include <pcl/TextureMesh.h>
12#include <rtabmap/core/DBDriver.h>
68 CloudNConstPtr normals =
nullptr,
bool debug_distinct_colors =
false,
76 std::map<int, rtabmap::Transform>
const &poses,
77 std::map<int, rtabmap::Signature>
const &nodes,
78 const std::filesystem::path &texture_dir = {});
85 std::map<int, CameraData>
const &cameras,
86 const std::filesystem::path &texture_dir = {});
pcl::PolygonMeshPtr mesh(CloudConstPtr cloud, CloudNConstPtr normals, EigenVectorContainer< double, 4 > &planes, EigenVectorContainer< double, 3 > ¢roids, std::vector< IndicesPtr > &inliers, CloudLConstPtr rooms, MeshOptions const opt=MeshOptions{})
Generate a mesh from point cloud and geometric primitives.
pcl::TextureMesh::Ptr texture_mesh_with_cloud(pcl::PolygonMesh::Ptr mesh, CloudConstPtr cloud, CloudNConstPtr normals=nullptr, bool debug_distinct_colors=false, const TextureQualityParams &quality=TextureQualityParams())
pcl::TextureMesh::Ptr texture_mesh(pcl::PolygonMesh::Ptr mesh, std::map< int, rtabmap::Transform > const &poses, std::map< int, rtabmap::Signature > const &nodes, const std::filesystem::path &texture_dir={})
Texture mesh using RTABMap signatures (legacy API).
std::filesystem::path prepare_texture_dir(const std::filesystem::path &requested={})
Prepare the directory the generated texture images are staged in.
typename Cloud::ConstPtr CloudConstPtr
typename CloudN::ConstPtr CloudNConstPtr
Lightweight camera intrinsics replacing rtabmap::CameraModel in downstream code.
Camera data for texture mapping.
core::SensorIntrinsics intrinsics
Camera intrinsics.
Eigen::Matrix4d pose
World pose (SE(3)).
cv::Mat image
Color image.
Quality parameters for texture projection.
int max_resolution
Maximum texture size (large surfaces).
std::filesystem::path texture_dir
Directory the generated texture images are written to.
float distance_threshold
Max distance from point to surface (meters) - smaller = sharper.
int atlas_tile_size
Atlas tile size for PCL visualization (lower = less memory).
bool use_quadratic_falloff
Use 1/d^2 instead of 1/d for sharper detail.
int min_resolution
Minimum texture size (small surfaces).
int max_neighbors
Max points to check per pixel.
float search_radius
K-d tree search radius (meters).
float texels_per_meter
Target texture detail (pixels per meter).