25 #ifndef INCLUDED_ImageSource_h_GUID_C1B68116_0322_4DBD_2360_EF4E6A81D5F4
26 #define INCLUDED_ImageSource_h_GUID_C1B68116_0322_4DBD_2360_EF4E6A81D5F4
32 #include <opencv2/core/core.hpp>
48 virtual bool ok()
const = 0;
56 virtual bool grab() = 0;
59 virtual void retrieve(cv::Mat &color, cv::Mat &gray,
64 inline void retrieve(cv::Mat &color, cv::Mat &gray) {
88 using ImageSourcePtr = std::unique_ptr<ImageSource>;
91 #endif // INCLUDED_ImageSource_h_GUID_C1B68116_0322_4DBD_2360_EF4E6A81D5F4
virtual bool ok() const =0
void retrieve(cv::Mat &color, cv::Mat &gray)
void retrieveColor(cv::Mat &color)
Header providing a C++ wrapper around TimeValueC.h.
virtual ~ImageSource()
Destructor.
virtual void retrieve(cv::Mat &color, cv::Mat &gray, osvr::util::time::TimeValue ×tamp)
Call after grab() to get the actual image data.
virtual void retrieveColor(cv::Mat &color, osvr::util::time::TimeValue ×tamp)=0
virtual cv::Size resolution() const =0
Get resolution of the images from this source.
Standardized, portable parallel to struct timeval for representing both absolute times and time inter...