PedestrainCounting
ConnectedComponents.h
1 
6 #ifndef CONNECTED_COMPONENTS_HEADER
7 #define CONNECTED_COMPONENTS_HEADER
8 
9 #include "GlobalHeader.h"
10 #include "Pool.h"
11 
12 #define MORPH_SIZE 2
13 #define MPRPH_ELEM 0 // Rect Morph
14 
15 // Switch this to turn on/off debug image show.
16 // #define CCPDEBUG(...) cv::imshow(__VA_ARGS__)
17 // #define CCPWAIT cv::waitKey()
18 #define CCPDEBUG(...)
19 #define CCPWAIT
20 
22 public:
23  static void Find(cv::Mat &binary, bool polyApprox, float invPerimScale);
24 
25  // Data
26  // Contours: the contours we find.
27  // elements: const element used in morphology transform.
28  static std::vector<std::vector<cv::Point>> contours;
29  static const cv::Mat element;
30 };
31 
32 #endif
Definition: ConnectedComponents.h:21