41 #include <pcl/octree/octree_pointcloud.h>
71 const auto* otherContainer =
74 return (this->point_counter_ == otherContainer->point_counter_);
91 return (point_counter_);
114 template <
typename PointT,
115 typename LeafContainerT = OctreePointCloudDensityContainer,
116 typename BranchContainerT = OctreeContainerEmpty>
146 return (point_count);
153 #include <pcl/octree/impl/octree_pointcloud.hpp>
155 #define PCL_INSTANTIATE_OctreePointCloudDensity(T) \
156 template class PCL_EXPORTS pcl::octree::OctreePointCloudDensity<T>;
Octree container class that can serve as a base to construct own leaf node container classes.
Octree pointcloud density leaf node class
uindex_t getPointCounter()
Return point counter.
bool operator==(const OctreeContainerBase &other) const override
Equal comparison operator.
virtual OctreePointCloudDensityContainer * deepCopy() const
deep copy function
OctreePointCloudDensityContainer()=default
Class initialization.
void reset() override
Reset leaf node.
void addPointIndex(index_t) override
Read input data.
~OctreePointCloudDensityContainer() override=default
Empty class deconstructor.
Octree pointcloud density class
~OctreePointCloudDensity() override=default
Empty class deconstructor.
OctreePointCloudDensity(const double resolution_arg)
OctreePointCloudDensity class constructor.
uindex_t getVoxelDensityAtPoint(const PointT &point_arg) const
Get the amount of points within a leaf node voxel which is addressed by a point.
OctreePointCloudDensityContainer * findLeafAtPoint(const PointT &point_arg) const
Find octree leaf node at a given point.
detail::int_type_t< detail::index_type_size, false > uindex_t
Type used for an unsigned index in PCL.
detail::int_type_t< detail::index_type_size, detail::index_type_signed > index_t
Type used for an index in PCL.
A point structure representing Euclidean xyz coordinates, and the RGB color.