OSVR-Core
Public Member Functions | List of all members
osvr::pluginkit::ImagingMessage Class Reference

A class wrapping a cv::Mat representing a frame, as well as the sensor ID it corresponds to. More...

#include <ImagingInterface.h>

Public Member Functions

 ImagingMessage (cv::Mat const &frame, OSVR_ChannelCount sensor=0)
 Constructor, optionally taking a sensor number. More...
 
cv::Mat const & getFrame () const
 Retrieves a reference to the cv::Mat object.
 
OSVR_ImageBufferElementgetBuf () const
 Retrieves the (cloned) buffer pointer.
 
OSVR_ChannelCount getSensor () const
 Gets the sensor number.
 

Detailed Description

A class wrapping a cv::Mat representing a frame, as well as the sensor ID it corresponds to.

Pass to osvr::pluginkit::DeviceToken::send() along with your osvr::pluginkit::ImagingInterface.

Constructor & Destructor Documentation

§ ImagingMessage()

osvr::pluginkit::ImagingMessage::ImagingMessage ( cv::Mat const &  frame,
OSVR_ChannelCount  sensor = 0 
)
inline

Constructor, optionally taking a sensor number.

Clones the supplied image/data as the imaging interface will take ownership of the given buffer and free it when done.


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