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

Go to the source code of this file.

Classes

class  bp_single_thread_imp::FilterImage
 

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 WIDTH   4.0
 
#define MAKE_FILTER(name, fun)
 

Macro Definition Documentation

◆ MAKE_FILTER

#define MAKE_FILTER (   name,
  fun 
)
Value:
static std::vector<float> make_ ## name (float sigma) { \
sigma = std::max(sigma, 0.01F); \
int len = (int)ceil(sigma * WIDTH) + 1; \
std::vector<float> mask(len); \
for (int i = 0; i < len; i++) { \
mask[i] = fun; \
} \
return mask; \
}
#define WIDTH
Definition: filter.h:31

Definition at line 56 of file filter.h.

◆ WIDTH

#define WIDTH   4.0

Definition at line 31 of file filter.h.