CppNCorr
C++ ncorr Digital Image Correlation engine
Loading...
Searching...
No Matches
config.h
Go to the documentation of this file.
1#pragma once
18#include <string>
19
20namespace ncorr {
21
28struct Config {
29 // --- Pyramid / search --------------------------------------------------//
31 int scalefactor = 3;
32
33 // --- Subregion (correlation window) ------------------------------------//
35 std::string subregion_type = "CIRCLE";
38
39 // --- Interpolation -----------------------------------------------------//
42 std::string interp_type = "QUINTIC_BSPLINE_PRECOMPUTE";
43
44 // --- Strain ------------------------------------------------------------//
46 std::string strain_subregion_type = "CIRCLE";
49
50 // --- DIC behaviour -----------------------------------------------------//
52 std::string dic_config = "NO_UPDATE";
54 int num_threads = 4;
56 bool debug = false;
57
58 // --- Perspective / units ----------------------------------------------//
60 std::string perspective_interp = "CUBIC_KEYS";
62 std::string units = "mm";
64 double units_per_pixel = 0.2;
65
66 // --- Output / video ----------------------------------------------------//
68 double alpha = 0.5;
70 double fps = 15.0;
71};
72
86bool load_config_file(const std::string& config_path, Config& out);
87
88} // namespace ncorr
bool load_config_file(const std::string &config_path, Config &out)
Load compiled defaults, then overlay values from an INI config file.
Definition config.cpp:15
All tuneable ncorr parameters with their compiled-in defaults.
Definition config.h:28
double units_per_pixel
Physical units per pixel scaling.
Definition config.h:64
int num_threads
Number of worker threads for parallel analysis.
Definition config.h:54
std::string perspective_interp
Interpolation used by the perspective change step.
Definition config.h:60
int subregion_radius
Subregion (correlation window) radius in pixels.
Definition config.h:37
double alpha
Video overlay alpha (0..1).
Definition config.h:68
double fps
Output video frames-per-second.
Definition config.h:70
int strain_radius
Strain window (subregion) radius in pixels.
Definition config.h:48
std::string interp_type
Interpolation/order: NEAREST, LINEAR, CUBIC_KEYS[_PRECOMPUTE], QUINTIC_BSPLINE[_PRECOMPUTE].
Definition config.h:42
int scalefactor
Pyramid scale factor (downsampling level used for the seed search).
Definition config.h:31
std::string subregion_type
Subregion shape: "CIRCLE" or "SQUARE".
Definition config.h:35
bool debug
Enable verbose debug output from the engine.
Definition config.h:56
std::string dic_config
Reference-update policy: NO_UPDATE, KEEP_MOST_POINTS, REMOVE_BAD_POINTS.
Definition config.h:52
std::string units
Physical units label for displacement output.
Definition config.h:62
std::string strain_subregion_type
Strain subregion shape: "CIRCLE" or "SQUARE".
Definition config.h:46