#include <algorithm>
#include <cmath>
#include <vector>
#include "modules/perception/lidar/segmentation/ncut/common/graph_felzenszwalb/convolve.h"
#include "modules/perception/lidar/segmentation/ncut/common/graph_felzenszwalb/image.h"
#include "modules/perception/lidar/segmentation/ncut/common/graph_felzenszwalb/imconv.h"
#include "modules/perception/lidar/segmentation/ncut/common/graph_felzenszwalb/misc.h"
Go to the source code of this file.
◆ MAKE_FILTER
#define MAKE_FILTER |
( |
|
name, |
|
|
|
fun |
|
) |
| |
Value:std::vector<float> make_##name(float sigma) { \
sigma = std::max(sigma, 0.01F); \
int len =
static_cast<int>(ceil(sigma *
WIDTH)) + 1; \
std::vector<float> mask(len); \
for (int i = 0; i < len; i++) { \
mask[i] = fun; \
} \
return mask; \
}
const double WIDTH
Definition: filter.h:44