Image Utilities (IU)
 All Data Structures Namespaces Functions Variables Typedefs Enumerations Friends Groups Pages
videosource.h
1 #pragma once
2 
3 #include <opencv2/opencv.hpp>
4 
5 
6 namespace iu {
7 
18 {
19 public:
20 
25  virtual cv::Mat getImage() = 0;
26 
31  virtual unsigned int getWidth() = 0;
32 
37  virtual unsigned int getHeight() = 0;
38 
43  virtual unsigned int getCurrentFrameNr() = 0;
44 
45 protected:
46  unsigned int width_;
47  unsigned int height_;
48  unsigned int frameNr_;
49 };
50  // end of videoIO
52 
53 
54 } // namespace iu
55 
56 
The VideoSource class is the abstract base class for video input.
Definition: videosource.h:17
virtual unsigned int getCurrentFrameNr()=0
get current frame number.
virtual cv::Mat getImage()=0
get a new image from the source
virtual unsigned int getWidth()=0
get image width
virtual unsigned int getHeight()=0
get image height