40 #ifndef PCL_SURFACE_RECONSTRUCTION_IMPL_H_
41 #define PCL_SURFACE_RECONSTRUCTION_IMPL_H_
42 #include <pcl/search/pcl_search.h>
45 template <
typename Po
intInT>
void
49 output.
header = input_->header;
64 if (input_->isOrganized ())
71 tree_->setInputCloud (input_, indices_);
77 output.
polygons.reserve (2*indices_->size ());
79 performReconstruction (output);
85 template <
typename Po
intInT>
void
87 std::vector<pcl::Vertices> &polygons)
90 points.
header = input_->header;
105 if (input_->isOrganized ())
112 tree_->setInputCloud (input_, indices_);
117 polygons.reserve (2 * indices_->size ());
119 performReconstruction (points, polygons);
125 template <
typename Po
intInT>
void
129 output.
header = input_->header;
144 if (input_->isOrganized ())
151 tree_->setInputCloud (input_, indices_);
159 performReconstruction (output);
165 template <
typename Po
intInT>
void
179 if (input_->isOrganized ())
186 tree_->setInputCloud (input_, indices_);
193 performReconstruction (polygons);
199 #endif // PCL_SURFACE_RECONSTRUCTION_IMPL_H_
std::vector< ::pcl::Vertices > polygons
pcl::PCLHeader header
The point cloud header.
void toPCLPointCloud2(const pcl::PointCloud< PointT > &cloud, pcl::PCLPointCloud2 &msg)
Convert a pcl::PointCloud object to a PCLPointCloud2 binary data blob.
uint32_t height
The point cloud height (if organized as an image-structure).
std::vector< pcl::uint8_t > data
virtual void reconstruct(pcl::PolygonMesh &output)
Base method for surface reconstruction for all points given in ...
uint32_t width
The point cloud width (if organized as an image-structure).
virtual void reconstruct(pcl::PolygonMesh &output)
Base method for surface reconstruction for all points given in ...
OrganizedNeighbor is a class for optimized nearest neigbhor search in organized point clouds...
void clear()
Removes all points in a cloud and sets the width and height to 0.
::pcl::PCLPointCloud2 cloud
search::KdTree is a wrapper class which inherits the pcl::KdTree class for performing search function...