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

Abstract class to set up and run belief propagation on target device using specified acceleration. More...

#include <RunBpOnStereoSet.h>

Inheritance diagram for RunBpOnStereoSet< T, DISP_VALS, ACCELERATION >:

Public Member Functions

virtual std::string BpRunDescription () const =0
 Pure virtual function to return run description corresponding to target acceleration. More...
 
virtual std::optional< beliefprop::BpRunOutputoperator() (const std::array< std::string, 2 > &ref_test_image_path, const beliefprop::BpSettings &alg_settings, const ParallelParams &parallel_params) const =0
 Pure virtual operator() overload that must be defined in child class. More...
 

Protected Member Functions

std::optional< beliefprop::BpRunOutputProcessStereoSet (const std::array< std::string, 2 > &ref_test_image_path, const beliefprop::BpSettings &alg_settings, const beliefprop::BpOnDevice< T, DISP_VALS, ACCELERATION > &run_bp_on_device) const
 Protected function to set up, run, and evaluate bp processing on target device using pointers to acceleration-specific smooth image, process BP, and memory management child class objects. More...
 

Detailed Description

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

Abstract class to set up and run belief propagation on target device using specified acceleration.

Template Parameters
T
DISP_VALS
ACCELERATION

Definition at line 93 of file RunBpOnStereoSet.h.

Member Function Documentation

◆ BpRunDescription()

template<RunData_t T, unsigned int DISP_VALS, run_environment::AccSetting ACCELERATION>
virtual std::string RunBpOnStereoSet< T, DISP_VALS, ACCELERATION >::BpRunDescription ( ) const
pure virtual

Pure virtual function to return run description corresponding to target acceleration.

Returns
Description of run using specified acceleration

Implemented in RunBpOnStereoSetSingleThreadCPU< T, DISP_VALS, ACCELERATION >, RunBpOnStereoSetCUDA< T, DISP_VALS, ACCELERATION >, and RunBpOnStereoSetOptimizedCPU< T, DISP_VALS, ACCELERATION >.

◆ operator()()

template<RunData_t T, unsigned int DISP_VALS, run_environment::AccSetting ACCELERATION>
virtual std::optional<beliefprop::BpRunOutput> RunBpOnStereoSet< T, DISP_VALS, ACCELERATION >::operator() ( const std::array< std::string, 2 > &  ref_test_image_path,
const beliefprop::BpSettings alg_settings,
const ParallelParams parallel_params 
) const
pure virtual

Pure virtual operator() overload that must be defined in child class.

Parameters
ref_test_image_path
alg_settings
parallel_params
Returns
Output from belief propagation run or null output if error

Implemented in RunBpOnStereoSetSingleThreadCPU< T, DISP_VALS, ACCELERATION >, RunBpOnStereoSetCUDA< T, DISP_VALS, ACCELERATION >, and RunBpOnStereoSetOptimizedCPU< T, DISP_VALS, ACCELERATION >.

◆ ProcessStereoSet()

template<RunData_t T, unsigned int DISP_VALS, run_environment::AccSetting ACCELERATION>
std::optional< beliefprop::BpRunOutput > RunBpOnStereoSet< T, DISP_VALS, ACCELERATION >::ProcessStereoSet ( const std::array< std::string, 2 > &  ref_test_image_path,
const beliefprop::BpSettings alg_settings,
const beliefprop::BpOnDevice< T, DISP_VALS, ACCELERATION > &  run_bp_on_device 
) const
protected

Protected function to set up, run, and evaluate bp processing on target device using pointers to acceleration-specific smooth image, process BP, and memory management child class objects.

Parameters
ref_test_image_path
alg_settings
run_bp_on_device
Returns
Output from running belief propagation on stereo set or null if error in run

Definition at line 138 of file RunBpOnStereoSet.h.

Here is the call graph for this function:
Here is the caller graph for this function:

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