|
Point Cloud Library (PCL)
1.6.0
|
PCL histogram visualizer main class. More...
#include <pcl/visualization/histogram_visualizer.h>
Classes | |
| struct | ExitCallback |
| struct | ExitMainLoopTimerCallback |
Public Member Functions | |
| PCLHistogramVisualizer () | |
| PCL histogram visualizer constructor. | |
| virtual | ~PCLHistogramVisualizer () |
| void | spinOnce (int time=1) |
| Spin once method. | |
| void | spin () |
| Spin method. | |
| void | setBackgroundColor (const double &r, const double &g, const double &b, int viewport=0) |
| Set the viewport's background color. | |
| template<typename PointT > | |
| bool | addFeatureHistogram (const pcl::PointCloud< PointT > &cloud, int hsize, const std::string &id="cloud", int win_width=640, int win_height=200) |
| Add a histogram feature to screen as a separate window, from a cloud containing a single histogram. | |
| bool | addFeatureHistogram (const sensor_msgs::PointCloud2 &cloud, const std::string &field_name, const std::string &id="cloud", int win_width=640, int win_height=200) |
| Add a histogram feature to screen as a separate window from a cloud containing a single histogram. | |
| template<typename PointT > | |
| bool | addFeatureHistogram (const pcl::PointCloud< PointT > &cloud, const std::string &field_name, const int index, const std::string &id="cloud", int win_width=640, int win_height=200) |
| Add a histogram feature to screen as a separate window. | |
| bool | addFeatureHistogram (const sensor_msgs::PointCloud2 &cloud, const std::string &field_name, const int index, const std::string &id="cloud", int win_width=640, int win_height=200) |
| Add a histogram feature to screen as a separate window. | |
| template<typename PointT > | |
| bool | updateFeatureHistogram (const pcl::PointCloud< PointT > &cloud, int hsize, const std::string &id="cloud") |
| Update a histogram feature that is already on screen, with a cloud containing a single histogram. | |
| bool | updateFeatureHistogram (const sensor_msgs::PointCloud2 &cloud, const std::string &field_name, const std::string &id="cloud") |
| Update a histogram feature that is already on screen, with a cloud containing a single histogram. | |
| template<typename PointT > | |
| bool | updateFeatureHistogram (const pcl::PointCloud< PointT > &cloud, const std::string &field_name, const int index, const std::string &id="cloud") |
| Update a histogram feature that is already on screen, with a cloud containing a single histogram. | |
| bool | updateFeatureHistogram (const sensor_msgs::PointCloud2 &cloud, const std::string &field_name, const int index, const std::string &id="cloud") |
| Update a histogram feature that is already on screen, with a cloud containing a single histogram. | |
| void | setGlobalYRange (float minp, float maxp) |
| Set the Y range to minp-maxp for all histograms. | |
| void | updateWindowPositions () |
| Update all window positions on screen so that they fit. | |
PCL histogram visualizer main class.
Definition at line 55 of file histogram_visualizer.h.
PCL histogram visualizer constructor.
| virtual pcl::visualization::PCLHistogramVisualizer::~PCLHistogramVisualizer | ( | ) | [inline, virtual] |
Definition at line 61 of file histogram_visualizer.h.
| bool pcl::visualization::PCLHistogramVisualizer::addFeatureHistogram | ( | const pcl::PointCloud< PointT > & | cloud, |
| int | hsize, | ||
| const std::string & | id = "cloud", |
||
| int | win_width = 640, |
||
| int | win_height = 200 |
||
| ) |
Add a histogram feature to screen as a separate window, from a cloud containing a single histogram.
| [in] | cloud | the PointCloud dataset containing the histogram |
| [in] | hsize | the length of the histogram |
| [in] | id | the point cloud object id (default: cloud) |
| [in] | win_width | the width of the window |
| [in] | win_height | the height of the window |
Definition at line 45 of file histogram_visualizer.hpp.
| bool pcl::visualization::PCLHistogramVisualizer::addFeatureHistogram | ( | const sensor_msgs::PointCloud2 & | cloud, |
| const std::string & | field_name, | ||
| const std::string & | id = "cloud", |
||
| int | win_width = 640, |
||
| int | win_height = 200 |
||
| ) |
Add a histogram feature to screen as a separate window from a cloud containing a single histogram.
| [in] | cloud | the PointCloud dataset containing the histogram |
| [in] | field_name | the field name containing the histogram |
| [in] | id | the point cloud object id (default: cloud) |
| [in] | win_width | the width of the window |
| [in] | win_height | the height of the window |
| bool pcl::visualization::PCLHistogramVisualizer::addFeatureHistogram | ( | const pcl::PointCloud< PointT > & | cloud, |
| const std::string & | field_name, | ||
| const int | index, | ||
| const std::string & | id = "cloud", |
||
| int | win_width = 640, |
||
| int | win_height = 200 |
||
| ) |
Add a histogram feature to screen as a separate window.
| [in] | cloud | the PointCloud dataset containing the histogram |
| [in] | field_name | the field name containing the histogram |
| [in] | index | the point index to extract the histogram from |
| [in] | id | the point cloud object id (default: cloud) |
| [in] | win_width | the width of the window |
| [in] | win_height | the height of the window |
Definition at line 81 of file histogram_visualizer.hpp.
| bool pcl::visualization::PCLHistogramVisualizer::addFeatureHistogram | ( | const sensor_msgs::PointCloud2 & | cloud, |
| const std::string & | field_name, | ||
| const int | index, | ||
| const std::string & | id = "cloud", |
||
| int | win_width = 640, |
||
| int | win_height = 200 |
||
| ) |
Add a histogram feature to screen as a separate window.
| [in] | cloud | the PointCloud dataset containing the histogram |
| [in] | field_name | the field name containing the histogram |
| [in] | index | the point index to extract the histogram from |
| [in] | id | the point cloud object id (default: cloud) |
| [in] | win_width | the width of the window |
| [in] | win_height | the height of the window |
| void pcl::visualization::PCLHistogramVisualizer::setBackgroundColor | ( | const double & | r, |
| const double & | g, | ||
| const double & | b, | ||
| int | viewport = 0 |
||
| ) |
| void pcl::visualization::PCLHistogramVisualizer::setGlobalYRange | ( | float | minp, |
| float | maxp | ||
| ) |
Set the Y range to minp-maxp for all histograms.
| [in] | minp | the minimum Y range |
| [in] | maxp | the maximum Y range |
Spin method.
Calls the interactor and runs an internal loop.
| void pcl::visualization::PCLHistogramVisualizer::spinOnce | ( | int | time = 1 | ) |
Spin once method.
Calls the interactor and updates the screen once.
| [in] | time | - How long (in ms) should the visualization loop be allowed to run. |
| bool pcl::visualization::PCLHistogramVisualizer::updateFeatureHistogram | ( | const pcl::PointCloud< PointT > & | cloud, |
| int | hsize, | ||
| const std::string & | id = "cloud" |
||
| ) |
Update a histogram feature that is already on screen, with a cloud containing a single histogram.
| [in] | cloud | the PointCloud dataset containing the histogram |
| [in] | hsize | the length of the histogram |
| [in] | id | the point cloud object id (default: cloud) |
Definition at line 138 of file histogram_visualizer.hpp.
| bool pcl::visualization::PCLHistogramVisualizer::updateFeatureHistogram | ( | const sensor_msgs::PointCloud2 & | cloud, |
| const std::string & | field_name, | ||
| const std::string & | id = "cloud" |
||
| ) |
Update a histogram feature that is already on screen, with a cloud containing a single histogram.
| [in] | cloud | the PointCloud dataset containing the histogram |
| [in] | field_name | the field name containing the histogram |
| [in] | id | the point cloud object id (default: cloud) |
| bool pcl::visualization::PCLHistogramVisualizer::updateFeatureHistogram | ( | const pcl::PointCloud< PointT > & | cloud, |
| const std::string & | field_name, | ||
| const int | index, | ||
| const std::string & | id = "cloud" |
||
| ) |
Update a histogram feature that is already on screen, with a cloud containing a single histogram.
| [in] | cloud | the PointCloud dataset containing the histogram |
| [in] | field_name | the field name containing the histogram |
| [in] | index | the point index to extract the histogram from |
| [in] | id | the point cloud object id (default: cloud) |
Definition at line 168 of file histogram_visualizer.hpp.
| bool pcl::visualization::PCLHistogramVisualizer::updateFeatureHistogram | ( | const sensor_msgs::PointCloud2 & | cloud, |
| const std::string & | field_name, | ||
| const int | index, | ||
| const std::string & | id = "cloud" |
||
| ) |
Update a histogram feature that is already on screen, with a cloud containing a single histogram.
| [in] | cloud | the PointCloud dataset containing the histogram |
| [in] | field_name | the field name containing the histogram |
| [in] | index | the point index to extract the histogram from |
| [in] | id | the point cloud object id (default: cloud) |
Update all window positions on screen so that they fit.
1.7.6.1