CppNCorr
C++ ncorr Digital Image Correlation engine
Loading...
Searching...
No Matches
config.h File Reference

Compiled-default DIC parameters and the three-tier override chain. More...

#include <string>

Go to the source code of this file.

Classes

struct  ncorr::Config
 All tuneable ncorr parameters with their compiled-in defaults. More...
 

Namespaces

namespace  ncorr
 

Functions

bool ncorr::load_config_file (const std::string &config_path, Config &out)
 Load compiled defaults, then overlay values from an INI config file.
 

Detailed Description

Compiled-default DIC parameters and the three-tier override chain.

CppNCorr resolves tuneable parameters from three sources, highest priority first:

  1. Direct CLI arguments (applied by the caller, e.g. proxyncorr)
  2. A config file (INI format) (see config/default.cfg)
  3. Compiled defaults (the initial values of Config below)

The config file uses a minimal INI format (chosen over TOML to avoid adding any third-party dependency; a tiny in-tree parser handles it — see IniFile in ini.h). Keys in the file MUST exactly match the field names of Config so there are no silent mismatches.

Definition in file config.h.