PointCloud2BIM Library  1.0
Library to facilitate the transpormation of point clouds into digital BIM representation
Public Member Functions | Static Public Member Functions | List of all members
Histogram Class Reference

Public Member Functions

 Histogram ()
 Constructs empty histogram.
 
 Histogram (BoundingBoxInfo &bbox, double step, int coord)
 Constructs histogram in given bounding box with step size in given direction. More...
 
void addPoint (PointXYZ &p)
 Adds point to the histogram. More...
 
void addPoint (PointXYZNormal &p)
 Adds point to the histogram. More...
 
std::vector< HistogramInfogetHistogram ()
 Returns HistogramInfo. More...
 

Static Public Member Functions

static std::vector< HistogramInfocomputeHistogram (std::vector< PointXYZ > &points, BoundingBoxInfo &bbox, double step, int coord)
 Calculates histogram. More...
 

Constructor & Destructor Documentation

Histogram::Histogram ( BoundingBoxInfo bbox,
double  step,
int  coord 
)
inline

Constructs histogram in given bounding box with step size in given direction.

Parameters
bboxBounding box specifying the histogram ranges
stepStep size
coordCoordinate for which to calculate the histogram

Member Function Documentation

void Histogram::addPoint ( PointXYZ p)
inline

Adds point to the histogram.

Parameters
pPoint to be added
void Histogram::addPoint ( PointXYZNormal p)
inline

Adds point to the histogram.

Parameters
pPoint to be added
static std::vector<HistogramInfo> Histogram::computeHistogram ( std::vector< PointXYZ > &  points,
BoundingBoxInfo bbox,
double  step,
int  coord 
)
inlinestatic

Calculates histogram.

Parameters
pointsPoints for histogram calculation
bboxCalculation bounding box
stepHistogram step
coordHistogram direction
Returns
HistogramInfo
std::vector<HistogramInfo> Histogram::getHistogram ( )
inline

Returns HistogramInfo.

Returns
HistogramInfo

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