42 #include <pcl/ml/feature_handler.h>
43 #include <pcl/ml/ferns/fern.h>
44 #include <pcl/ml/stats_estimator.h>
51 template <
class FeatureType,
73 feature_handler_ = &feature_handler;
84 stats_estimator_ = &stats_estimator;
94 fern_depth_ = fern_depth;
104 num_of_features_ = num_of_features;
115 num_of_thresholds_ = num_of_threshold;
125 data_set_ = data_set;
135 examples_ = examples;
145 label_data_ = label_data;
164 createThresholdsUniform(
const std::size_t num_of_thresholds,
165 std::vector<float>& values,
166 std::vector<float>& thresholds);
170 std::size_t fern_depth_;
172 std::size_t num_of_features_;
174 std::size_t num_of_thresholds_;
184 std::vector<LabelType> label_data_;
186 std::vector<ExampleIndex> examples_;
191 #include <pcl/ml/impl/ferns/fern_trainer.hpp>