VAT  3.0
Video Analysis Tool
SegmentationAcquisition.h
1 #ifndef SEGMENTATIONAQUISITION_H
2 #define SEGMENTATIONAQUISITION_H
3 
4 #include "ModuleInterface.h"
5 #include "custom_utils/XmlParameterExtractor.h"
6 #include "custom_utils/ImageFileParser.h"
7 #include <QString>
8 #include "VideoAnalysis.h"
9 
11  public:
14 
15  //Set module configuration parameters
16  bool setParameters(QDomNode& config);
17 
18  //Initialization after reading parameters
19  bool init();
20 
21  //Function executed at each frame
22  bool run();
23 
24  //update parameters at runtime.
25  bool updateParameters();
26 
27 cv::Mat opencvImage;
28  //opencv2::Mat opencvImage;
29  //Mat opencvImage;
30 
31  QImage *getNextFrame();
32  QImage *getFrame(int i_numFrame);
33  int getNumFrame();
34  bool goToFirstFrame();
35  void openDir();
36  void openFiles();
37  bool readImageOnDisk(QImage **);
38  void setDirectory(QString dir);
39  void setDirectory();
40  void initialFrame();
41 
42 
43  private:
44  //Internal data:
45  int m_startFrame;
46  int imgWidth;
47  int imgHeight;
48  QString m_seqDir;
49  bool m_parseDirectory;
50  bool firstTime;
51  int m_currentImageIndex;
52  int m_firstFrameIndex;
53  int m_currentDirIndex;
54  QDir directory;
55  QDir subdirectory;
56  QStringList directories;
57  QStringList currentFiles;
58  int m_numberOfDirs;
59  int m_numberOfFiles;
60  int m_imageType;
61  int m_NumFrame;
62  QString m_videoDirectory;
63  QString m_fileName;
64  bool doReset;
65  bool matchWithFrameNumber;
66  int currentFrameNumber;
67  cv::Mat cvImage;
68 };
69 
70 #endif // SEGMENTATIONAQUISITION_H
Definition: ModuleInterface.h:43
Definition: SegmentationAcquisition.h:10
An object of this class is instantiated at main code, and this object is used by every class to push ...
Definition: Datapool.h:39