#include <Globals.h>
Static Public Member Functions | |
Chrono functions | |
static void | initChrono (timeval &t) |
initialize chrono | |
static void | printChrono (std::string s, timeval &t) |
print chrono time | |
Scalar functions | |
template<typename T> | |
static float | gauss_density (float mean, float var, T val) |
gaussian PDE | |
template<typename T> | |
static float | log_ll (float mean, float var, T val) |
log likelihood of gaussian PDE | |
static float | delta (float v, float epsilon=1.0f) |
regularized dirac | |
static float | heaviside (float v, float epsilon=1.0f) |
regularized heavyside | |
Scalar Image Functions | |
template<unsigned DIM, typename Pixel> | |
static void | stats (const BaseImage< DIM, Pixel > &image, Pixel &min, Pixel &max, float &mean, float *variance=NULL) |
Compute the min, max, and mean of an image. | |
template<unsigned DIM, typename Pixel> | |
static void | normalize (BaseImage< DIM, Pixel > &image, Pixel min, Pixel max) |
Normalize an image between min and max. | |
template<unsigned DIM, typename Pixel> | |
static void | cut (BaseImage< DIM, Pixel > &image, Pixel min, Pixel max) |
cut an image, between min and max | |
Static Public Attributes | |
Constants | |
static const float | DIV_SQRT_2PI = 1.0f/2.506628274631f |
static const float | LOG_2PI = 0.79817987f |
static const float | DELTA = 1.0f |
static const float | EPS = 1e-6f |
Definition at line 38 of file Globals.h.