32 std::vector<std::string> image_files_;
35 int patches_per_image_;
36 int min_images_per_bin_;
40 for (
const auto&
dir_entry : bf::directory_iterator(
dir))
51 std::vector < std::string >
strs;
53 boost::split (
strs,
file, boost::is_any_of (
"."));
65 inline bool readMatrixFromFile(std::string
file, Eigen::Matrix4f &
matrix)
69 in.open (
file.c_str (), std::ifstream::in);
78 std::vector < std::string >
strs_2;
79 boost::split (
strs_2,
line, boost::is_any_of (
" "));
81 for (
int i = 0; i < 16; i++)
94 template<
class Po
intInT>
100 for (
unsigned int u = 0; u <
cloud_out.width; u++)
102 for (
unsigned int v = 0; v <
cloud_out.height; v++)
119 USE_NORMALS_ =
false;
121 patches_per_image_ = 20;
122 min_images_per_bin_ = -1;
132 patches_per_image_ = n;
137 min_images_per_bin_ = n;
void getDatasetAndLabels(DataSet &data_set, std::vector< LabelType > &label_data, std::vector< ExampleIndex > &examples) override
Virtual function called to obtain training examples and labels before training a specific tree.