PedestrainCounting
PedestrainCounting.h
1 /*******************************************
2  Pedestrain Count System.
3  @author Zhengrong Wang
4  *******************************************/
5 
6 #ifndef PEDESTRAIN_COUNTING_HEADER
7 #define PEDESTRAIN_COUNTING_HEADER
8 
9 #include "kmeans.h"
10 #include "meanshift.h"
11 
12 #include "VideoDetector.h"
13 #include "BKGCutDetector.h"
14 #include "AdaBoostClassifier.h"
15 #include "HoGIntegralImage.h"
16 #include "RGIIntegralImage.h"
17 #include "GrayScaleIntegralImage.h"
18 #include "StrongClassifierDirectSelect.h"
19 #include "ParticleFilterTracker.h"
20 #include "MultiTracker.h"
21 
22 const int BKG_DETECTION_NUM_CLUSTER = 3;
23 const int BKG_VIDEO_PIC_NUM_ALL = 50;
24 
25 #define adaboostFile "HOGClassifier\\"
26 
27 #define HEIGHT 64
28 #define WIDTH 32
29 
31 public:
32 
34  ~PedestrainCounter() {}
35 
36  void ParseParams(int argc, char *argv[]);
37 
38  void PrintHelp();
39 
40  void DetectSinglePictureHOG(const char *in, const char *out,
41  const char *adaboost, const Options &opt);
42 
43  void DetectSinglePictureBKG(const char *in, const char *bkg, const char *out,
44  const char *adaboost, const Options &opt);
45 
46  void DetectVideoHOG(const char *in, const char *out,
47  const char *adaboost, const Options &opt);
48 
49  void DetectVideoBKG(const char *in, const char *bkg, const char *out,
50  const char *adaboost, const Options &opt);
51 
52  void TrackVideoSingle(const char *in, const char *out);
53 
54  void TrackVideoMulti(const char *in, const char *bkg, const char *out,
55  const char *adaboost, const Options &opt);
56 
57  static void GetTarget(int event, int x, int y, int flags, void *userParams);
58 
59  IplImage* video_bkg_detect(
60  const TCHAR *pIn, const TCHAR* pTemp, int num_cluster, int r, int pic_num_all,
61  int H_thres, int W_thres);
62 
63  void create_meanshift_queue(const TCHAR *pIn,
64  const TCHAR* pOut, int r, int pic_num_all);
65 
66  void readin_tuples(
67  TCHAR pIn[], Tuple* &tuples, int pic_num_all, CvRect roi,
68  int frameH, int frameW);
69 
70 private:
71  Options opt;
72 };
73 
74 #endif
Definition: PedestrainCounting.h:30
Definition: kmeans.h:26
Definition: Options.h:14