Optimized Belief Propagation (CPU and GPU)
misc.h File Reference
#include <cmath>
Include dependency graph for misc.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  bp_single_thread_imp::rgb
 

Namespaces

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

Macros

#define M_PI   3.141592653589793
 

Typedefs

typedef unsigned char uchar
 

Functions

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

Macro Definition Documentation

◆ M_PI

#define M_PI   3.141592653589793

Definition at line 27 of file misc.h.

Typedef Documentation

◆ uchar

typedef unsigned char uchar

Definition at line 30 of file misc.h.