AWViz-ROS
Loading...
Searching...
No Matches
rerun::CollectionAdapter< TElement, cv::Mat > Struct Template Reference

An adaptor to be able to borrow an OpenCV matrix into Rerun images without copying. More...

#include <collection_adapter.hpp>

Public Member Functions

Collection< TElement > operator() (const cv::Mat &img)
 Borrow for non-temporary.
 
Collection< TElement > operator() (cv::Mat &&img)
 Do a full copy for temporaries (otherwise the data might be deleted when the temporary is destroyed).
 

Detailed Description

template<typename TElement>
struct rerun::CollectionAdapter< TElement, cv::Mat >

An adaptor to be able to borrow an OpenCV matrix into Rerun images without copying.

Member Function Documentation

◆ operator()() [1/2]

template<typename TElement >
Collection< TElement > rerun::CollectionAdapter< TElement, cv::Mat >::operator() ( const cv::Mat &  img)
inline

Borrow for non-temporary.

Parameters
imgOpenCV matrix.
Returns
Collection<TElement>

◆ operator()() [2/2]

template<typename TElement >
Collection< TElement > rerun::CollectionAdapter< TElement, cv::Mat >::operator() ( cv::Mat &&  img)
inline

Do a full copy for temporaries (otherwise the data might be deleted when the temporary is destroyed).

Parameters
imgOpenCV matrix.
Returns
Collection<TElement>

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