#include <config.h>
|
| std::vector< std::string > | frictional_conditions = {"glass", "coating", "coating_oil"} |
| |
| int | num_pair = 2 |
| |
| std::vector< std::pair< int, int > > | camera_pairs = {{1, 2}, {4, 3}} |
| |
| int | mirrored_num_pair = 7 |
| |
| std::vector< int > | mirrored_cam_order = {2, 1, 4, 3} |
| |
| double | robot_sample_freq = 1000.0 |
| |
| double | vid_sample_freq = 50.0 |
| |
| std::string | base_path = "/Users/jaoga/devlab/MultiDIC" |
| |
| std::string | data_path |
| |
| std::string | dic_path |
| |
| bool | im_filter_mode = true |
| |
| bool | im_saturation_mode = true |
| |
| bool | force_frame_window = false |
| |
| bool | automatic_process = true |
| |
| bool | parallel_processing = true |
| |
| std::string | subject_id = "S09" |
| |
| std::string | phase_id = "loading" |
| |
| int | material_id = 2 |
| |
| std::vector< int > | nfcond_set = {5} |
| |
| std::vector< double > | spddxlcond_set = {0.04, 0.08} |
| |
| std::string | calib_folder_set = "2" |
| |
| int | ref_trial_id = 5 |
| |
| int | idx_frame_start = 10 |
| |
| int | idx_frame_end = 150 |
| |
| int | frame_jump = 1 |
| |
| bool | showvisu = false |
| |
| bool | debug_mode = false |
| |
| std::string | log_level = "" |
| |
| std::string | log_file = "" |
| |
| bool | mapLogic = true |
| |
| std::vector< std::string > | plotopt = {"Epc1", "Epc2"} |
| |
| std::string | deftype = "both" |
| |
| std::string | viewplot |
| |
| bool | contactAreaLogic = false |
| |
| bool | gapLogic = true |
| |
| double | maxCorrCoeff = 10.0 |
| |
| std::string | format = "small" |
| |
| bool | smoothTimeLogic = true |
| |
| double | filterFreq = 5.0 |
| |
| bool | smoothSpaceLogic = true |
| |
| int | smoothPar_n = 30 |
| |
| double | smoothPar_sigma = 2.0 |
| |
| bool | showRobotLogic = true |
| |
| bool | showImgLogic = false |
| |
| int | camNbr = 0 |
| |
| bool | tracesLogic = false |
| |
| double | FaceAlpha = 1.0 |
| |
| std::string | lineColor = "none" |
| |
| double | quiverScaleFactor = 20.0 |
| |
| std::string | export_format = "vtk" |
| |
| bool | export_each_frame = false |
| |
| std::vector< int > | export_frame_list |
| |
| std::string | fileversion = "v2" |
| |
| double | units_per_pixel = 0.2 |
| |
| int | subregion_radius = 20 |
| |
| int | limit_grayscale = 0 |
| |
| StepConfig | step_d |
| |
| StepConfig | step_e |
| |
| StepConfig | step_f |
| |
| std::string | step_e_stitch_mode = "geometric" |
| |
| bool | step_e_ray_bvh = false |
| |
| bool | step_e_distortion_removal |
| |
| bool | step_d_replacebadcorr |
| |
| bool | step_f_temporal_filtering = true |
| |
| double | step_f_freq_filt = 10.0 |
| |
| bool | step_f_compute_rbm = false |
| |
| std::string | data_format = "mat" |
| |
| int | ncorr_scalefactor = 3 |
| |
| std::string | ncorr_interp = "quintic_bspline_precompute" |
| |
| std::string | ncorr_subregion = "circle" |
| |
| std::string | ncorr_dic_config = "no_update" |
| |
| bool | ncorr_no_update = true |
| |
| int | ncorr_fixed_step_ref = 0 |
| |
| double | ncorr_cutoff_corrcoef = 10.0 |
| |
| std::string | ncorr_roi_update_mode = "none" |
| |
| std::string | ncorr_accumulation_mode = "none" |
| |
| bool | ncorr_save_disps_steps = false |
| |
| bool | ncorr_perspective_interp = false |
| |
| std::string | ncorr_units = "mm" |
| |
| bool | ncorr_seeds_are_optimized = false |
| |
| double | ncorr_cutoff_max_diffnorm = 0.1 |
| |
| double | ncorr_cutoff_max_corrcoef = 0.5 |
| |
| double | ncorr_matching_cutoff_max_corrcoef = 1.0 |
| |
| int | ncorr_threads = 4 |
| |
| bool | ncorr_use_exact_matlab |
| |
| std::string | dic_engine = "cuncorr" |
| |
| int | cuncorr_seed_search = 15 |
| |
| std::string | vtk_format = "ascii" |
| |
| bool | vtk_include_scalars = true |
| |
| bool | vtk_include_vectors = true |
| |
| std::string | ply_format = "ascii" |
| |
| bool | ply_include_colors = true |
| |
| std::string | csv_delimiter = "," |
| |
| bool | csv_include_header = true |
| |
| bool | generate_videos = false |
| |
| int | video_fps = 10 |
| |
| std::string | video_codec = "MJPG" |
| |
| int | video_quality = 90 |
| |
| double | video_alpha = 1.0 |
| |
| std::string | colormap = "jet" |
| |
| std::string | colormap_range_mode = "auto" |
| |
| double | colormap_min = 0.0 |
| |
| double | colormap_max = 1.0 |
| |
| int | colormap_levels = 256 |
| |
| bool | generate_summary_stats = true |
| |
| std::string | stats_format = "txt" |
| |
| bool | stats_per_frame = true |
| |
| bool | stats_spatial = true |
| |
| bool | stats_temporal = true |
| |
| double | mesh_decimation = 1.0 |
| |
| bool | mesh_smoothing = false |
| |
| int | mesh_smoothing_iterations = 10 |
| |
| bool | show_axes = true |
| |
| bool | show_colorbar = true |
| |
| bool | show_grid = false |
| |
| std::string | background_color = "white" |
| |
| std::string | material |
| |
Definition at line 30 of file config.h.
◆ Config()
Configuration implementation for CPPXDIC.
Definition at line 13 of file config.cpp.
◆ loadFromConfigFile()
| bool Config::loadFromConfigFile |
( |
const std::string & |
filepath = "config/default.cfg" | ) |
|
Load a single unified config file (the middle tier of the override chain).
Implements the config-file tier of the three-tier override chain (CLI args > config file > compiled defaults). The file uses the same INI-style key = value format as dic_params.txt / ncorr_params.txt / visualization_params.txt (see config/default.cfg). All DIC, NCorr and visualization keys may appear in one file; unknown keys are ignored. Values override the compiled defaults; any field absent from the file keeps its compiled default.
- Parameters
-
| filepath | Path to the unified config file (e.g. config/default.cfg). |
- Returns
- true if the file existed and was read, false otherwise.
Definition at line 607 of file config.cpp.
◆ loadFromDicParamsFile()
| bool Config::loadFromDicParamsFile |
( |
const std::string & |
filepath = "dic_params.txt" | ) |
|
◆ loadFromNcorrParamsFile()
| bool Config::loadFromNcorrParamsFile |
( |
const std::string & |
filepath = "ncorr_params.txt" | ) |
|
◆ loadFromVisualizationParamsFile()
| bool Config::loadFromVisualizationParamsFile |
( |
const std::string & |
filepath = "visualization_params.txt" | ) |
|
◆ overrideRefTrial()
| void Config::overrideRefTrial |
( |
int |
trial | ) |
|
◆ overrideSubject()
| void Config::overrideSubject |
( |
const std::string & |
subject | ) |
|
◆ updateVariables()
| void Config::updateVariables |
( |
| ) |
|
◆ automatic_process
| bool Config::automatic_process = true |
◆ background_color
| std::string Config::background_color = "white" |
◆ base_path
| std::string Config::base_path = "/Users/jaoga/devlab/MultiDIC" |
◆ calib_folder_set
| std::string Config::calib_folder_set = "2" |
◆ camera_pairs
| std::vector<std::pair<int, int> > Config::camera_pairs = {{1, 2}, {4, 3}} |
◆ camNbr
◆ colormap
| std::string Config::colormap = "jet" |
◆ colormap_levels
| int Config::colormap_levels = 256 |
◆ colormap_max
| double Config::colormap_max = 1.0 |
◆ colormap_min
| double Config::colormap_min = 0.0 |
◆ colormap_range_mode
| std::string Config::colormap_range_mode = "auto" |
◆ contactAreaLogic
| bool Config::contactAreaLogic = false |
◆ csv_delimiter
| std::string Config::csv_delimiter = "," |
◆ csv_include_header
| bool Config::csv_include_header = true |
◆ cuncorr_seed_search
| int Config::cuncorr_seed_search = 15 |
◆ data_format
| std::string Config::data_format = "mat" |
◆ data_path
| std::string Config::data_path |
◆ debug_mode
| bool Config::debug_mode = false |
◆ deftype
| std::string Config::deftype = "both" |
◆ dic_engine
| std::string Config::dic_engine = "cuncorr" |
◆ dic_path
| std::string Config::dic_path |
◆ export_each_frame
| bool Config::export_each_frame = false |
◆ export_format
| std::string Config::export_format = "vtk" |
◆ export_frame_list
| std::vector<int> Config::export_frame_list |
◆ FaceAlpha
| double Config::FaceAlpha = 1.0 |
◆ fileversion
| std::string Config::fileversion = "v2" |
◆ filterFreq
| double Config::filterFreq = 5.0 |
◆ force_frame_window
| bool Config::force_frame_window = false |
◆ format
| std::string Config::format = "small" |
◆ frame_jump
| int Config::frame_jump = 1 |
◆ frictional_conditions
| std::vector<std::string> Config::frictional_conditions = {"glass", "coating", "coating_oil"} |
◆ gapLogic
| bool Config::gapLogic = true |
◆ generate_summary_stats
| bool Config::generate_summary_stats = true |
◆ generate_videos
| bool Config::generate_videos = false |
◆ idx_frame_end
| int Config::idx_frame_end = 150 |
◆ idx_frame_start
| int Config::idx_frame_start = 10 |
◆ im_filter_mode
| bool Config::im_filter_mode = true |
◆ im_saturation_mode
| bool Config::im_saturation_mode = true |
◆ limit_grayscale
| int Config::limit_grayscale = 0 |
◆ lineColor
| std::string Config::lineColor = "none" |
◆ log_file
| std::string Config::log_file = "" |
◆ log_level
| std::string Config::log_level = "" |
◆ mapLogic
| bool Config::mapLogic = true |
◆ material
| std::string Config::material |
◆ material_id
| int Config::material_id = 2 |
◆ maxCorrCoeff
| double Config::maxCorrCoeff = 10.0 |
◆ mesh_decimation
| double Config::mesh_decimation = 1.0 |
◆ mesh_smoothing
| bool Config::mesh_smoothing = false |
◆ mesh_smoothing_iterations
| int Config::mesh_smoothing_iterations = 10 |
◆ mirrored_cam_order
| std::vector<int> Config::mirrored_cam_order = {2, 1, 4, 3} |
◆ mirrored_num_pair
| int Config::mirrored_num_pair = 7 |
◆ ncorr_accumulation_mode
| std::string Config::ncorr_accumulation_mode = "none" |
◆ ncorr_cutoff_corrcoef
| double Config::ncorr_cutoff_corrcoef = 10.0 |
◆ ncorr_cutoff_max_corrcoef
| double Config::ncorr_cutoff_max_corrcoef = 0.5 |
◆ ncorr_cutoff_max_diffnorm
| double Config::ncorr_cutoff_max_diffnorm = 0.1 |
◆ ncorr_dic_config
| std::string Config::ncorr_dic_config = "no_update" |
◆ ncorr_fixed_step_ref
| int Config::ncorr_fixed_step_ref = 0 |
◆ ncorr_interp
| std::string Config::ncorr_interp = "quintic_bspline_precompute" |
◆ ncorr_matching_cutoff_max_corrcoef
| double Config::ncorr_matching_cutoff_max_corrcoef = 1.0 |
◆ ncorr_no_update
| bool Config::ncorr_no_update = true |
◆ ncorr_perspective_interp
| bool Config::ncorr_perspective_interp = false |
◆ ncorr_roi_update_mode
| std::string Config::ncorr_roi_update_mode = "none" |
◆ ncorr_save_disps_steps
| bool Config::ncorr_save_disps_steps = false |
◆ ncorr_scalefactor
| int Config::ncorr_scalefactor = 3 |
◆ ncorr_seeds_are_optimized
| bool Config::ncorr_seeds_are_optimized = false |
◆ ncorr_subregion
| std::string Config::ncorr_subregion = "circle" |
◆ ncorr_threads
| int Config::ncorr_threads = 4 |
◆ ncorr_units
| std::string Config::ncorr_units = "mm" |
◆ ncorr_use_exact_matlab
| bool Config::ncorr_use_exact_matlab |
Initial value:
Definition at line 203 of file config.h.
◆ nfcond_set
| std::vector<int> Config::nfcond_set = {5} |
◆ num_pair
◆ parallel_processing
| bool Config::parallel_processing = true |
◆ phase_id
| std::string Config::phase_id = "loading" |
◆ plotopt
| std::vector<std::string> Config::plotopt = {"Epc1", "Epc2"} |
◆ ply_format
| std::string Config::ply_format = "ascii" |
◆ ply_include_colors
| bool Config::ply_include_colors = true |
◆ quiverScaleFactor
| double Config::quiverScaleFactor = 20.0 |
◆ ref_trial_id
| int Config::ref_trial_id = 5 |
◆ robot_sample_freq
| double Config::robot_sample_freq = 1000.0 |
◆ show_axes
| bool Config::show_axes = true |
◆ show_colorbar
| bool Config::show_colorbar = true |
◆ show_grid
| bool Config::show_grid = false |
◆ showImgLogic
| bool Config::showImgLogic = false |
◆ showRobotLogic
| bool Config::showRobotLogic = true |
◆ showvisu
| bool Config::showvisu = false |
◆ smoothPar_n
| int Config::smoothPar_n = 30 |
◆ smoothPar_sigma
| double Config::smoothPar_sigma = 2.0 |
◆ smoothSpaceLogic
| bool Config::smoothSpaceLogic = true |
◆ smoothTimeLogic
| bool Config::smoothTimeLogic = true |
◆ spddxlcond_set
| std::vector<double> Config::spddxlcond_set = {0.04, 0.08} |
◆ stats_format
| std::string Config::stats_format = "txt" |
◆ stats_per_frame
| bool Config::stats_per_frame = true |
◆ stats_spatial
| bool Config::stats_spatial = true |
◆ stats_temporal
| bool Config::stats_temporal = true |
◆ step_d
◆ step_d_replacebadcorr
| bool Config::step_d_replacebadcorr |
Initial value:
Definition at line 159 of file config.h.
◆ step_e
Initial value:= [] {
return c;
}()
Configuration class for CPPXDIC Handles loading and managing parameters equivalent to Matlab global_p...
Definition at line 139 of file config.h.
◆ step_e_distortion_removal
| bool Config::step_e_distortion_removal |
Initial value:
Definition at line 157 of file config.h.
◆ step_e_ray_bvh
| bool Config::step_e_ray_bvh = false |
◆ step_e_stitch_mode
| std::string Config::step_e_stitch_mode = "geometric" |
◆ step_f
◆ step_f_compute_rbm
| bool Config::step_f_compute_rbm = false |
◆ step_f_freq_filt
| double Config::step_f_freq_filt = 10.0 |
◆ step_f_temporal_filtering
| bool Config::step_f_temporal_filtering = true |
◆ subject_id
| std::string Config::subject_id = "S09" |
◆ subregion_radius
| int Config::subregion_radius = 20 |
◆ tracesLogic
| bool Config::tracesLogic = false |
◆ units_per_pixel
| double Config::units_per_pixel = 0.2 |
◆ vid_sample_freq
| double Config::vid_sample_freq = 50.0 |
◆ video_alpha
| double Config::video_alpha = 1.0 |
◆ video_codec
| std::string Config::video_codec = "MJPG" |
◆ video_fps
| int Config::video_fps = 10 |
◆ video_quality
| int Config::video_quality = 90 |
◆ viewplot
| std::string Config::viewplot |
Initial value:
Definition at line 94 of file config.h.
◆ vtk_format
| std::string Config::vtk_format = "ascii" |
◆ vtk_include_scalars
| bool Config::vtk_include_scalars = true |
◆ vtk_include_vectors
| bool Config::vtk_include_vectors = true |
The documentation for this class was generated from the following files: