40 #ifndef PCL_SURFACE_RECONSTRUCTION_IMPL_H_
41 #define PCL_SURFACE_RECONSTRUCTION_IMPL_H_
43 #include <pcl/conversions.h>
44 #include <pcl/search/auto.h>
50 template <
typename Po
intInT>
void
54 output.
header = input_->header;
69 tree_.reset (pcl::search::autoSelectMethod<PointInT>(input_, indices_,
false));
74 tree_->setInputCloud (input_, indices_);
81 output.
polygons.reserve (2*indices_->size ());
83 performReconstruction (output);
89 template <
typename Po
intInT>
void
91 std::vector<pcl::Vertices> &polygons)
94 points.
header = input_->header;
109 tree_.reset (pcl::search::autoSelectMethod<PointInT>(input_, indices_,
false));
114 tree_->setInputCloud (input_, indices_);
120 polygons.reserve (2 * indices_->size ());
122 performReconstruction (points, polygons);
128 template <
typename Po
intInT>
void
132 output.
header = input_->header;
147 tree_.reset (pcl::search::autoSelectMethod<PointInT>(input_, indices_,
false));
152 tree_->setInputCloud (input_, indices_);
161 performReconstruction (output);
167 template <
typename Po
intInT>
void
181 tree_.reset(pcl::search::autoSelectMethod<PointInT>(input_, indices_,
false));
186 tree_->setInputCloud (input_, indices_);
194 performReconstruction (polygons);
void reconstruct(pcl::PolygonMesh &output) override
Base method for surface reconstruction for all points given in <setInputCloud (), setIndices ()>
std::uint32_t width
The point cloud width (if organized as an image-structure).
pcl::PCLHeader header
The point cloud header.
std::uint32_t height
The point cloud height (if organized as an image-structure).
void clear()
Removes all points in a cloud and sets the width and height to 0.
void reconstruct(pcl::PolygonMesh &output) override
Base method for surface reconstruction for all points given in <setInputCloud (), setIndices ()>
void toPCLPointCloud2(const pcl::PointCloud< PointT > &cloud, pcl::PCLPointCloud2 &msg, bool padding)
Convert a pcl::PointCloud<T> object to a PCLPointCloud2 binary data blob.
std::vector< std::uint8_t > data
std::vector< ::pcl::Vertices > polygons
::pcl::PCLPointCloud2 cloud