41#include <pcl/ml/dt/decision_tree.h>
42#include <pcl/ml/feature_handler.h>
43#include <pcl/ml/stats_estimator.h>
49template <
class FeatureType,
58template <
class FeatureType,
67template <
class FeatureType,
85 NodeType* node = &(tree.getRoot());
87 while (node->sub_nodes.size() != 0) {
89 unsigned char flag = 0;
104template <
class FeatureType,
117 std::vector<ExampleIndex>&
examples,
122 NodeType* node = &(tree.getRoot());
124 while (node->sub_nodes.size() != 0) {
126 unsigned char flag = 0;
141template <
class FeatureType,
156 NodeType* node = &(tree.getRoot());
158 while (!node->sub_nodes.empty()) {
160 unsigned char flag = 0;
174template <
class FeatureType,
186 std::vector<ExampleIndex>&
examples,
187 std::vector<NodeType*>& nodes)
191 NodeType* node = &(tree.getRoot());
193 while (node->sub_nodes.size() != 0) {
195 unsigned char flag = 0;
206 nodes.push_back(node);
Iterator class for point clouds with or without given indices.
ConstCloudIterator(const PointCloud< PointT > &cloud)
std::size_t size() const
Size of the range the iterator is going through.
virtual ~DecisionTreeEvaluator()
Destructor.
void getNodes(pcl::DecisionTree< NodeType > &tree, pcl::FeatureHandler< FeatureType, DataSet, ExampleIndex > &feature_handler, pcl::StatsEstimator< LabelType, NodeType, DataSet, ExampleIndex > &stats_estimator, DataSet &data_set, std::vector< ExampleIndex > &examples, std::vector< NodeType * > &nodes)
Evaluates the specified examples using the supplied tree.
DecisionTreeEvaluator()
Constructor.
void evaluateAndAdd(pcl::DecisionTree< NodeType > &tree, pcl::FeatureHandler< FeatureType, DataSet, ExampleIndex > &feature_handler, pcl::StatsEstimator< LabelType, NodeType, DataSet, ExampleIndex > &stats_estimator, DataSet &data_set, std::vector< ExampleIndex > &examples, std::vector< LabelType > &label_data)
Evaluates the specified examples using the supplied tree and adds the results to the supplied results...
void evaluate(pcl::DecisionTree< NodeType > &tree, pcl::FeatureHandler< FeatureType, DataSet, ExampleIndex > &feature_handler, pcl::StatsEstimator< LabelType, NodeType, DataSet, ExampleIndex > &stats_estimator, DataSet &data_set, std::vector< ExampleIndex > &examples, std::vector< LabelType > &label_data)
Evaluates the specified examples using the supplied tree.
Define standard C methods and C++ classes that are common to all methods.