VAT  3.0
Video Analysis Tool
AcquisitionDepthModule.h
1 #ifndef ACQUISITIONDEPTHMODULE_H
2 #define ACQUISITIONDEPTHMODULE_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:
21 
23 
24  //Set module configuration parameters
25  bool setParameters(QDomNode& config);
26 
27  //Initialization after reading parameters
28  bool init();
29 
30  //Function executed at each frame
31  bool run();
32 
33  //update parameters at runtime.
34  bool updateParameters();
35 
36 cv::Mat opencvImage;
37  //opencv2::Mat opencvImage;
38  //Mat opencvImage;
39 
40  static int m_defaultMillisecs;
41  bool m_saveCurrent;
42  QImage *getNextFrame();
43  QImage *getFrame(int i_numFrame);
44  int getNumFrame();
45  bool goToFirstFrame();
46  void openDir();
47  void openFiles();
48  bool readImageOnDisk(QImage **);
49  void readTimeStamp(QString&);
50  void setDirectory(QString dir);
51  void setDirectory();
52  void initialFrame();
53 
54 
55  private:
56  //Internal data:
57  int m_startFrame;
58  QString m_seqDir;
59  bool m_parseDirectory;
60  bool firstTime;
61  int m_currentImageIndex;
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 
74 };
75 
76 
77 
78 #endif // ACQUISITIONDEPTHMODULE_H
Definition: ModuleInterface.h:43
Definition: AcquisitionDepthModule.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