Point Cloud Library (PCL)  1.9.1-dev
List of all members | Public Member Functions | Protected Attributes
pcl::FeatureHistogram Class Reference

Type for histograms for computing mean and variance of some floats. More...

#include <pcl/common/feature_histogram.h>

Public Member Functions

 FeatureHistogram (const 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...
 
size_t getNumberOfElements () const
 Get the number of elements was added to the histogram. More...
 
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...
 
size_t number_of_elements_
 Number of values was added to the histogram. More...
 
size_t number_of_bins_
 Number of bins. More...
 

Detailed Description

Type for histograms for computing mean and variance of some floats.

Author
Timur Ibadov (ibado.nosp@m.v.ti.nosp@m.mur@g.nosp@m.mail.nosp@m..com)

Definition at line 50 of file feature_histogram.h.

Constructor & Destructor Documentation

pcl::FeatureHistogram::FeatureHistogram ( const size_t  number_of_bins,
const float  min,
const float  max 
)

Public constructor.

Parameters
[in]number_of_binsnumber of bins in the histogram.
[in]minlower threshold.
[in]maxupper threshold.
virtual pcl::FeatureHistogram::~FeatureHistogram ( )
virtual

Public destructor.

Member Function Documentation

void pcl::FeatureHistogram::addValue ( float  value)

Increase a bin, that corresponds the value.

Parameters
[in]valuenew value.
float pcl::FeatureHistogram::getMeanValue ( )

Get value, corresponds to the greatest bin.

Returns
mean value of the greatest bin.
size_t pcl::FeatureHistogram::getNumberOfBins ( ) const

Get number of bins in the histogram.

Returns
number of bins in the histogram.
size_t pcl::FeatureHistogram::getNumberOfElements ( ) const

Get the number of elements was added to the histogram.

Returns
number of elements in the histogram.
float pcl::FeatureHistogram::getThresholdMax ( ) const

Get the upper threshold.

Returns
upper threshold.
float pcl::FeatureHistogram::getThresholdMin ( ) const

Get the lower threshold.

Returns
lower threshold.
float pcl::FeatureHistogram::getVariance ( float  mean)

Get variance of the value.

Returns
variance of the greatest bin.

Member Data Documentation

std::vector<unsigned> pcl::FeatureHistogram::histogram_
protected

Vector, that contain the histogram.

Definition at line 108 of file feature_histogram.h.

size_t pcl::FeatureHistogram::number_of_bins_
protected

Number of bins.

Definition at line 121 of file feature_histogram.h.

size_t pcl::FeatureHistogram::number_of_elements_
protected

Number of values was added to the histogram.

Definition at line 118 of file feature_histogram.h.

float pcl::FeatureHistogram::step_
protected

"Width" of a bin.

Definition at line 115 of file feature_histogram.h.

float pcl::FeatureHistogram::threshold_max_
protected

Max threshold.

Definition at line 113 of file feature_histogram.h.

float pcl::FeatureHistogram::threshold_min_
protected

Min threshold.

Definition at line 111 of file feature_histogram.h.


The documentation for this class was generated from the following file: