Point Cloud Library (PCL)  1.14.1-dev
List of all members | Public Member Functions
pcl::BinaryTreeThresholdBasedBranchEstimator Class Reference

Branch estimator for binary trees where the branch is computed only from the threshold. More...

#include <pcl/ml/branch_estimator.h>

+ Inheritance diagram for pcl::BinaryTreeThresholdBasedBranchEstimator:
+ Collaboration diagram for pcl::BinaryTreeThresholdBasedBranchEstimator:

Public Member Functions

 BinaryTreeThresholdBasedBranchEstimator ()=default
 Constructor. More...
 
 ~BinaryTreeThresholdBasedBranchEstimator () override=default
 Destructor. More...
 
std::size_t getNumOfBranches () const override
 Returns the number of branches the corresponding tree has. More...
 
void computeBranchIndex (const float result, const unsigned char flag, const float threshold, unsigned char &branch_index) const override
 Computes the branch index for the specified result. More...
 
- Public Member Functions inherited from pcl::BranchEstimator
virtual ~BranchEstimator ()=default
 Destructor. More...
 

Detailed Description

Branch estimator for binary trees where the branch is computed only from the threshold.

Definition at line 72 of file branch_estimator.h.

Constructor & Destructor Documentation

◆ BinaryTreeThresholdBasedBranchEstimator()

pcl::BinaryTreeThresholdBasedBranchEstimator::BinaryTreeThresholdBasedBranchEstimator ( )
inlinedefault

Constructor.

◆ ~BinaryTreeThresholdBasedBranchEstimator()

pcl::BinaryTreeThresholdBasedBranchEstimator::~BinaryTreeThresholdBasedBranchEstimator ( )
inlineoverridedefault

Destructor.

Member Function Documentation

◆ computeBranchIndex()

void pcl::BinaryTreeThresholdBasedBranchEstimator::computeBranchIndex ( const float  result,
const unsigned char  flag,
const float  threshold,
unsigned char &  branch_index 
) const
inlineoverridevirtual

Computes the branch index for the specified result.

Parameters
[in]resultthe result the branch index will be computed for
[in]flagthe flag corresponding to the specified result
[in]thresholdthe threshold used to compute the branch index
[out]branch_indexthe destination for the computed branch index

Implements pcl::BranchEstimator.

Definition at line 94 of file branch_estimator.h.

References pcl::utils::ignore().

◆ getNumOfBranches()

std::size_t pcl::BinaryTreeThresholdBasedBranchEstimator::getNumOfBranches ( ) const
inlineoverridevirtual

Returns the number of branches the corresponding tree has.

Implements pcl::BranchEstimator.

Definition at line 81 of file branch_estimator.h.


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