Point Cloud Library (PCL)
1.9.1
|
40 #ifndef PCL_OCTREE_POINTCLOUD_ADJACENCY_H_
41 #define PCL_OCTREE_POINTCLOUD_ADJACENCY_H_
43 #include <pcl/octree/boost.h>
44 #include <pcl/octree/octree_pointcloud.h>
45 #include <pcl/octree/octree_pointcloud_adjacency_container.h>
77 typename LeafContainerT = OctreePointCloudAdjacencyContainer<PointT>,
78 typename BranchContainerT = OctreeContainerEmpty>
87 typedef boost::shared_ptr<OctreeAdjacencyT>
Ptr;
88 typedef boost::shared_ptr<const OctreeAdjacencyT>
ConstPtr;
99 typedef boost::adjacency_list<boost::setS, boost::setS, boost::undirectedS, PointT, float>
VoxelAdjacencyList;
100 typedef typename VoxelAdjacencyList::vertex_descriptor
VoxelID;
101 typedef typename VoxelAdjacencyList::edge_descriptor
EdgeID;
112 inline LeafContainerT*
at (
size_t idx) {
return leaf_vector_.at (idx); }
115 inline size_t size ()
const {
return leaf_vector_.size (); }
160 transform_func_ = transform_func;
220 boost::function<void (
PointT &p)> transform_func_;
229 #include <pcl/octree/impl/octree_pointcloud_adjacency.hpp>
231 #endif // PCL_OCTREE_POINTCLOUD_ADJACENCY_H_
OctreeT::BranchNode BranchNode
This file defines compatibility wrappers for low level I/O functions.
VoxelAdjacencyList::edge_descriptor EdgeID
VoxelAdjacencyList::vertex_descriptor VoxelID
double resolution_
Octree resolution.
void computeNeighbors(OctreeKey &key_arg, LeafContainerT *leaf_container)
Fills in the neighbors fields for new voxels.
std::vector< LeafContainerT * > LeafVectorT
OctreePointCloudT::BranchNode BranchNode
PointCloud represents the base class in PCL for storing collections of 3D points.
void addPointToCloud(const PointT &point_arg, PointCloudPtr cloud_arg)
Add point simultaneously to octree and input point cloud.
A point structure representing Euclidean xyz coordinates, and the RGB color.
void addPointsFromInputCloud()
Adds points from cloud to the octree.
virtual void addPointIdx(const int point_idx_arg)
Add point at index from input pointcloud dataset to octree.
void genOctreeKeyforPoint(const PointT &point_arg, OctreeKey &key_arg) const
Generates octree key for specified point (uses transform if provided).
boost::shared_ptr< const PointCloud > PointCloudConstPtr
void setTransformFunction(boost::function< void(PointT &p)> transform_func)
Sets a point transform (and inverse) used to transform the space of the input cloud.
OctreeBase< LeafContainerT, BranchContainerT > OctreeBaseT
boost::shared_ptr< OctreeAdjacencyT > Ptr
A point structure representing Euclidean xyz coordinates.
OctreePointCloudAdjacency< PointT, LeafContainerT, BranchContainerT > OctreeAdjacencyT
Octree pointcloud voxel class which maintains adjacency information for its voxels.
OctreePointCloud< PointT, LeafContainerT, BranchContainerT, OctreeBaseT > OctreePointCloudT
OctreePointCloudT::LeafNode LeafNode
void addPointFromCloud(const int point_idx_arg, IndicesPtr indices_arg)
Add point at given index from input point cloud to octree.
LeafVectorT::const_iterator const_iterator
OctreePointCloudAdjacency(const double resolution_arg)
Constructor.
LeafContainerT * getLeafContainerAtPoint(const PointT &point_arg) const
Gets the leaf container for a given point.
bool testForOcclusion(const PointT &point_arg, const PointXYZ &camera_pos=PointXYZ(0, 0, 0))
Tests whether input point is occluded from specified camera point by other voxels.
void computeVoxelAdjacencyGraph(VoxelAdjacencyList &voxel_adjacency_graph)
Computes an adjacency graph of voxel relations.
virtual ~OctreePointCloudAdjacency()
Empty class destructor.
LeafVectorT::iterator iterator
PointCloudConstPtr input_
Pointer to input point cloud dataset.
boost::shared_ptr< const OctreeAdjacencyT > ConstPtr
OctreeT::LeafNode LeafNode
LeafContainerT * at(size_t idx)
boost::shared_ptr< PointCloud > PointCloudPtr
pcl::PointCloud< PointT > PointCloud
boost::adjacency_list< boost::setS, boost::setS, boost::undirectedS, PointT, float > VoxelAdjacencyList