thinning.h
Go to the documentation of this file.
1 #ifndef _THINNING
2 #define _THINNING
3 
4 #include <opencv/cv.h>
5 #include <queue>
6 
7 namespace voronoi_map
8 {
9 
15 void sceletonize_iteration(cv::Mat& img, int iter);
21 void sceletonize(const cv::Mat& src, cv::Mat& dst);
22 
28 void greyscale_thinning(const cv::Mat& src, cv::Mat& dst);
29 
30 
31 class Index
32 {
33 public:
34  Index(int x,int y, float pot)
35  {
36  i = x;
37  j = y;
38  potential = pot;
39  }
40  Index offset(int x, int y)
41  {
42  return Index(i+x,j+y, potential);
43  }
44  int i;
45  int j;
46  float potential;
47 };
48 
49 
57 Index getMaximumNeighbour(int i, int j, const cv::Mat& src, cv::Mat& dst);
58 
59 }
60 
61 #endif
void greyscale_thinning(const cv::Mat &src, cv::Mat &dst)
Function for finding the ridge of a distance graph.
Definition: thinning.cpp:109
Index getMaximumNeighbour(int i, int j, const cv::Mat &src, cv::Mat &dst)
function for finding the maximum Neighbour ignoring the last detected pixels
Definition: thinning.cpp:463
void sceletonize_iteration(cv::Mat &img, int iter)
Perform one thinning iteration.(Normally you wouldn&#39;t call this function directly from your code) ...
Definition: thinning.cpp:7
void sceletonize(const cv::Mat &src, cv::Mat &dst)
Function for thinning the given binary image (Paper Zhang-Suen Thinning)
Definition: thinning.cpp:85
Index(int x, int y, float pot)
Definition: thinning.h:34
Index offset(int x, int y)
Definition: thinning.h:40


tuw_voronoi_graph
Author(s): Benjamin Binder
autogenerated on Mon Jun 10 2019 15:42:44