VAT  3.0
Video Analysis Tool
ForegroundAcquisitionModule.h
1 #ifndef __FACQUISITION_MODULE_H__
2 #define __FACQUISITION_MODULE_H__
3 
4 #include <map>
5 #include <string>
6 #include <QImage>
7 #include "Datapool.h"
8 #include <QDir>
9 #include "string.h"
10 #include "ModuleInterface.h"
11 
12 
13 #include <opencv2/core/core.hpp>
14 #include <opencv2/highgui/highgui.hpp>
15 #include <iostream>
16 #include <opencv2/core/mat.hpp>
17 
19  public:
22 
23  //Set module configuration parameters
24  bool setParameters(QDomNode& config);
25 
26  //Initialization after reading parameters
27  bool init();
28 
29  //Function executed at each frame
30  bool run();
31 
32  //update parameters at runtime.
33  bool updateParameters();
34 
35 cv::Mat opencvImage;
36  //opencv2::Mat opencvImage;
37  //Mat opencvImage;
38 
39  static int m_defaultMillisecs;
40  bool m_saveCurrent;
41  QImage *getNextFrame();
42  QImage *getFrame(int i_numFrame);
43  int getNumFrame();
44  bool goToFirstFrame();
45  void openDir();
46  void openFiles();
47  bool readImageOnDisk(QImage **);
48  void readTimeStamp(QString&);
49  void setDirectory(QString dir);
50  void setDirectory();
51  void initialFrame();
52 
53 
54  private:
55  //Internal data:
56  int m_startFrame;
57  QString m_seqDir;
58  bool m_parseDirectory;
59  bool firstTime;
60  int m_currentImageIndex;
61  int m_firstFrameIndex;
62  int m_currentDirIndex;
63  QDir directory;
64  QDir subdirectory;
65  QStringList directories;
66  QStringList currentFiles;
67  int m_numberOfDirs;
68  int m_numberOfFiles;
69  int m_imageType;
70  int m_NumFrame;
71  QString m_videoDirectory;
72  QString m_fileName;
73  bool doReset;
74  bool m_withFramesToCycle;
75  int m_framesToCycle;
76  int m_cycleCounter;
77  int m_cycleStartFrame;
78 
79  //Added for bg and contrast generation
80  bool bg_generated;
81  bool m_gencontrast;
82 };
83 
84 
85 #endif
Definition: ModuleInterface.h:43
An object of this class is instantiated at main code, and this object is used by every class to push ...
Definition: Datapool.h:39
Definition: ForegroundAcquisitionModule.h:18