Catchea
Topographic Data Browser
|
#include <utility>
#include <queue>
#include <cstdio>
#include <utils.h>
#include <cstdlib>
#include "catchmenter.h"
Macros | |
#define | CORD(x, y, w) (y * w + x) |
#define | TCORD(x, y) CORD(x, y, tile->width) |
#define | FROM_CORD_X(pos, w) (pos % w) |
#define | FROM_CORD_Y(pos, w) (pos / w) |
Functions | |
bool | is_valid (const RealTile *tile, const int &pos_x, const int &pos_y) |
bool | is_local_minimum (const RealTile *tile, const int &pos_x, const int &pos_y, const Kernel &kernel) |
void | Catchmenter__color_pixel (RealTile *tile, const int &x, const int &y, const Kernel &kernel) |
bool | can_expand (RealTile *tile, int pos_x, int pos_y, int dx, int dy, int jump_max=1) |
void | Catchmenter__from (RealTile *tile, bool *visi_matrix, const int &from_x, const int &from_y, const Kernel &kernel, int jump_max) |
void | Catchmenter__all (RealTile *tile, const Kernel &kernel, int jump_max) |
void | Catchmenter__color_all (RealTile *tile, const Kernel &kernel) |
void | Catchmenter__color_all_immediate (RealTile *tile, const Kernel &kernel) |
void | Catchmenter__color_all_immediate_heightwise (RealTile *tile, const Kernel &kernel) |
Variables | |
Kernel | K4 |
Kernel | K4_HARD_MIN |
Kernel | K8 |
Kernel | K8_HARD_MIN |
void Catchmenter__from | ( | RealTile * | tile, |
bool * | visi_matrix, | ||
const int & | from_x, | ||
const int & | from_y, | ||
const Kernel & | kernel, | ||
int | jump_max | ||
) |
Color RealTile from given position
Kernel K4 |
Kernel K4_HARD_MIN |
Kernel K8 |
Kernel K8_HARD_MIN |