OSVR Framework (Internal Development Docs)  0.6-1962-g59773924
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
osvr::vbtracker::DK2WrappedImageSource Class Reference
Inheritance diagram for osvr::vbtracker::DK2WrappedImageSource:
osvr::vbtracker::ImageSource osvr::vbtracker::ImageSource

Public Member Functions

 DK2WrappedImageSource (ImageSourcePtr &&cam, bool doHid)
 
bool ok () const override
 
bool grab () override
 
void retrieve (cv::Mat &color, cv::Mat &gray, osvr::util::time::TimeValue &timestamp) override
 Call after grab() to get the actual image data.
 
cv::Size resolution () const override
 Get resolution of the images from this source.
 
void retrieveColor (cv::Mat &color, osvr::util::time::TimeValue &timestamp) override
 
 DK2WrappedImageSource (ImageSourcePtr &&cam, bool doHid)
 
bool ok () const override
 
bool grab () override
 
void retrieve (cv::Mat &color, cv::Mat &gray) override
 Call after grab() to get the actual image data.
 
cv::Size resolution () const override
 Get resolution of the images from this source.
 
void retrieveColor (cv::Mat &color) override
 
- Public Member Functions inherited from osvr::vbtracker::ImageSource
virtual ~ImageSource ()
 Destructor.
 
void retrieve (cv::Mat &color, cv::Mat &gray)
 
void retrieveColor (cv::Mat &color)
 
virtual ~ImageSource ()
 Destructor.
 

Detailed Description

Definition at line 37 of file DK2ImageSource.cpp.

Member Function Documentation

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

Implements osvr::vbtracker::ImageSource.

Definition at line 47 of file DK2ImageSource.cpp.

bool osvr::vbtracker::DK2WrappedImageSource::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.

Definition at line 71 of file DK2ImageSource.cpp.

void osvr::vbtracker::DK2WrappedImageSource::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.

Definition at line 88 of file DK2ImageSource.cpp.

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

Implements osvr::vbtracker::ImageSource.

Definition at line 47 of file DK2ImageSource.cpp.

bool osvr::vbtracker::DK2WrappedImageSource::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.

void osvr::vbtracker::DK2WrappedImageSource::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.

Definition at line 84 of file DK2ImageSource.cpp.


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