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