28 #ifndef RUN_BP_STEREO_HOST_HEADER_H
29 #define RUN_BP_STEREO_HOST_HEADER_H
31 #include <cuda_runtime.h>
32 #include <cuda_fp16.h>
46 template<RunData_t T,
unsigned int DISP_VALS, run_environment::AccSetting ACCELERATION>
51 ProcessBp<T, DISP_VALS, ACCELERATION>(cuda_params) {}
66 const std::array<float*, 2>& images_target_device,
74 unsigned int bp_settings_num_disp_vals)
const override;
87 unsigned int bp_settings_num_disp_vals)
const override;
105 T* allocated_memory)
const override;
127 unsigned int bp_settings_num_disp_vals)
const override;
129 float* RetrieveOutputDisparity(
133 unsigned int bp_settings_num_disp_vals)
const override;
136 const char *file =
"",
138 bool abort =
false)
const override;
Declares child class of ParallelParams to store and process parallelization parameters to use in each...
Declares abstract class to run belief propagation on target device. Some of the class functions need ...
Contains namespace with enums and constants for implementation run evaluation.
Define constraints for data type in processing.
Class to store and retrieve properties of a bp processing level including a data type specified as a ...
Abstract class for holding and processing parallelization parameters. Child class(es) specific to im...
Child class of ProcessBp that define functions used in processing bp in the CUDA implementation.
ProcessBpCUDA(const ParallelParams &cuda_params)
Abstract class to run belief propagation on target device. Some of the class functions need to be ove...
std::array< T, kNumCheckerboardParts > DataCostsCheckerboards
Define alias for two-element array with data costs for each bp processing checkerboard....
std::array< std::array< T, kNumMessageArrays >, kNumCheckerboardParts > CheckerboardMessages
Define alias for array with message costs for each bp processing checkerboard. Each checkerboard mes...
Status
Enum for status to indicate if error or no error.
Structure to store the belief propagation settings including the number of levels and iterations.