OSVR-Core
|
Uniform interface for the various normal to strange image sources for the tracking algorithm. More...
#include <ImageSource.h>
Public Member Functions | |
virtual | ~ImageSource () |
Destructor. | |
virtual bool | ok () const =0 |
virtual bool | grab ()=0 |
Trigger camera capture. More... | |
virtual void | retrieve (cv::Mat &color, cv::Mat &gray, osvr::util::time::TimeValue ×tamp) |
Call after grab() to get the actual image data. | |
void | retrieve (cv::Mat &color, cv::Mat &gray) |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. discards timestamp. More... | |
virtual cv::Size | resolution () const =0 |
Get resolution of the images from this source. | |
virtual void | retrieveColor (cv::Mat &color, osvr::util::time::TimeValue ×tamp)=0 |
For those devices that naturally read a non-corrupt color image, overriding just this method will let the default implementation of retrieve() do the RGB to Gray for you. More... | |
void | retrieveColor (cv::Mat &color) |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. discards timestamp. More... | |
virtual | ~ImageSource () |
Destructor. | |
virtual bool | ok () const =0 |
virtual bool | grab ()=0 |
Trigger camera capture. More... | |
virtual void | retrieve (cv::Mat &color, cv::Mat &gray) |
Call after grab() to get the actual image data. | |
virtual cv::Size | resolution () const =0 |
Get resolution of the images from this source. | |
virtual void | retrieveColor (cv::Mat &color)=0 |
For those devices that naturally read a non-corrupt color image, overriding just this method will let the default implementation of retrieve() do the RGB to Gray for you. More... | |
Uniform interface for the various normal to strange image sources for the tracking algorithm.
|
pure virtual |
Trigger camera capture.
May not necessarily include retrieval. Blocks until an image is available. or failure occurs.
Timestamp after this call returns.
Implemented in osvr::vbtracker::UVCImageSource, osvr::vbtracker::DirectShowImageSource, osvr::vbtracker::DirectShowImageSource, osvr::vbtracker::OpenCVImageSource, osvr::vbtracker::DK2WrappedImageSource, osvr::vbtracker::FakeImageSource, osvr::vbtracker::OpenCVImageSource, osvr::vbtracker::DK2WrappedImageSource, and osvr::vbtracker::FakeImageSource.
|
pure virtual |
Trigger camera capture.
May not necessarily include retrieval. Blocks until an image is available. or failure occurs.
Timestamp after this call returns.
Implemented in osvr::vbtracker::UVCImageSource, osvr::vbtracker::DirectShowImageSource, osvr::vbtracker::DirectShowImageSource, osvr::vbtracker::OpenCVImageSource, osvr::vbtracker::DK2WrappedImageSource, osvr::vbtracker::FakeImageSource, osvr::vbtracker::OpenCVImageSource, osvr::vbtracker::DK2WrappedImageSource, and osvr::vbtracker::FakeImageSource.
|
pure virtual |
Implemented in osvr::vbtracker::UVCImageSource, osvr::vbtracker::DirectShowImageSource, osvr::vbtracker::DirectShowImageSource, osvr::vbtracker::OpenCVImageSource, osvr::vbtracker::DK2WrappedImageSource, osvr::vbtracker::FakeImageSource, osvr::vbtracker::OpenCVImageSource, osvr::vbtracker::DK2WrappedImageSource, and osvr::vbtracker::FakeImageSource.
|
pure virtual |
Implemented in osvr::vbtracker::UVCImageSource, osvr::vbtracker::DirectShowImageSource, osvr::vbtracker::DirectShowImageSource, osvr::vbtracker::OpenCVImageSource, osvr::vbtracker::DK2WrappedImageSource, osvr::vbtracker::FakeImageSource, osvr::vbtracker::OpenCVImageSource, osvr::vbtracker::DK2WrappedImageSource, and osvr::vbtracker::FakeImageSource.
|
inline |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. discards timestamp.
|
pure virtual |
For those devices that naturally read a non-corrupt color image, overriding just this method will let the default implementation of retrieve() do the RGB to Gray for you.
Implemented in osvr::vbtracker::UVCImageSource, osvr::vbtracker::DirectShowImageSource, osvr::vbtracker::DK2WrappedImageSource, osvr::vbtracker::OpenCVImageSource, and osvr::vbtracker::FakeImageSource.
|
pure virtual |
For those devices that naturally read a non-corrupt color image, overriding just this method will let the default implementation of retrieve() do the RGB to Gray for you.
Implemented in osvr::vbtracker::DirectShowImageSource, osvr::vbtracker::DK2WrappedImageSource, osvr::vbtracker::OpenCVImageSource, and osvr::vbtracker::FakeImageSource.
|
inline |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. discards timestamp.