Point Cloud Library (PCL)
1.14.1-dev
|
HeightMap2D represents a class for creating a 2D height map from a point cloud and searching for its local maxima More...
#include <pcl/people/height_map_2d.h>
Public Types | |
using | PointCloud = pcl::PointCloud< PointT > |
using | PointCloudPtr = typename PointCloud::Ptr |
using | PointCloudConstPtr = typename PointCloud::ConstPtr |
Public Member Functions | |
HeightMap2D () | |
Constructor. More... | |
virtual | ~HeightMap2D () |
Destructor. More... | |
void | compute (pcl::people::PersonCluster< PointT > &cluster) |
Compute the height map with the projection of cluster points onto the ground plane. More... | |
void | searchLocalMaxima () |
Compute local maxima of the height map. More... | |
void | filterMaxima () |
Filter maxima of the height map by imposing a minimum distance between them. More... | |
void | setInputCloud (PointCloudPtr &cloud) |
Set initial cluster indices. More... | |
void | setGround (Eigen::VectorXf &ground_coeffs) |
Set the ground coefficients. More... | |
void | setBinSize (float bin_size) |
Set bin size for the height map. More... | |
void | setMinimumDistanceBetweenMaxima (float minimum_distance_between_maxima) |
Set minimum distance between maxima. More... | |
void | setSensorPortraitOrientation (bool vertical) |
Set sensor orientation to landscape mode (false) or portrait mode (true). More... | |
std::vector< int > & | getHeightMap () |
Get the height map as a vector of int. More... | |
float | getBinSize () |
Get bin size for the height map. More... | |
float | getMinimumDistanceBetweenMaxima () |
Get minimum distance between maxima of the height map. More... | |
int & | getMaximaNumberAfterFiltering () |
Return the maxima number after the filterMaxima method. More... | |
std::vector< int > & | getMaximaCloudIndicesFiltered () |
Return the point cloud indices corresponding to the maxima computed after the filterMaxima method. More... | |
Protected Attributes | |
Eigen::VectorXf | ground_coeffs_ |
ground plane coefficients More... | |
float | sqrt_ground_coeffs_ |
ground plane normalization factor More... | |
PointCloudPtr | cloud_ |
pointer to the input cloud More... | |
bool | vertical_ |
if true, the sensor is considered to be vertically placed (portrait mode) More... | |
std::vector< int > | buckets_ |
vector with maximum height values for every bin (height map) More... | |
std::vector< int > | buckets_cloud_indices_ |
indices of the pointcloud points with maximum height for every bin More... | |
float | bin_size_ |
bin dimension More... | |
int | maxima_number_ |
number of local maxima in the height map More... | |
std::vector< int > | maxima_indices_ |
contains the position of the maxima in the buckets vector More... | |
std::vector< int > | maxima_cloud_indices_ |
contains the point cloud position of the maxima (indices of the point cloud) More... | |
int | maxima_number_after_filtering_ |
number of local maxima after filtering More... | |
std::vector< int > | maxima_indices_filtered_ |
contains the position of the maxima in the buckets array after filtering More... | |
std::vector< int > | maxima_cloud_indices_filtered_ |
contains the point cloud position of the maxima after filtering More... | |
float | min_dist_between_maxima_ |
minimum allowed distance between maxima More... | |
HeightMap2D represents a class for creating a 2D height map from a point cloud and searching for its local maxima
Definition at line 57 of file height_map_2d.h.
using pcl::people::HeightMap2D< PointT >::PointCloud = pcl::PointCloud<PointT> |
Definition at line 61 of file height_map_2d.h.
using pcl::people::HeightMap2D< PointT >::PointCloudConstPtr = typename PointCloud::ConstPtr |
Definition at line 63 of file height_map_2d.h.
using pcl::people::HeightMap2D< PointT >::PointCloudPtr = typename PointCloud::Ptr |
Definition at line 62 of file height_map_2d.h.
pcl::people::HeightMap2D< PointT >::HeightMap2D |
Constructor.
Definition at line 47 of file height_map_2d.hpp.
|
virtualdefault |
Destructor.
void pcl::people::HeightMap2D< PointT >::compute | ( | pcl::people::PersonCluster< PointT > & | cluster | ) |
Compute the height map with the projection of cluster points onto the ground plane.
[in] | cluster | The PersonCluster used to compute the height map. |
Definition at line 59 of file height_map_2d.hpp.
References pcl::people::PersonCluster< PointT >::getIndices(), pcl::people::PersonCluster< PointT >::getMax(), pcl::people::PersonCluster< PointT >::getMin(), and pcl::PointIndices::indices.
Referenced by pcl::people::HeadBasedSubclustering< PointT >::subcluster().
void pcl::people::HeightMap2D< PointT >::filterMaxima |
Filter maxima of the height map by imposing a minimum distance between them.
Definition at line 202 of file height_map_2d.hpp.
References pcl::geometry::distance().
float pcl::people::HeightMap2D< PointT >::getBinSize |
Get bin size for the height map.
Definition at line 283 of file height_map_2d.hpp.
std::vector< int > & pcl::people::HeightMap2D< PointT >::getHeightMap |
Get the height map as a vector of int.
Definition at line 277 of file height_map_2d.hpp.
std::vector< int > & pcl::people::HeightMap2D< PointT >::getMaximaCloudIndicesFiltered |
Return the point cloud indices corresponding to the maxima computed after the filterMaxima method.
Definition at line 301 of file height_map_2d.hpp.
Referenced by pcl::people::HeadBasedSubclustering< PointT >::subcluster().
int & pcl::people::HeightMap2D< PointT >::getMaximaNumberAfterFiltering |
Return the maxima number after the filterMaxima method.
Definition at line 295 of file height_map_2d.hpp.
Referenced by pcl::people::HeadBasedSubclustering< PointT >::subcluster().
float pcl::people::HeightMap2D< PointT >::getMinimumDistanceBetweenMaxima |
Get minimum distance between maxima of the height map.
Definition at line 289 of file height_map_2d.hpp.
void pcl::people::HeightMap2D< PointT >::searchLocalMaxima |
Compute local maxima of the height map.
Definition at line 119 of file height_map_2d.hpp.
void pcl::people::HeightMap2D< PointT >::setBinSize | ( | float | bin_size | ) |
Set bin size for the height map.
[in] | bin_size | Bin size for the height map (default = 0.06). |
Definition at line 259 of file height_map_2d.hpp.
void pcl::people::HeightMap2D< PointT >::setGround | ( | Eigen::VectorXf & | ground_coeffs | ) |
Set the ground coefficients.
[in] | ground_coeffs | The ground plane coefficients. |
Definition at line 252 of file height_map_2d.hpp.
Referenced by pcl::people::HeadBasedSubclustering< PointT >::subcluster().
void pcl::people::HeightMap2D< PointT >::setInputCloud | ( | PointCloudPtr & | cloud | ) |
Set initial cluster indices.
[in] | cloud | A pointer to the input cloud. |
Definition at line 246 of file height_map_2d.hpp.
Referenced by pcl::people::HeadBasedSubclustering< PointT >::subcluster().
void pcl::people::HeightMap2D< PointT >::setMinimumDistanceBetweenMaxima | ( | float | minimum_distance_between_maxima | ) |
Set minimum distance between maxima.
[in] | minimum_distance_between_maxima | Minimum allowed distance between maxima (default = 0.3). |
Definition at line 265 of file height_map_2d.hpp.
Referenced by pcl::people::HeadBasedSubclustering< PointT >::subcluster().
void pcl::people::HeightMap2D< PointT >::setSensorPortraitOrientation | ( | bool | vertical | ) |
Set sensor orientation to landscape mode (false) or portrait mode (true).
[in] | vertical | Landscape (false) or portrait (true) mode (default = false). |
Definition at line 271 of file height_map_2d.hpp.
Referenced by pcl::people::HeadBasedSubclustering< PointT >::subcluster().
|
protected |
bin dimension
Definition at line 181 of file height_map_2d.h.
|
protected |
vector with maximum height values for every bin (height map)
Definition at line 175 of file height_map_2d.h.
|
protected |
indices of the pointcloud points with maximum height for every bin
Definition at line 178 of file height_map_2d.h.
|
protected |
pointer to the input cloud
Definition at line 169 of file height_map_2d.h.
|
protected |
ground plane coefficients
Definition at line 163 of file height_map_2d.h.
|
protected |
contains the point cloud position of the maxima (indices of the point cloud)
Definition at line 190 of file height_map_2d.h.
|
protected |
contains the point cloud position of the maxima after filtering
Definition at line 199 of file height_map_2d.h.
|
protected |
contains the position of the maxima in the buckets vector
Definition at line 187 of file height_map_2d.h.
|
protected |
contains the position of the maxima in the buckets array after filtering
Definition at line 196 of file height_map_2d.h.
|
protected |
number of local maxima in the height map
Definition at line 184 of file height_map_2d.h.
|
protected |
number of local maxima after filtering
Definition at line 193 of file height_map_2d.h.
|
protected |
minimum allowed distance between maxima
Definition at line 202 of file height_map_2d.h.
|
protected |
ground plane normalization factor
Definition at line 166 of file height_map_2d.h.
|
protected |
if true, the sensor is considered to be vertically placed (portrait mode)
Definition at line 172 of file height_map_2d.h.