OpenCV453
|
Derivatives of this class wraps cv::Mat for different backends and targets. [詳解]
#include <dnn.hpp>
公開メンバ関数 | |
BackendWrapper (int backendId, int targetId) | |
BackendWrapper (int targetId, const cv::Mat &m) | |
Wrap cv::Mat for specific backend and target. [詳解] | |
BackendWrapper (const Ptr< BackendWrapper > &base, const MatShape &shape) | |
Make wrapper for reused cv::Mat. [詳解] | |
virtual | ~BackendWrapper () |
Virtual destructor to make polymorphism. | |
virtual void | copyToHost ()=0 |
Transfer data to CPU host memory. | |
virtual void | setHostDirty ()=0 |
Indicate that an actual data is on CPU. | |
公開変数類 | |
int | backendId |
Backend identifier. | |
int | targetId |
Target identifier. | |
Derivatives of this class wraps cv::Mat for different backends and targets.
cv::dnn::BackendWrapper::BackendWrapper | ( | int | targetId, |
const cv::Mat & | m | ||
) |
cv::dnn::BackendWrapper::BackendWrapper | ( | const Ptr< BackendWrapper > & | base, |
const MatShape & | shape | ||
) |
Make wrapper for reused cv::Mat.
[in] | base | Wrapper of cv::Mat that will be reused. |
[in] | shape | Specific shape. |
Initialize wrapper from another one. It'll wrap the same host CPU memory and mustn't allocate memory on device(i.e. GPU). It might has different shape. Use in case of CPU memory reusing for reuse associated memory on device too.