Code: Select all
void MyClass::myFunc(cv::OutputArray dst) const {
cv::Mat result;
...
dst.assign(result);
}
< /code>
Wenn ich es so ausführecv::Mat result;
myFunc(result);
otherFunc(result);
, aber wenn ich STD verwende :: async wie folgt:
Code: Select all
cv::Mat result;
auto resultFuture = std::async(&MyClass::myFunc, this, result);
resultFuture.wait();
otherFunc(result);
< /code>
otherFunc