34 for (
const auto& output_diff_threshold :
50 " (with disparity error cap at " +
53 for (
const auto& [
threshold, prop_bad_pixels] :
57 "Proportion bad pixels (error less than " +
59 (
double)prop_bad_pixels);
Declares class to store disparity map evaluation results.
std::array< float, 2 > average_disp_abs_diff_no_max_w_max_
Total and average value of the absolute difference between the disparity values for all pixels in dis...
float disparity_error_max_
std::map< float, unsigned int > num_sig_diff_pixels_at_thresholds_
Stores the number of pixels where the difference between the disparity values in disparity images 1 a...
void InitializeWithEvalParams(const beliefprop::DisparityMapEvaluationParams &eval_params)
Initialize evaluation results with evaluation parameters.
RunData AsRunData() const
Retrieve evaluation results as RunData.
std::map< float, float > prop_sig_diff_pixels_at_thresholds_
Proportion of pixels where the difference between the disparity values in disparity images 1 and 2 is...
Class to store headers with data corresponding to current program run and evaluation.
void AddDataWHeader(const std::string &header, const std::string &data)
Add string data with header describing added data.
bp_single_thread_imp::image< uchar > * threshold(bp_single_thread_imp::image< T > *src, int t)
constexpr std::string_view kAvgRMSErrorHeader
Constant string view for header of average RMS error in evaluation.
Struct to store parameters for evaluation of disparity map from stereo processing.
const std::vector< float > output_diff_thresholds
Difference thresholds for comparing disparity maps.