41 #ifndef PCL_PEOPLE_HEIGHT_MAP_2D_H_ 42 #define PCL_PEOPLE_HEIGHT_MAP_2D_H_ 44 #include <pcl/people/person_cluster.h> 57 template <
typename Po
intT>
106 setGround (Eigen::VectorXf& ground_coeffs);
208 #include <pcl/people/impl/height_map_2d.hpp> int & getMaximaNumberAfterFiltering()
Return the maxima number after the filterMaxima method.
Eigen::VectorXf ground_coeffs_
ground plane coefficients
pcl::PointCloud< PointT > PointCloud
int maxima_number_
number of local maxima in the height map
HeightMap2D()
Constructor.
This file defines compatibility wrappers for low level I/O functions.
void compute(pcl::people::PersonCluster< PointT > &cluster)
Compute the height map with the projection of cluster points onto the ground plane.
virtual ~HeightMap2D()
Destructor.
void setBinSize(float bin_size)
Set bin size for the height map.
float getBinSize()
Get bin size for the height map.
float min_dist_between_maxima_
minimum allowed distance between maxima
float bin_size_
bin dimension
std::vector< int > buckets_
vector with maximum height values for every bin (height map)
std::vector< int > maxima_cloud_indices_filtered_
contains the point cloud position of the maxima after filtering
PersonCluster represents a class for representing information about a cluster containing a person.
std::vector< int > maxima_cloud_indices_
contains the point cloud position of the maxima (indices of the point cloud)
float sqrt_ground_coeffs_
ground plane normalization factor
void searchLocalMaxima()
Compute local maxima of the height map.
Defines all the PCL implemented PointT point type structures.
std::vector< int > maxima_indices_filtered_
contains the position of the maxima in the buckets array after filtering
void setGround(Eigen::VectorXf &ground_coeffs)
Set the ground coefficients.
boost::shared_ptr< PointCloud > PointCloudPtr
std::vector< int > & getHeightMap()
Get the height map as a vector of int.
PointCloudPtr cloud_
pointer to the input cloud
boost::shared_ptr< const PointCloud > PointCloudConstPtr
std::vector< int > & getMaximaCloudIndicesFiltered()
Return the point cloud indices corresponding to the maxima computed after the filterMaxima method.
std::vector< int > maxima_indices_
contains the position of the maxima in the buckets vector
float getMinimumDistanceBetweenMaxima()
Get minimum distance between maxima of the height map.
void setInputCloud(PointCloudPtr &cloud)
Set initial cluster indices.
PointCloud represents the base class in PCL for storing collections of 3D points.
bool vertical_
if true, the sensor is considered to be vertically placed (portrait mode)
std::vector< int > buckets_cloud_indices_
indices of the pointcloud points with maximum height for every bin
void setMinimumDistanceBetweenMaxima(float minimum_distance_between_maxima)
Set minimum distance between maxima.
int maxima_number_after_filtering_
number of local maxima after filtering
void setSensorPortraitOrientation(bool vertical)
Set sensor orientation to landscape mode (false) or portrait mode (true).
HeightMap2D represents a class for creating a 2D height map from a point cloud and searching for its ...
void filterMaxima()
Filter maxima of the height map by imposing a minimum distance between them.