Defines | Functions
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.

Defines

#define MAKE_FILTER(name, fun)
#define WIDTH   4.0

Functions

static image< float > * laplacian (image< float > *src)
 MAKE_FILTER (fgauss, exp(-0.5 *square(i/sigma)))
static void normalize (std::vector< float > &mask)
static image< float > * smooth (image< float > *src, float sigma)
image< float > * smooth (image< uchar > *src, float sigma)

Define Documentation

#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;                                                \
}

Definition at line 47 of file filter.h.

#define WIDTH   4.0

Definition at line 31 of file filter.h.


Function Documentation

static image<float>* laplacian ( image< float > *  src) [static]

Definition at line 83 of file filter.h.

MAKE_FILTER ( fgauss  ,
exp(-0.5 *square(i/sigma))   
)
static void normalize ( std::vector< float > &  mask) [static]

Definition at line 34 of file filter.h.

static image<float>* smooth ( image< float > *  src,
float  sigma 
) [static]

Definition at line 61 of file filter.h.

image<float>* smooth ( image< uchar > *  src,
float  sigma 
)

Definition at line 75 of file filter.h.



iri_leaf_fitting
Author(s): Sergi Foix
autogenerated on Fri Dec 6 2013 20:28:17