1 #include <visiontransfer/standardparameterids.h>
3 namespace visiontransfer {
9 static std::map<std::string, StandardParameterIDs::ParameterID> lookup;
11 std::map<std::string, StandardParameterIDs::ParameterID> m;
12 for (
const auto& kv: StandardParameterIDs::parameterNameByID) {
13 m[kv.second] = kv.first;
17 auto it = lookup.find(name);
18 if (it==lookup.end())
return StandardParameterIDs::ParameterID::UNDEFINED;
22 const std::map<StandardParameterIDs::ParameterID, std::string>
23 StandardParameterIDs::parameterNameByID {
25 {OPERATION_MODE,
"operation_mode"},
26 {NUMBER_OF_DISPARITIES,
"number_of_disparities"},
27 {DISPARITY_OFFSET,
"disparity_offset"},
28 {MAX_NUMBER_OF_IMAGES,
"max_number_of_images"},
30 {SGM_P1_EDGE,
"sgm_p1_edge"},
31 {SGM_P2_EDGE,
"sgm_p2_edge"},
32 {SGM_P1_NO_EDGE,
"sgm_p1_no_edge"},
33 {SGM_P2_NO_EDGE,
"sgm_p2_no_edge"},
34 {SGM_EDGE_SENSITIVITY,
"sgm_edge_sensitivity"},
35 {MASK_BORDER_PIXELS_ENABLED,
"mask_border_pixels_enabled"},
36 {CONSISTENCY_CHECK_ENABLED,
"consistency_check_enabled"},
37 {CONSISTENCY_CHECK_SENSITIVITY,
"consistency_check_sensitivity"},
38 {UNIQUENESS_CHECK_ENABLED,
"uniqueness_check_enabled"},
39 {UNIQUENESS_CHECK_SENSITIVITY,
"uniqueness_check_sensitivity"},
40 {TEXTURE_FILTER_ENABLED,
"texture_filter_enabled"},
41 {TEXTURE_FILTER_SENSITIVITY,
"texture_filter_sensitivity"},
42 {GAP_INTERPOLATION_ENABLED,
"gap_interpolation_enabled"},
43 {NOISE_REDUCTION_ENABLED,
"noise_reduction_enabled"},
44 {SPECKLE_FILTER_ITERATIONS,
"speckle_filter_iterations"},
45 {SUBPIXEL_OPTIMIZATION_ROI_ENABLED,
"subpixel_optimization_roi_enabled"},
46 {SUBPIXEL_OPTIMIZATION_ROI_X,
"subpixel_optimization_roi_x"},
47 {SUBPIXEL_OPTIMIZATION_ROI_Y,
"subpixel_optimization_roi_y"},
48 {SUBPIXEL_OPTIMIZATION_ROI_WIDTH,
"subpixel_optimization_roi_width"},
49 {SUBPIXEL_OPTIMIZATION_ROI_HEIGHT,
"subpixel_optimization_roi_height"},
51 {AUTO_EXPOSURE_MODE,
"auto_exposure_mode"},
52 {AUTO_TARGET_INTENSITY,
"auto_target_intensity"},
53 {AUTO_INTENSITY_DELTA,
"auto_intensity_delta"},
54 {AUTO_TARGET_FRAME,
"auto_target_frame"},
55 {AUTO_SKIPPED_FRAMES,
"auto_skipped_frames"},
56 {AUTO_MAXIMUM_EXPOSURE_TIME,
"auto_maximum_exposure_time"},
57 {AUTO_MAXIMUM_GAIN,
"auto_maximum_gain"},
58 {MANUAL_EXPOSURE_TIME,
"manual_exposure_time"},
59 {MANUAL_GAIN,
"manual_gain"},
60 {AUTO_EXPOSURE_ROI_ENABLED,
"auto_exposure_roi_enabled"},
61 {AUTO_EXPOSURE_ROI_X,
"auto_exposure_roi_x"},
62 {AUTO_EXPOSURE_ROI_Y,
"auto_exposure_roi_y"},
63 {AUTO_EXPOSURE_ROI_WIDTH,
"auto_exposure_roi_width"},
64 {AUTO_EXPOSURE_ROI_HEIGHT,
"auto_exposure_roi_height"},
66 {MAX_FRAME_TIME_DIFFERENCE_MS,
"max_frame_time_difference_ms"},
67 {TRIGGER_FREQUENCY,
"trigger_frequency"},
68 {TRIGGER_0_ENABLED,
"trigger_0_enabled"},
69 {TRIGGER_0_PULSE_WIDTH,
"trigger_0_pulse_width"},
70 {TRIGGER_1_ENABLED,
"trigger_1_enabled"},
71 {TRIGGER_1_PULSE_WIDTH,
"trigger_1_pulse_width"},
72 {TRIGGER_1_OFFSET,
"trigger_1_offset"},
73 {TRIGGER_0B_PULSE_WIDTH,
"trigger_0b_pulse_width"},
74 {TRIGGER_0C_PULSE_WIDTH,
"trigger_0c_pulse_width"},
75 {TRIGGER_0D_PULSE_WIDTH,
"trigger_0d_pulse_width"},
76 {TRIGGER_1B_PULSE_WIDTH,
"trigger_1b_pulse_width"},
77 {TRIGGER_1C_PULSE_WIDTH,
"trigger_1c_pulse_width"},
78 {TRIGGER_1D_PULSE_WIDTH,
"trigger_1d_pulse_width"},
79 {TRIGGER_0_POLARITY,
"trigger_0_polarity"},
80 {TRIGGER_1_POLARITY,
"trigger_1_polarity"},
81 {TRIGGER_0E_PULSE_WIDTH,
"trigger_0e_pulse_width"},
82 {TRIGGER_0F_PULSE_WIDTH,
"trigger_0f_pulse_width"},
83 {TRIGGER_0G_PULSE_WIDTH,
"trigger_0g_pulse_width"},
84 {TRIGGER_0H_PULSE_WIDTH,
"trigger_0h_pulse_width"},
85 {TRIGGER_1E_PULSE_WIDTH,
"trigger_1e_pulse_width"},
86 {TRIGGER_1F_PULSE_WIDTH,
"trigger_1f_pulse_width"},
87 {TRIGGER_1G_PULSE_WIDTH,
"trigger_1g_pulse_width"},
88 {TRIGGER_1H_PULSE_WIDTH,
"trigger_1h_pulse_width"},
89 {TRIGGER_0_CONSTANT,
"trigger_0_constant"},
90 {TRIGGER_1_CONSTANT,
"trigger_1_constant"},
91 {TRIGGER_INPUT,
"trigger_input"},
93 {AUTO_RECALIBRATION_ENABLED,
"auto_recalibration_enabled"},
94 {AUTO_RECALIBRATION_PERMANENT,
"auto_recalibration_permanent"},
97 {PPS_SYNC,
"pps_sync"},