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

Child class of RunBpOnStereoSet to run single-threaded CPU implementation of belief propagation on a given stereo set as defined by reference and test image file paths. More...

#include <stereo.h>

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

Public Member Functions

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

Additional Inherited Members

- Protected Member Functions inherited from RunBpOnStereoSet< T, DISP_VALS, ACCELERATION >
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<typename T, unsigned int DISP_VALS, run_environment::AccSetting ACCELERATION>
class RunBpOnStereoSetSingleThreadCPU< T, DISP_VALS, ACCELERATION >

Child class of RunBpOnStereoSet to run single-threaded CPU implementation of belief propagation on a given stereo set as defined by reference and test image file paths.

Template Parameters
T
DISP_VALS
ACCELERATION

Definition at line 65 of file stereo.h.

Member Function Documentation

◆ BpRunDescription()

template<typename T , unsigned int DISP_VALS, run_environment::AccSetting ACCELERATION>
std::string RunBpOnStereoSetSingleThreadCPU< T, DISP_VALS, ACCELERATION >::BpRunDescription ( ) const
inlineoverridevirtual

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

Returns
Description of run using specified acceleration

Implements RunBpOnStereoSet< T, DISP_VALS, ACCELERATION >.

Definition at line 71 of file stereo.h.

◆ operator()()

template<typename T , unsigned int DISP_VALS, run_environment::AccSetting ACCELERATION>
std::optional< beliefprop::BpRunOutput > RunBpOnStereoSetSingleThreadCPU< 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
inlineoverridevirtual

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

Implements RunBpOnStereoSet< T, DISP_VALS, ACCELERATION >.

Definition at line 332 of file stereo.h.


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