|
Point Cloud Library (PCL)
1.6.0
|
Octree pointcloud voxel centroid class More...
#include <pcl/octree/octree_pointcloud_voxelcentroid.h>


Public Types | |
| typedef OctreePointCloud < PointT, LeafT, BranchT > ::AlignedPointTVector | AlignedPointTVector |
| typedef OctreeBase< int, LeafT, BranchT > | Base |
| typedef OctreeBase< int, LeafT, BranchT >::LeafNode | LeafNode |
| typedef OctreeBase< int, LeafT, BranchT >::BranchNode | BranchNode |
| typedef OctreeDepthFirstIterator< int, OctreeBase< int, LeafT, BranchT > > | Iterator |
| typedef const OctreeDepthFirstIterator< int, OctreeBase< int, LeafT, BranchT > > | ConstIterator |
| typedef OctreeLeafNodeIterator < int, OctreeBase< int, LeafT, BranchT > > | LeafNodeIterator |
| typedef const OctreeLeafNodeIterator< int, OctreeBase< int, LeafT, BranchT > > | ConstLeafNodeIterator |
| typedef OctreeDepthFirstIterator< int, OctreeBase< int, LeafT, BranchT > > | DepthFirstIterator |
| typedef const OctreeDepthFirstIterator< int, OctreeBase< int, LeafT, BranchT > > | ConstDepthFirstIterator |
| typedef OctreeBreadthFirstIterator < int, OctreeBase< int, LeafT, BranchT > > | BreadthFirstIterator |
| typedef const OctreeBreadthFirstIterator < int, OctreeBase< int, LeafT, BranchT > > | ConstBreadthFirstIterator |
| typedef boost::shared_ptr < std::vector< int > > | IndicesPtr |
| typedef boost::shared_ptr < const std::vector< int > > | IndicesConstPtr |
| typedef pcl::PointCloud< PointT > | PointCloud |
| typedef boost::shared_ptr < PointCloud > | PointCloudPtr |
| typedef boost::shared_ptr < const PointCloud > | PointCloudConstPtr |
| typedef OctreePointCloud < PointT, LeafT, OctreeBase < int, LeafT > > | SingleBuffer |
| typedef OctreePointCloud < PointT, LeafT, Octree2BufBase< int, LeafT > > | DoubleBuffer |
| typedef boost::shared_ptr < OctreePointCloud< PointT, LeafT, OctreeBase< int, LeafT, BranchT > > > | Ptr |
| typedef boost::shared_ptr < const OctreePointCloud < PointT, LeafT, OctreeBase < int, LeafT, BranchT > > > | ConstPtr |
| typedef OctreeBase< int, OctreeContainerDataT< int > , OctreeContainerEmpty< int > > | SingleObjLeafContainer |
| typedef OctreeBase< int, OctreeContainerDataTVector < int >, OctreeContainerEmpty < int > > | MultipleObjsLeafContainer |
| typedef OctreeBase< int, LeafT, BranchT > | OctreeT |
Public Member Functions | |
| OctreePointCloudVoxelCentroid (const double resolution_arg) | |
| OctreePointCloudVoxelCentroids class constructor. More... | |
| virtual | ~OctreePointCloudVoxelCentroid () |
| Empty class deconstructor. More... | |
| unsigned int | getVoxelCentroids (AlignedPointTVector &voxelCentroidList_arg) |
| Get PointT vector of centroids for all occupied voxels. More... | |
| bool | getVoxelCentroidAtPoint (const PointT &point_arg, PointT &voxelCentroid_arg) |
| Get centroid for a single voxel addressed by a PointT point. More... | |
| bool | getVoxelCentroidAtPoint (const int &pointIdx_arg, PointT &voxelCentroid_arg) |
| Get centroid for a single voxel addressed by a PointT point from input cloud. More... | |
| void | setInputCloud (const PointCloudConstPtr &cloud_arg, const IndicesConstPtr &indices_arg=IndicesConstPtr()) |
| Provide a pointer to the input data set. More... | |
| IndicesConstPtr const | getIndices () const |
| Get a pointer to the vector of indices used. More... | |
| PointCloudConstPtr | getInputCloud () const |
| Get a pointer to the input point cloud dataset. More... | |
| void | setEpsilon (double eps) |
| Set the search epsilon precision (error bound) for nearest neighbors searches. More... | |
| double | getEpsilon () const |
| Get the search epsilon precision (error bound) for nearest neighbors searches. More... | |
| void | setResolution (double resolution_arg) |
| Set/change the octree voxel resolution. More... | |
| double | getResolution () const |
| Get octree voxel resolution. More... | |
| unsigned int | getTreeDepth () const |
| Get the maximum depth of the octree. More... | |
| void | addPointsFromInputCloud () |
| Add points from input point cloud to octree. More... | |
| void | addPointFromCloud (const int pointIdx_arg, IndicesPtr indices_arg) |
| Add point at given index from input point cloud to octree. More... | |
| void | addPointToCloud (const PointT &point_arg, PointCloudPtr cloud_arg) |
| Add point simultaneously to octree and input point cloud. More... | |
| void | addPointToCloud (const PointT &point_arg, PointCloudPtr cloud_arg, IndicesPtr indices_arg) |
| Add point simultaneously to octree and input point cloud. More... | |
| bool | isVoxelOccupiedAtPoint (const PointT &point_arg) const |
| Check if voxel at given point exist. More... | |
| bool | isVoxelOccupiedAtPoint (const double pointX_arg, const double pointY_arg, const double pointZ_arg) const |
| Check if voxel at given point coordinates exist. More... | |
| bool | isVoxelOccupiedAtPoint (const int &pointIdx_arg) const |
| Check if voxel at given point from input cloud exist. More... | |
| void | deleteTree (bool freeMemory_arg=false) |
| Delete the octree structure and its leaf nodes. More... | |
| int | getOccupiedVoxelCenters (AlignedPointTVector &voxelCenterList_arg) const |
| Get a PointT vector of centers of all occupied voxels. More... | |
| int | getApproxIntersectedVoxelCentersBySegment (const Eigen::Vector3f &origin, const Eigen::Vector3f &end, AlignedPointTVector &voxel_center_list, float precision=0.2) |
| Get a PointT vector of centers of voxels intersected by a line segment. More... | |
| void | deleteVoxelAtPoint (const PointT &point_arg) |
| Delete leaf node / voxel at given point. More... | |
| void | deleteVoxelAtPoint (const int &pointIdx_arg) |
| Delete leaf node / voxel at given point from input cloud. More... | |
| void | defineBoundingBox () |
| Investigate dimensions of pointcloud data set and define corresponding bounding box for octree. More... | |
| void | defineBoundingBox (const double minX_arg, const double minY_arg, const double minZ_arg, const double maxX_arg, const double maxY_arg, const double maxZ_arg) |
| Define bounding box for octree. More... | |
| void | defineBoundingBox (const double maxX_arg, const double maxY_arg, const double maxZ_arg) |
| Define bounding box for octree. More... | |
| void | defineBoundingBox (const double cubeLen_arg) |
| Define bounding box cube for octree. More... | |
| void | getBoundingBox (double &minX_arg, double &minY_arg, double &minZ_arg, double &maxX_arg, double &maxY_arg, double &maxZ_arg) const |
| Get bounding box for octree. More... | |
| double | getVoxelSquaredDiameter (unsigned int treeDepth_arg) const |
| Calculates the squared diameter of a voxel at given tree depth. More... | |
| double | getVoxelSquaredDiameter () const |
| Calculates the squared diameter of a voxel at leaf depth. More... | |
| double | getVoxelSquaredSideLen (unsigned int treeDepth_arg) const |
| Calculates the squared voxel cube side length at given tree depth. More... | |
| double | getVoxelSquaredSideLen () const |
| Calculates the squared voxel cube side length at leaf level. More... | |
| void | getVoxelBounds (OctreeIteratorBase< int, OctreeBase< int, LeafT, BranchT > > &iterator, Eigen::Vector3f &min_pt, Eigen::Vector3f &max_pt) |
| Generate bounds of the current voxel of an octree iterator. More... | |
| void | setMaxVoxelIndex (unsigned int maxVoxelIndex_arg) |
| Set the maximum amount of voxels per dimension. More... | |
| void | setTreeDepth (unsigned int depth_arg) |
| Set the maximum depth of the octree. More... | |
| void | enableDynamicDepth (size_t maxObjsPerLeaf) |
| Enable dynamic octree structure. More... | |
| void | addData (unsigned int idxX_arg, unsigned int idxY_arg, unsigned int idxZ_arg, const int &data_arg) |
| Add a const DataT element to leaf node at (idxX, idxY, idxZ). More... | |
| bool | getData (unsigned int idxX_arg, unsigned int idxY_arg, unsigned int idxZ_arg, int &data_arg) const |
| Retrieve a DataT element from leaf node at (idxX, idxY, idxZ). More... | |
| bool | existLeaf (unsigned int idxX_arg, unsigned int idxY_arg, unsigned int idxZ_arg) const |
| Check for the existence of leaf node at (idxX, idxY, idxZ). More... | |
| void | removeLeaf (unsigned int idxX_arg, unsigned int idxY_arg, unsigned int idxZ_arg) |
| Remove leaf node at (idxX_arg, idxY_arg, idxZ_arg). More... | |
| std::size_t | getLeafCount () const |
| Return the amount of existing leafs in the octree. More... | |
| std::size_t | getBranchCount () const |
| Return the amount of existing branches in the octree. More... | |
| void | serializeTree (std::vector< char > &binaryTreeOut_arg) |
| Serialize octree into a binary output vector describing its branch node structure. More... | |
| void | serializeTree (std::vector< char > &binaryTreeOut_arg, std::vector< int > &dataVector_arg) |
| Serialize octree into a binary output vector describing its branch node structure and push all DataT elements stored in the octree to a vector. More... | |
| void | serializeLeafs (std::vector< int > &dataVector_arg) |
| Outputs a vector of all DataT elements that are stored within the octree leaf nodes. More... | |
| void | deserializeTree (std::vector< char > &binaryTreeIn_arg) |
| Deserialize a binary octree description vector and create a corresponding octree structure. More... | |
| void | deserializeTree (std::vector< char > &binaryTreeIn_arg, std::vector< int > &dataVector_arg) |
| Deserialize a binary octree description and create a corresponding octree structure. More... | |
Octree pointcloud voxel centroid class
Definition at line 63 of file octree_pointcloud_voxelcentroid.h.
| typedef OctreePointCloud<PointT, LeafT, BranchT>::AlignedPointTVector pcl::octree::OctreePointCloudVoxelCentroid< PointT, LeafT, BranchT >::AlignedPointTVector |
Definition at line 70 of file octree_pointcloud_voxelcentroid.h.
|
inherited |
Definition at line 89 of file octree_pointcloud.h.
|
inherited |
Definition at line 92 of file octree_pointcloud.h.
|
inherited |
Definition at line 103 of file octree_pointcloud.h.
|
inherited |
Definition at line 104 of file octree_pointcloud.h.
|
inherited |
Definition at line 102 of file octree_pointcloud.h.
|
inherited |
Definition at line 96 of file octree_pointcloud.h.
|
inherited |
Definition at line 99 of file octree_pointcloud.h.
|
inherited |
Definition at line 129 of file octree_pointcloud.h.
|
inherited |
Definition at line 101 of file octree_pointcloud.h.
|
inherited |
Definition at line 125 of file octree_pointcloud.h.
|
inherited |
Definition at line 117 of file octree_pointcloud.h.
|
inherited |
Definition at line 116 of file octree_pointcloud.h.
|
inherited |
Definition at line 95 of file octree_pointcloud.h.
|
inherited |
Definition at line 91 of file octree_pointcloud.h.
|
inherited |
Definition at line 98 of file octree_pointcloud.h.
|
inherited |
Definition at line 70 of file octree_base.h.
|
inherited |
Definition at line 72 of file octree_base.h.
|
inherited |
Definition at line 119 of file octree_pointcloud.h.
|
inherited |
Definition at line 121 of file octree_pointcloud.h.
|
inherited |
Definition at line 120 of file octree_pointcloud.h.
|
inherited |
Definition at line 128 of file octree_pointcloud.h.
|
inherited |
Definition at line 124 of file octree_pointcloud.h.
|
inherited |
Definition at line 69 of file octree_base.h.
|
inline |
OctreePointCloudVoxelCentroids class constructor.
| resolution_arg,: | octree resolution at lowest octree level |
Definition at line 75 of file octree_pointcloud_voxelcentroid.h.
|
inlinevirtual |
Empty class deconstructor.
Definition at line 82 of file octree_pointcloud_voxelcentroid.h.
|
inherited |
Add a const DataT element to leaf node at (idxX, idxY, idxZ).
If leaf node does not exist, it is created and added to the octree.
| idxX_arg,: | index of leaf node in the X axis. |
| idxY_arg,: | index of leaf node in the Y axis. |
| idxZ_arg,: | index of leaf node in the Z axis. |
| data_arg,: | const reference to DataT object to be added. |
|
inherited |
Add point at given index from input point cloud to octree.
Index will be also added to indices vector.
| [in] | pointIdx_arg | index of point to be added |
| [in] | indices_arg | pointer to indices vector of the dataset (given by setInputCloud) |
|
inherited |
Add points from input point cloud to octree.
|
inherited |
Add point simultaneously to octree and input point cloud.
| [in] | point_arg | point to be added |
| [in] | cloud_arg | pointer to input point cloud dataset (given by setInputCloud) |
|
inherited |
Add point simultaneously to octree and input point cloud.
A corresponding index will be added to the indices vector.
| [in] | point_arg | point to be added |
| [in] | cloud_arg | pointer to input point cloud dataset (given by setInputCloud) |
| [in] | indices_arg | pointer to indices vector of the dataset (given by setInputCloud) |
|
inherited |
Investigate dimensions of pointcloud data set and define corresponding bounding box for octree.
|
inherited |
Define bounding box for octree.
| [in] | minX_arg | X coordinate of lower bounding box corner |
| [in] | minY_arg | Y coordinate of lower bounding box corner |
| [in] | minZ_arg | Z coordinate of lower bounding box corner |
| [in] | maxX_arg | X coordinate of upper bounding box corner |
| [in] | maxY_arg | Y coordinate of upper bounding box corner |
| [in] | maxZ_arg | Z coordinate of upper bounding box corner |
|
inherited |
Define bounding box for octree.
| [in] | maxX_arg | X coordinate of upper bounding box corner |
| [in] | maxY_arg | Y coordinate of upper bounding box corner |
| [in] | maxZ_arg | Z coordinate of upper bounding box corner |
|
inherited |
Define bounding box cube for octree.
| [in] | cubeLen_arg | side length of bounding box cube. |
|
inlineinherited |
Delete the octree structure and its leaf nodes.
| freeMemory_arg,: | if "true", allocated octree nodes are deleted, otherwise they are pushed to the octree node pool |
Definition at line 243 of file octree_pointcloud.h.
|
inherited |
Delete leaf node / voxel at given point.
| [in] | point_arg | point addressing the voxel to be deleted. |
|
inherited |
Delete leaf node / voxel at given point from input cloud.
| [in] | pointIdx_arg | index of point addressing the voxel to be deleted. |
|
inherited |
Deserialize a binary octree description vector and create a corresponding octree structure.
Leaf nodes are initialized with getDataTByKey(..).
| binaryTreeIn_arg,: | reference to input vector for reading binary tree structure. |
|
inherited |
Deserialize a binary octree description and create a corresponding octree structure.
Leaf nodes are initialized with DataT elements from the dataVector.
| binaryTreeIn_arg,: | reference to input vector for reading binary tree structure. |
| dataVector_arg,: | reference to DataT vector that provides DataT objects for initializing leaf nodes. |
|
inlineinherited |
Enable dynamic octree structure.
Definition at line 157 of file octree_base.h.
|
inherited |
Check for the existence of leaf node at (idxX, idxY, idxZ).
| idxX_arg,: | index of leaf node in the X axis. |
| idxY_arg,: | index of leaf node in the Y axis. |
| idxZ_arg,: | index of leaf node in the Z axis. |
|
inherited |
Get a PointT vector of centers of voxels intersected by a line segment.
This returns a approximation of the actual intersected voxels by walking along the line with small steps. Voxels are ordered, from closest to furthest w.r.t. the origin.
| [in] | origin | origin of the line segment |
| [in] | end | end of the line segment |
| [out] | voxel_center_list | results are written to this vector of PointT elements |
| [in] | precision | determines the size of the steps: step_size = octree_resolution x precision |
|
inherited |
Get bounding box for octree.
| [in] | minX_arg | X coordinate of lower bounding box corner |
| [in] | minY_arg | Y coordinate of lower bounding box corner |
| [in] | minZ_arg | Z coordinate of lower bounding box corner |
| [in] | maxX_arg | X coordinate of upper bounding box corner |
| [in] | maxY_arg | Y coordinate of upper bounding box corner |
| [in] | maxZ_arg | Z coordinate of upper bounding box corner |
|
inlineinherited |
Return the amount of existing branches in the octree.
Definition at line 213 of file octree_base.h.
|
inherited |
Retrieve a DataT element from leaf node at (idxX, idxY, idxZ).
It returns false if leaf node does not exist.
| idxX_arg,: | index of leaf node in the X axis. |
| idxY_arg,: | index of leaf node in the Y axis. |
| idxZ_arg,: | index of leaf node in the Z axis. |
| data_arg,: | reference to DataT object that contains content of leaf node if search was successful. |
|
inlineinherited |
Get the search epsilon precision (error bound) for nearest neighbors searches.
Definition at line 172 of file octree_pointcloud.h.
|
inlineinherited |
Get a pointer to the vector of indices used.
Definition at line 150 of file octree_pointcloud.h.
|
inlineinherited |
Get a pointer to the input point cloud dataset.
Definition at line 158 of file octree_pointcloud.h.
|
inlineinherited |
Return the amount of existing leafs in the octree.
Definition at line 204 of file octree_base.h.
|
inherited |
Get a PointT vector of centers of all occupied voxels.
| [out] | voxelCenterList_arg | results are written to this vector of PointT elements |
|
inlineinherited |
Get octree voxel resolution.
Definition at line 193 of file octree_pointcloud.h.
|
inlineinherited |
Get the maximum depth of the octree.
Definition at line 201 of file octree_pointcloud.h.
|
inlineinherited |
Generate bounds of the current voxel of an octree iterator.
| [in] | iterator,: | octree iterator |
| [out] | min_pt | lower bound of voxel |
| [out] | max_pt | upper bound of voxel |
Definition at line 393 of file octree_pointcloud.h.
|
inline |
Get centroid for a single voxel addressed by a PointT point.
| point_arg,: | point addressing a voxel in octree |
| voxelCentroid_arg,: | centroid is written to this PointT reference |
Definition at line 172 of file octree_pointcloud_voxelcentroid.h.
|
inline |
Get centroid for a single voxel addressed by a PointT point from input cloud.
| pointIdx_arg,: | point index from input cloud addressing a voxel in octree |
| voxelCentroid_arg,: | centroid is written to this PointT reference |
Definition at line 218 of file octree_pointcloud_voxelcentroid.h.
|
inline |
Get PointT vector of centroids for all occupied voxels.
| voxelCentroidList_arg,: | results are written to this vector of PointT elements |
Definition at line 91 of file octree_pointcloud_voxelcentroid.h.
|
inherited |
Calculates the squared diameter of a voxel at given tree depth.
| [in] | treeDepth_arg | depth/level in octree |
|
inlineinherited |
Calculates the squared diameter of a voxel at leaf depth.
Definition at line 368 of file octree_pointcloud.h.
|
inherited |
Calculates the squared voxel cube side length at given tree depth.
| [in] | treeDepth_arg | depth/level in octree |
|
inlineinherited |
Calculates the squared voxel cube side length at leaf level.
Definition at line 383 of file octree_pointcloud.h.
|
inherited |
Check if voxel at given point exist.
| [in] | point_arg | point to be checked |
|
inherited |
Check if voxel at given point coordinates exist.
| [in] | pointX_arg | X coordinate of point to be checked |
| [in] | pointY_arg | Y coordinate of point to be checked |
| [in] | pointZ_arg | Z coordinate of point to be checked |
|
inherited |
Check if voxel at given point from input cloud exist.
| [in] | pointIdx_arg | point to be checked |
|
inherited |
Remove leaf node at (idxX_arg, idxY_arg, idxZ_arg).
| idxX_arg,: | index of leaf node in the X axis. |
| idxY_arg,: | index of leaf node in the Y axis. |
| idxZ_arg,: | index of leaf node in the Z axis. |
|
inherited |
Outputs a vector of all DataT elements that are stored within the octree leaf nodes.
| dataVector_arg,: | reference to DataT vector that receives a copy of all DataT objects in the octree. |
|
inherited |
Serialize octree into a binary output vector describing its branch node structure.
| binaryTreeOut_arg,: | reference to output vector for writing binary tree structure. |
|
inherited |
Serialize octree into a binary output vector describing its branch node structure and push all DataT elements stored in the octree to a vector.
| binaryTreeOut_arg,: | reference to output vector for writing binary tree structure. |
| dataVector_arg,: | reference of DataT vector that receives a copy of all DataT objects in the octree |
|
inlineinherited |
Set the search epsilon precision (error bound) for nearest neighbors searches.
| [in] | eps | precision (error bound) for nearest neighbors searches |
Definition at line 166 of file octree_pointcloud.h.
|
inlineinherited |
Provide a pointer to the input data set.
| [in] | cloud_arg | the const boost shared pointer to a PointCloud message |
| [in] | indices_arg | the point indices subset that is to be used from cloud - if 0 the whole point cloud is used |
Definition at line 138 of file octree_pointcloud.h.
|
inherited |
Set the maximum amount of voxels per dimension.
| [in] | maxVoxelIndex_arg | maximum amount of voxels per dimension |
|
inlineinherited |
Set/change the octree voxel resolution.
| [in] | resolution_arg | side length of voxels at lowest tree level |
Definition at line 180 of file octree_pointcloud.h.
|
inherited |
Set the maximum depth of the octree.
| depth_arg,: | maximum depth of octree |
1.8.4