OpenCV453
公開メンバ関数 | 公開変数類 | 全メンバ一覧
cv::dnn::BackendWrapper クラスabstract

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.

構築子と解体子

◆ BackendWrapper() [1/2]

cv::dnn::BackendWrapper::BackendWrapper ( int  targetId,
const cv::Mat m 
)

Wrap cv::Mat for specific backend and target.

引数
[in]targetIdTarget identifier.
[in]mcv::Mat for wrapping.

Make CPU->GPU data transfer if it's require for the target.

◆ BackendWrapper() [2/2]

cv::dnn::BackendWrapper::BackendWrapper ( const Ptr< BackendWrapper > &  base,
const MatShape &  shape 
)

Make wrapper for reused cv::Mat.

引数
[in]baseWrapper of cv::Mat that will be reused.
[in]shapeSpecific 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.


このクラス詳解は次のファイルから抽出されました: