Optimized Belief Propagation (CPU and GPU)
bp_single_thread_imp Namespace Reference

Class and structs in single-thread CPU bp implementation by Pedro Felzenwalb available at https://cs.brown.edu/people/pfelzens/bp/index.html. More...

Classes

class  Convolve
 
class  FilterImage
 
class  image
 
struct  rgb
 
class  pnm_error
 

Functions

bool operator== (const rgb &a, const rgb &b)
 
template<class T >
abs (const T &x)
 
template<class T >
int sign (const T &x)
 
template<class T >
square (const T &x)
 
template<class T >
bound (const T &x, const T &min, const T &max)
 
template<class T >
bool check_bound (const T &x, const T &min, const T &max)
 
int vlib_round (float x)
 
int vlib_round (double x)
 
double gaussian (double val, double sigma)
 

Detailed Description

Class and structs in single-thread CPU bp implementation by Pedro Felzenwalb available at https://cs.brown.edu/people/pfelzens/bp/index.html.

Function Documentation

◆ abs()

template<class T >
T bp_single_thread_imp::abs ( const T &  x)
inline

Definition at line 45 of file misc.h.

Here is the caller graph for this function:

◆ bound()

template<class T >
T bp_single_thread_imp::bound ( const T &  x,
const T &  min,
const T &  max 
)
inline

Definition at line 54 of file misc.h.

◆ check_bound()

template<class T >
bool bp_single_thread_imp::check_bound ( const T &  x,
const T &  min,
const T &  max 
)
inline

Definition at line 59 of file misc.h.

◆ gaussian()

double bp_single_thread_imp::gaussian ( double  val,
double  sigma 
)
inline

Definition at line 67 of file misc.h.

Here is the call graph for this function:

◆ operator==()

bool bp_single_thread_imp::operator== ( const rgb a,
const rgb b 
)
inline

Definition at line 40 of file misc.h.

◆ sign()

template<class T >
int bp_single_thread_imp::sign ( const T &  x)
inline

Definition at line 48 of file misc.h.

◆ square()

template<class T >
T bp_single_thread_imp::square ( const T &  x)
inline

Definition at line 51 of file misc.h.

Here is the caller graph for this function:

◆ vlib_round() [1/2]

int bp_single_thread_imp::vlib_round ( double  x)
inline

Definition at line 65 of file misc.h.

◆ vlib_round() [2/2]

int bp_single_thread_imp::vlib_round ( float  x)
inline

Definition at line 63 of file misc.h.