Main Page | Namespace List | Class Hierarchy | Alphabetical List | Data Structures | Directories | File List | Namespace Members | Data Fields | Globals

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

Functions

static void normalize (std::vector< float > &mask)
static std::vector< float > make_fgauss (float sigma)
static image< float > * smooth (image< float > *src, float sigma)
image< float > * smooth (image< uchar > *src, float sigma)
static image< float > * laplacian (image< float > *src)


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

#define WIDTH   4.0
 


Function Documentation

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

static std::vector<float> make_fgauss float  sigma  )  [static]
 

static void normalize std::vector< float > &  mask  )  [static]
 

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

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


Generated on Wed Oct 5 14:36:13 2005 for RobotFlow by  doxygen 1.4.4