Mercurial > hg > nsaunier > traffic-intelligence
comparison include/InputFrameListModule.h @ 614:5e09583275a4
Merged Nicolas/trafficintelligence into default
| author | Mohamed Gomaa <eng.m.gom3a@gmail.com> |
|---|---|
| date | Fri, 05 Dec 2014 12:13:53 -0500 |
| parents | b829ebdc18e6 |
| children |
comparison
equal
deleted
inserted
replaced
| 598:11f96bd08552 | 614:5e09583275a4 |
|---|---|
| 1 #ifndef INPUT_FRAME_LIST_MODULE_H | |
| 2 #define INPUT_FRAME_LIST_MODULE_H | |
| 3 | |
| 4 #include "InputFrameProviderIface.h" | |
| 5 | |
| 6 #include <string> | |
| 7 #include <vector> | |
| 8 | |
| 9 class InputFrameListModule : public InputFrameProviderIface | |
| 10 { | |
| 11 public: | |
| 12 InputFrameListModule(const std::string& _dirname); | |
| 13 ~InputFrameListModule(); | |
| 14 | |
| 15 bool getNextFrame(cv::Mat&); | |
| 16 unsigned int getNbFrames(); | |
| 17 bool isOpen() const { return mInit;} | |
| 18 void setFrameNumber(const unsigned int& frameNumber); | |
| 19 | |
| 20 virtual const cv::Size& getSize() const { return mSize;} | |
| 21 private: | |
| 22 void loadImageList(void); | |
| 23 std::vector<std::string> filenames; | |
| 24 unsigned int mCurrentIdx; | |
| 25 bool mInit; | |
| 26 std::string dirname; | |
| 27 cv::Size mSize; | |
| 28 }; | |
| 29 | |
| 30 #endif |
