5
#ifndef OPENCV_CORE_ASYNC_HPP
6
#define OPENCV_CORE_ASYNC_HPP
8
#include <opencv2/core/mat.hpp>
38
CV_WRAP
void
release() CV_NOEXCEPT;
63
bool
get(
OutputArray
dst,
double
timeoutNs)
const
{
return
get(dst, (int64)timeoutNs); }
65
bool
wait_for(int64 timeoutNs)
const;
68
bool
wait_for(
double
timeoutNs)
const
{
return
wait_for((int64)timeoutNs); }
70
CV_WRAP
bool
valid() const CV_NOEXCEPT;
73
inline
AsyncArray(AsyncArray&& o) { p = o.p; o.p = NULL; }
74
inline
AsyncArray& operator=(AsyncArray&& o) CV_NOEXCEPT {
std::swap(p, o.p);
return
*
this; }
76
template<
typename
_Rep,
typename
_Period>
77
inline
bool
get(OutputArray dst,
const
std::chrono::duration<_Rep, _Period>& timeout)
79
return
get(dst, (int64)(std::chrono::nanoseconds(timeout).count()));
82
template<
typename
_Rep,
typename
_Period>
83
inline
bool
wait_for(
const
std::chrono::duration<_Rep, _Period>& timeout)
85
return
wait_for((int64)(std::chrono::nanoseconds(timeout).count()));
89
std::future<Mat> getFutureMat()
const;
90
std::future<UMat> getFutureUMat()
const;
96
struct
Impl;
friend
struct
Impl;
97
inline
void* _getImpl() const CV_NOEXCEPT {
return
p; }
This type is very similar to InputArray except that it is used for input/output and output function p...
Definition:
mat.hpp:295
Returns result of asynchronous operations
Definition:
async.hpp:32
bool get(OutputArray dst, int64 timeoutNs) const
CV_EXPORTS void swap(Mat &a, Mat &b)
Swaps two matrices
"black box" representation of the file storage associated with a file on disk.
Definition:
aruco.hpp:75