182 int num_iterations = (member_params ==
NULL) ? 1 : 2;
183 for (v = 0; v < num_iterations; ++v) {
184 const ParamsVectors *vec = (v == 0) ?
GlobalParams() : member_params;
185 for (i = 0; i < vec->int_params.size(); ++i) {
186 fprintf(fp,
"%s\t%d\t%s\n", vec->int_params[i]->name_str(),
187 (
inT32)(*vec->int_params[i]), vec->int_params[i]->info_str());
189 for (i = 0; i < vec->bool_params.size(); ++i) {
190 fprintf(fp,
"%s\t%d\t%s\n", vec->bool_params[i]->name_str(),
191 (
BOOL8)(*vec->bool_params[i]), vec->bool_params[i]->info_str());
193 for (
int i = 0; i < vec->string_params.size(); ++i) {
194 fprintf(fp,
"%s\t%s\t%s\n", vec->string_params[i]->name_str(),
195 vec->string_params[i]->string(), vec->string_params[i]->info_str());
197 for (
int i = 0; i < vec->double_params.size(); ++i) {
198 fprintf(fp,
"%s\t%g\t%s\n", vec->double_params[i]->name_str(),
199 (double)(*vec->double_params[i]), vec->double_params[i]->info_str());
tesseract::ParamsVectors * GlobalParams()