SLAMTEC Aurora Public Remote SDK  1.2.0-rtm
rp::standalone::aurora::RemoteImageRef Class Reference

The image reference class wraps the image description and data. More...

#include <slamtec_remote_objects.hxx>

Public Member Functions

 RemoteImageRef (const slamtec_aurora_sdk_image_desc_t &desc, const void *data)
 
template<typename T >
std::enable_if< std::is_same< T, cv::Mat >::value, bool >::type toMat (T &mat) const
 Convert the image to a cv::Mat object. More...
 

Public Attributes

const void * _data
 The data pointer of the image.
 
const slamtec_aurora_sdk_image_desc_t_desc
 

Detailed Description

The image reference class wraps the image description and data.

This class is used to wrap the image description and data.

Member Function Documentation

◆ toMat()

template<typename T >
std::enable_if<std::is_same<T, cv::Mat>::value, bool>::type rp::standalone::aurora::RemoteImageRef::toMat ( T &  mat) const
inline

Convert the image to a cv::Mat object.

This function is used to convert the image to a cv::Mat object.

This function is only available when OpenCV headers are included.

Parameters
[out]matThe cv::Mat object
Returns
True if the conversion is successful, false otherwise

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