OSVR-Core
Public Member Functions | List of all members
osvr::vbtracker::DirectShowImageSource Class Reference
Inheritance diagram for osvr::vbtracker::DirectShowImageSource:
osvr::vbtracker::ImageSource osvr::vbtracker::ImageSource

Public Member Functions

 DirectShowImageSource (directx_camera_server_ptr &&cam)
 
bool ok () const override
 
bool grab () override
 Trigger camera capture. More...
 
void retrieveColor (cv::Mat &color, osvr::util::time::TimeValue &timestamp) override
 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...
 
cv::Size resolution () const override
 Get resolution of the images from this source.
 
 DirectShowImageSource (directx_camera_server_ptr &&cam)
 
bool ok () const override
 
bool grab () override
 Trigger camera capture. More...
 
void retrieveColor (cv::Mat &color) override
 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...
 
cv::Size resolution () const override
 Get resolution of the images from this source.
 
- Public Member Functions inherited from osvr::vbtracker::ImageSource
virtual ~ImageSource ()
 Destructor.
 
virtual void retrieve (cv::Mat &color, cv::Mat &gray, osvr::util::time::TimeValue &timestamp)
 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...
 
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 void retrieve (cv::Mat &color, cv::Mat &gray)
 Call after grab() to get the actual image data.
 

Member Function Documentation

§ grab() [1/2]

bool osvr::vbtracker::DirectShowImageSource::grab ( )
overridevirtual

Trigger camera capture.

May not necessarily include retrieval. Blocks until an image is available. or failure occurs.

Timestamp after this call returns.

Returns
false if the camera failed.

Implements osvr::vbtracker::ImageSource.

§ grab() [2/2]

bool osvr::vbtracker::DirectShowImageSource::grab ( )
overridevirtual

Trigger camera capture.

May not necessarily include retrieval. Blocks until an image is available. or failure occurs.

Timestamp after this call returns.

Returns
false if the camera failed.

Implements osvr::vbtracker::ImageSource.

§ ok() [1/2]

bool osvr::vbtracker::DirectShowImageSource::ok ( ) const
inlineoverridevirtual
Returns
true if the camera/image source is OK

Implements osvr::vbtracker::ImageSource.

§ ok() [2/2]

bool osvr::vbtracker::DirectShowImageSource::ok ( ) const
inlineoverridevirtual
Returns
true if the camera/image source is OK

Implements osvr::vbtracker::ImageSource.

§ retrieveColor() [1/2]

void osvr::vbtracker::DirectShowImageSource::retrieveColor ( cv::Mat &  color)
overridevirtual

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.

Implements osvr::vbtracker::ImageSource.

§ retrieveColor() [2/2]

void osvr::vbtracker::DirectShowImageSource::retrieveColor ( cv::Mat &  color,
osvr::util::time::TimeValue timestamp 
)
overridevirtual

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.

Implements osvr::vbtracker::ImageSource.


The documentation for this class was generated from the following file: