Point Cloud Library (PCL) 1.12.0
|
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. | |
virtual | ~FeatureHistogram () |
Public destructor. | |
float | getThresholdMin () const |
Get the lower threshold. | |
float | getThresholdMax () const |
Get the upper threshold. | |
std::size_t | getNumberOfElements () const |
Get the number of elements was added to the histogram. | |
std::size_t | getNumberOfBins () const |
Get number of bins in the histogram. | |
void | addValue (float value) |
Increase a bin, that corresponds the value. | |
float | getMeanValue () |
Get value, corresponds to the greatest bin. | |
float | getVariance (float mean) |
Get variance of the value. | |
Protected Attributes | |
std::vector< unsigned > | histogram_ |
Vector, that contain the histogram. | |
float | threshold_min_ |
Min threshold. | |
float | threshold_max_ |
Max threshold. | |
float | step_ |
"Width" of a bin. | |
std::size_t | number_of_elements_ |
Number of values was added to the histogram. | |
std::size_t | number_of_bins_ |
Number of bins. | |
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.
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.
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.