16 #ifndef __HEURISTICPARAMS_H 17 #define __HEURISTICPARAMS_H 88 config_file.
read_string(
"global",
"path_prev_pbmaps",
"",
false);
92 config_file.
read_bool(
"global",
"use_completeness",
true);
94 config_file.
read_int(
"global",
"min_planes_recognition", 4);
103 config_file.
read_float(
"unary",
"color_threshold", 0.09);
105 config_file.
read_float(
"unary",
"intensity_threshold", 175.0);
112 config_file.
read_float(
"unary",
"area_full_threshold", 1.6);
115 config_file.
read_float(
"unary",
"area_half_threshold", 2.0);
118 config_file.
read_float(
"unary",
"elongation_threshold", 2.9);
123 config_file.
read_float(
"binary",
"dist_threshold", 2.0);
126 config_file.
read_float(
"binary",
"angle_threshold", 7.0);
128 config_file.
read_float(
"binary",
"height_threshold", 0.2);
130 config_file.
read_float(
"binary",
"height_threshold_parallel", 0.2);
132 config_file.
read_float(
"binary",
"cos_angle_parallel", 0.985);
141 cout <<
"Unary thresholds:\n";
142 cout <<
"dist_d " <<
dist_d << endl;
143 cout <<
"angle " <<
angle << endl;
150 cout <<
"Binary thresholds:\n";
152 cout <<
"angle " <<
angle << endl;
std::string path_prev_pbmaps
void load_params(const std::string &config_file_name)
std::string read_string(const std::string §ion, const std::string &name, const std::string &defaultValue, bool failIfNotFound=false) const
float area_half_threshold_inv
unsigned min_planes_recognition
float intensity_threshold
This class allows loading and storing values and vectors of different types from ".ini" files easily.
float read_float(const std::string §ion, const std::string &name, float defaultValue, bool failIfNotFound=false) const
int read_int(const std::string §ion, const std::string &name, int defaultValue, bool failIfNotFound=false) const
float area_full_threshold_inv
float area_full_threshold
float height_threshold_parallel
GLsizei const GLchar ** string
float elongation_threshold
bool read_bool(const std::string §ion, const std::string &name, bool defaultValue, bool failIfNotFound=false) const
float elongation_threshold_inv
A class used to define the heuristic parameters and thresholds used to match sets of planes...
#define ASSERT_FILE_EXISTS_(FIL)
float area_half_threshold