41 #include <pcl/ml/feature_handler.h>
42 #include <pcl/ml/ferns/fern.h>
43 #include <pcl/ml/stats_estimator.h>
50 template <
class FeatureType,
72 feature_handler_ = &feature_handler;
83 stats_estimator_ = &stats_estimator;
93 fern_depth_ = fern_depth;
103 num_of_features_ = num_of_features;
114 num_of_thresholds_ = num_of_threshold;
124 data_set_ = data_set;
134 examples_ = examples;
144 label_data_ = label_data;
163 createThresholdsUniform(
const std::size_t num_of_thresholds,
164 std::vector<float>& values,
165 std::vector<float>& thresholds);
169 std::size_t fern_depth_;
171 std::size_t num_of_features_;
173 std::size_t num_of_thresholds_;
183 std::vector<LabelType> label_data_;
185 std::vector<ExampleIndex> examples_;
190 #include <pcl/ml/impl/ferns/fern_trainer.hpp>