Optimized Belief Propagation (CPU and GPU)
ProcessBp< T, DISP_VALS, ACCELERATION > Class Template Referenceabstract

Abstract class to run belief propagation on target device. Some of the class functions need to be overridden for processing on target device. More...

#include <ProcessBp.h>

Inheritance diagram for ProcessBp< T, DISP_VALS, ACCELERATION >:
Collaboration diagram for ProcessBp< T, DISP_VALS, ACCELERATION >:

Public Member Functions

 ProcessBp (const ParallelParams &parallel_params)
 
virtual run_eval::Status ErrorCheck (const char *file="", int line=0, bool abort=false) const
 
std::optional< std::pair< float *, DetailedTimings< beliefprop::Runtime_Type > > > operator() (const std::array< float *, 2 > &images_target_device, const beliefprop::BpSettings &alg_settings, const std::array< unsigned int, 2 > &width_height_images, T *allocated_mem_bp_processing, T *allocated_memory, const std::unique_ptr< MemoryManagement< T >> &mem_management_bp_run) const
 Run belief propagation implementation with on a set of stereo images to generate a disparity map.
Input is images image1Pixels and image1Pixels
Output is resultingDisparityMap. More...
 

Protected Attributes

const ParallelParamsparallel_params_
 

Detailed Description

template<RunData_t T, unsigned int DISP_VALS, run_environment::AccSetting ACCELERATION>
class ProcessBp< T, DISP_VALS, ACCELERATION >

Abstract class to run belief propagation on target device. Some of the class functions need to be overridden for processing on target device.

Template Parameters
T
DISP_VALS
ACCELERATION

Definition at line 67 of file ProcessBp.h.

Constructor & Destructor Documentation

◆ ProcessBp()

template<RunData_t T, unsigned int DISP_VALS, run_environment::AccSetting ACCELERATION>
ProcessBp< T, DISP_VALS, ACCELERATION >::ProcessBp ( const ParallelParams parallel_params)
inlineexplicit

Definition at line 69 of file ProcessBp.h.

Member Function Documentation

◆ ErrorCheck()

template<RunData_t T, unsigned int DISP_VALS, run_environment::AccSetting ACCELERATION>
virtual run_eval::Status ProcessBp< T, DISP_VALS, ACCELERATION >::ErrorCheck ( const char *  file = "",
int  line = 0,
bool  abort = false 
) const
inlinevirtual

Definition at line 73 of file ProcessBp.h.

◆ operator()()

template<RunData_t T, unsigned int DISP_VALS, run_environment::AccSetting ACCELERATION>
std::optional< std::pair< float *, DetailedTimings< beliefprop::Runtime_Type > > > ProcessBp< T, DISP_VALS, ACCELERATION >::operator() ( const std::array< float *, 2 > &  images_target_device,
const beliefprop::BpSettings alg_settings,
const std::array< unsigned int, 2 > &  width_height_images,
T *  allocated_mem_bp_processing,
T *  allocated_memory,
const std::unique_ptr< MemoryManagement< T >> &  mem_management_bp_run 
) const

Run belief propagation implementation with on a set of stereo images to generate a disparity map.
Input is images image1Pixels and image1Pixels
Output is resultingDisparityMap.

Parameters
images_target_device
alg_settings
width_height_images
allocated_mem_bp_processing
allocated_memory
mem_management_bp_run
Returns
std::optional<std::pair<float*, DetailedTimings<beliefprop::Runtime_Type>>>

Definition at line 410 of file ProcessBp.h.

Here is the call graph for this function:

Member Data Documentation

◆ parallel_params_

template<RunData_t T, unsigned int DISP_VALS, run_environment::AccSetting ACCELERATION>
const ParallelParams& ProcessBp< T, DISP_VALS, ACCELERATION >::parallel_params_
protected

Definition at line 103 of file ProcessBp.h.


The documentation for this class was generated from the following file: