173 int num_iterations = (member_params ==
nullptr) ? 1 : 2;
174 for (v = 0; v < num_iterations; ++v) {
175 const ParamsVectors *vec = (v == 0) ?
GlobalParams() : member_params;
176 for (i = 0; i < vec->int_params.size(); ++i) {
177 fprintf(fp,
"%s\t%d\t%s\n", vec->int_params[i]->name_str(),
178 (int32_t)(*vec->int_params[i]), vec->int_params[i]->info_str());
180 for (i = 0; i < vec->bool_params.size(); ++i) {
181 fprintf(fp,
"%s\t%d\t%s\n", vec->bool_params[i]->name_str(),
182 (
BOOL8)(*vec->bool_params[i]), vec->bool_params[i]->info_str());
184 for (
int i = 0; i < vec->string_params.size(); ++i) {
185 fprintf(fp,
"%s\t%s\t%s\n", vec->string_params[i]->name_str(),
186 vec->string_params[i]->string(), vec->string_params[i]->info_str());
188 for (
int i = 0; i < vec->double_params.size(); ++i) {
189 fprintf(fp,
"%s\t%g\t%s\n", vec->double_params[i]->name_str(),
190 (double)(*vec->double_params[i]), vec->double_params[i]->info_str());
tesseract::ParamsVectors * GlobalParams()