Optimized Belief Propagation (CPU and GPU)
EvaluateImpResultsBp.h
Go to the documentation of this file.
1 /*
2 Copyright (C) 2024 Scott Grauer-Gray
3 
4 This program is free software; you can redistribute it and/or modify
5 it under the terms of the GNU General Public License as published by
6 the Free Software Foundation; either version 2 of the License, or
7 (at your option) any later version.
8 
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU General Public License for more details.
13 
14 You should have received a copy of the GNU General Public License
15 along with this program; if not, write to the Free Software
16 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17 */
18 
29 #ifndef EVALUATE_BP_IMP_RESULTS_H_
30 #define EVALUATE_BP_IMP_RESULTS_H_
31 
35 #include <filesystem>
36 #include <vector>
37 #include <string>
38 
45 private:
51  std::filesystem::path GetImpResultsPath() const override;
52 
60  std::vector<std::string> GetCombResultsTopText() const override {
61  return {{"Stereo Processing using optimized CUDA and optimized CPU belief propagation implementations"},
62  {"Code available at https://github.com/sgrauerg6/cudaBeliefProp"},
63  {"All stereo sets used in evaluation are from (or adapted from) Middlebury stereo datasets at https://vision.middlebury.edu/stereo/data/"},
64  {"\"tsukubaSetHalfSize: tsukubaSet with half the height, width, and disparity count of tsukubaSet\""},
65  {"conesFullSizeCropped: 900 x 750 region in center of the reference and test cones stereo set images"},
66  {"Results shown in this comparison for each run are for total runtime including any time for data transfer between device and host"}};
67  }
68 
75  std::vector<std::string> GetInputParamsShow() const override {
76  return {
77  std::string(beliefprop::kStereoSetHeader),
78  std::string(run_eval::kDatatypeHeader),
79  std::string(beliefprop::kImageWidthHeader),
80  std::string(beliefprop::kImageHeightHeader),
81  std::string(beliefprop::kNumDispValsHeader),
83  }
84 };
85 
86 #endif //EVALUATE_BP_IMP_RESULTS_H_
Header file that contains information about the stereo sets used for evaluation of the bp implementat...
Declares class with operator function to evaluate implementations of the same algorithm across differ...
Contains namespace with enums and constants for implementation run evaluation.
Child class of EvaluateImpResults that defines member functions for belief propagation evaluation whi...
Class with operator function to evaluate implementations of the same algorithm across different data ...
constexpr std::string_view kStereoSetHeader
constexpr std::string_view kNumDispValsHeader
Definition: BpSettings.h:58
constexpr std::string_view kImageWidthHeader
constexpr std::string_view kImageHeightHeader
constexpr std::string_view kDatatypeHeader
constexpr std::string_view kLoopItersTemplatedHeader