Type for histograms for computing mean and variance of some floats. More...
#include <pcl/common/feature_histogram.h>
Public Member Functions | |
FeatureHistogram (const std::size_t number_of_bins, const float min, const float max) | |
Public constructor. More... |
|
virtual | ~FeatureHistogram () |
Public destructor. More... |
|
float | getThresholdMin () const |
Get the lower threshold. More... |
|
float | getThresholdMax () const |
Get the upper threshold. More... |
|
std::size_t | getNumberOfElements () const |
Get the number of elements was added to the histogram. More... |
|
std::size_t | getNumberOfBins () const |
Get number of bins in the histogram. More... |
|
void | addValue (float value) |
Increase a bin, that corresponds the value. More... |
|
float | getMeanValue () |
Get value, corresponds to the greatest bin. More... |
|
float | getVariance (float mean) |
Get variance of the value. More... |
|
Protected Attributes | |
std::vector< unsigned > | histogram_ |
Vector, that contain the histogram. More... |
|
float | threshold_min_ |
Min threshold. More... |
|
float | threshold_max_ |
Max threshold. More... |
|
float | step_ |
"Width" of a bin. More... |
|
std::size_t | number_of_elements_ |
Number of values was added to the histogram. More... |
|
std::size_t | number_of_bins_ |
Number of bins. More... |
|
Type for histograms for computing mean and variance of some floats.
Definition at line 50 of file feature_histogram.h.
pcl::FeatureHistogram::FeatureHistogram | ( | const std::size_t | number_of_bins, |
const float | min, | ||
const float | max | ||
) |
Public constructor.
[in] | number_of_bins | number of bins in the histogram. |
[in] | min | lower threshold. |
[in] | max | upper threshold. |
| virtual |
Public destructor.
void pcl::FeatureHistogram::addValue | ( | float | value | ) |
Increase a bin, that corresponds the value.
[in] | value | new value. |
float pcl::FeatureHistogram::getMeanValue | ( | ) |
Get value, corresponds to the greatest bin.
std::size_t pcl::FeatureHistogram::getNumberOfBins | ( | ) | const |
Get number of bins in the histogram.
std::size_t pcl::FeatureHistogram::getNumberOfElements | ( | ) | const |
Get the number of elements was added to the histogram.
float pcl::FeatureHistogram::getThresholdMax | ( | ) | const |
Get the upper threshold.
float pcl::FeatureHistogram::getThresholdMin | ( | ) | const |
Get the lower threshold.
float pcl::FeatureHistogram::getVariance | ( | float | mean | ) |
Get variance of the value.
| protected |
Vector, that contain the histogram.
Definition at line 108 of file feature_histogram.h.
| protected |
Number of bins.
Definition at line 121 of file feature_histogram.h.
| protected |
Number of values was added to the histogram.
Definition at line 118 of file feature_histogram.h.
| protected |
"Width" of a bin.
Definition at line 115 of file feature_histogram.h.
| protected |
Max threshold.
Definition at line 113 of file feature_histogram.h.
| protected |
Min threshold.
Definition at line 111 of file feature_histogram.h.
© 2009–2012, Willow Garage, Inc.
© 2012–, Open Perception, Inc.
Licensed under the BSD License.
https://pointclouds.org/documentation/classpcl_1_1_feature_histogram.html