30 #ifndef CAPTUREINTERFACE_H
31 #define CAPTUREINTERFACE_H
33 #include "../common.h"
121 virtual std::string
getPath()
const = 0;
158 virtual bool hasNew() = 0;
164 virtual bool isOpen()
const = 0;
171 virtual bool open(
const std::string& path) = 0;
194 #endif // CAPTUREINTERFACE_H
virtual double getBarrelCorrection()=0
Retrieves the barrel correction applied to the source.
virtual double getFramerate() const =0
Retrieves the capture device framerate.
DISALLOW_COPY_AND_ASSIGN(CaptureInterface)
Copy and assign of the class is not allowed.
virtual void setBarrelCorrection(double amount)=0
Sets the amount of the barrel correction to be applied.
Interface for the capture devices.
Definition: captureinterface.h:47
virtual bool setResolution(const cv::Size &new_size)=0
Sets the capturing device resolution.
virtual int getMissedFrames() const =0
Retrieves the logged frame misses.
virtual int getDeviceID() const =0
Returns the ID number the device was initialized with.
virtual std::string getDescription() const =0
Retrieves the description of the device.
virtual cv::Size getResolution() const =0
Retrieves the capture device resolution.
virtual FrameCapture getNext(bool skip, bool *error)=0
Retrieves the next frame.
The structure is used for storing a single source frame.
Definition: common.h:241
virtual void resetStats()=0
Resets the statistical counters.
virtual bool open(const std::string &path)=0
Opens the video file or the stream.
virtual bool hasNew()=0
Checks whether the device has a new image to retrieve or not.
virtual int getRetrievedFrames() const =0
Retrieves the total logged frames.
virtual bool isOpen() const =0
Checks whether the capturing device is open or not.
virtual std::string getPath() const =0
Retrieves the path given during the initialization.
virtual INTERFACE_TYPE getType() const =0
Retrieves the type of the device.
INTERFACE_TYPE
Used to define the type of source interface.
Definition: captureinterface.h:140
virtual FrameCapture getBuffered()=0
Retrieves the currently buffered frame.