Catchea
Topographic Data Browser
catchmenter.h
Go to the documentation of this file.
1 
7 #ifndef CATCHEA_CATCHMENTER_H
8 #define CATCHEA_CATCHMENTER_H
9 
10 #include <vector>
11 #include "real_tile/real_tile.h"
12 
13 struct Kernel {
14  int count;
15  bool hard_min;
16  std::vector<int> dx;
17  std::vector<int> dy;
18 };
19 
20 extern Kernel K4, K4_HARD_MIN;
21 extern Kernel K8, K8_HARD_MIN;
22 
31 bool is_local_minimum(const RealTile* tile, const int& pos_x, const int& pos_y, const Kernel& kernel);
32 
36 void Catchmenter__color_pixel(RealTile* tile, const int& x, const int& y, const Kernel& kernel);
37 
41 void Catchmenter__color_all(RealTile* tile, const Kernel& kernel);
42 
48 void Catchmenter__color_all_immediate(RealTile* tile, const Kernel& kernel);
49 
56 
66 void Catchmenter__from(RealTile* tile, bool* visi_matrix, const int& from_x, const int& from_y, const Kernel& kernel, int jump_max);
67 
74 void Catchmenter__all(RealTile* tile, const Kernel& kernel, int jump_max);
75 
76 
77 #endif //CATCHEA_CATCHMENTER_H
bool is_local_minimum(const RealTile *tile, const int &pos_x, const int &pos_y, const Kernel &kernel)
Definition: catchmenter.cpp:25
void Catchmenter__color_all(RealTile *tile, const Kernel &kernel)
Definition: catchmenter.cpp:218
Definition: catchmenter.h:13
void Catchmenter__from(RealTile *tile, bool *visi_matrix, const int &from_x, const int &from_y, const Kernel &kernel, int jump_max)
Definition: catchmenter.cpp:136
Definition: real_tile.h:14
void Catchmenter__all(RealTile *tile, const Kernel &kernel, int jump_max)
Definition: catchmenter.cpp:176
void Catchmenter__color_pixel(RealTile *tile, const int &x, const int &y, const Kernel &kernel)
Definition: catchmenter.cpp:70
void Catchmenter__color_all_immediate(RealTile *tile, const Kernel &kernel)
Definition: catchmenter.cpp:275
void Catchmenter__color_all_immediate_heightwise(RealTile *tile, const Kernel &kernel)
Definition: catchmenter.cpp:337