VAT  3.0
Video Analysis Tool
GroundtruthAcquisitionModule.h
1 #ifndef __GACQUISITION_MODULE_H__
2 #define __GACQUISITION_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  QImage *getNextFrame();
40  QImage *getFrame(int i_numFrame);
41  int getNumFrame();
42  bool goToFirstFrame();
43  void openDir();
44  void openFiles();
45  bool readImageOnDisk(QImage **);
46  void setDirectory(QString dir);
47  void setDirectory();
48  void initialFrame();
49 
50 
51  private:
52  //Internal data:
53  int m_startFrame;
54  QString m_seqDir;
55  bool m_parseDirectory;
56  bool firstTime;
57  int m_currentImageIndex;
58  int m_firstFrameIndex;
59  int m_currentDirIndex;
60  QDir directory;
61  QDir subdirectory;
62  QStringList directories;
63  QStringList currentFiles;
64  int m_numberOfDirs;
65  int m_numberOfFiles;
66  int m_imageType;
67  int m_NumFrame;
68  QString m_videoDirectory;
69  QString m_fileName;
70  bool doReset;
71  bool matchWithFrameNumber;
72  int currentFrameNumber;
73 };
74 
75 
76 #endif
Definition: ModuleInterface.h:43
Definition: GroundtruthAcquisitionModule.h:18
An object of this class is instantiated at main code, and this object is used by every class to push ...
Definition: Datapool.h:39