OpenCV 4.13.0
Open Source Computer Vision
読み込み中...
検索中...
見つかりません
🤖 AIによる機械翻訳(非公式) — これは OpenCV 4.13.0 公式リファレンス(英語)を AI (Claude) で自動翻訳したものです。訳に誤りを含む場合があります。正確な情報は 公式英語版(原文) を参照してください。
cv::ocl::Context クラス

#include <opencv2/core/ocl.hpp>

Collaboration diagram for cv::ocl::Context:

クラス

class  UserContext
 

公開メンバ関数

 Context () CV_NOEXCEPT
 
 Context (const Context &c)
 
 Context (Context &&c) CV_NOEXCEPT
 
 Context (int dtype)
 
 ~Context ()
 
bool create ()
 
bool create (int dtype)
 
Devicedevice (size_t idx) const
 
bool empty () const
 
Impl * getImpl () const
 
void * getOpenCLContextProperty (int propertyId) const
 コンテキスト作成時に指定されたOpenCLコンテキストプロパティを取得する。
 
Program getProg (const ProgramSource &prog, const String &buildopt, String &errmsg)
 
template<typename T >
std::shared_ptr< T > getUserContext ()
 
std::shared_ptr< UserContextgetUserContext (std::type_index typeId)
 
size_t ndevices () const
 
Contextoperator= (const Context &c)
 
Contextoperator= (Context &&c) CV_NOEXCEPT
 
void * ptr () const
 
void release ()
 
template<typename T >
void setUserContext (const std::shared_ptr< T > &userContext)
 
void setUserContext (std::type_index typeId, const std::shared_ptr< UserContext > &userContext)
 
void setUseSVM (bool enabled)
 
void unloadProg (Program &prog)
 
bool useSVM () const
 

静的公開メンバ関数

static Context create (const std::string &configuration)
 
static Context fromDevice (const ocl::Device &device)
 
static Context fromHandle (void *context)
 
static ContextgetDefault (bool initialize=true)
 

公開変数類

Impl * p
 

構築子と解体子の詳解

◆ Context() [1/4]

cv::ocl::Context::Context ( )

◆ Context() [2/4]

cv::ocl::Context::Context ( int dtype)
explicit
非推奨Deprecated

◆ ~Context()

cv::ocl::Context::~Context ( )

◆ Context() [3/4]

cv::ocl::Context::Context ( const Context & c)

◆ Context() [4/4]

cv::ocl::Context::Context ( Context && c)

メンバ関数詳解

◆ create() [1/3]

bool cv::ocl::Context::create ( )
非推奨Deprecated

◆ create() [2/3]

static Context cv::ocl::Context::create ( const std::string & configuration)
static

◆ create() [3/3]

bool cv::ocl::Context::create ( int dtype)
非推奨Deprecated

◆ device()

Device & cv::ocl::Context::device ( size_t idx) const

◆ empty()

bool cv::ocl::Context::empty ( ) const
inline

◆ fromDevice()

static Context cv::ocl::Context::fromDevice ( const ocl::Device & device)
static

◆ fromHandle()

static Context cv::ocl::Context::fromHandle ( void * context)
static
引数
contextOpenCLハンドル(cl_context)。成功時にclRetainContext()が呼び出される

◆ getDefault()

static Context & cv::ocl::Context::getDefault ( bool initialize = true)
static

スレッドローカルなOpenCLコンテキストを取得する(必要に応じて初期化する)

◆ getImpl()

Impl * cv::ocl::Context::getImpl ( ) const
inline

◆ getOpenCLContextProperty()

void * cv::ocl::Context::getOpenCLContextProperty ( int propertyId) const

コンテキスト作成時に指定されたOpenCLコンテキストプロパティを取得する。

引数
propertyIdプロパティID(cl_context_properties型で定義されるCL_CONTEXT_*)
戻り値
clCreateContextでプロパティが指定されていた場合はそのプロパティ値、プロパティなしでコンテキストが作成された場合はNULL

◆ getProg()

Program cv::ocl::Context::getProg ( const ProgramSource & prog,
const String & buildopt,
String & errmsg )

◆ getUserContext() [1/2]

template<typename T >
std::shared_ptr< T > cv::ocl::Context::getUserContext ( )
inline

◆ getUserContext() [2/2]

std::shared_ptr< UserContext > cv::ocl::Context::getUserContext ( std::type_index typeId)

◆ ndevices()

size_t cv::ocl::Context::ndevices ( ) const

◆ operator=() [1/2]

Context & cv::ocl::Context::operator= ( const Context & c)

◆ operator=() [2/2]

Context & cv::ocl::Context::operator= ( Context && c)

◆ ptr()

void * cv::ocl::Context::ptr ( ) const
戻り値
cl_context値

◆ release()

void cv::ocl::Context::release ( )

◆ setUserContext() [1/2]

template<typename T >
void cv::ocl::Context::setUserContext ( const std::shared_ptr< T > & userContext)
inline

◆ setUserContext() [2/2]

void cv::ocl::Context::setUserContext ( std::type_index typeId,
const std::shared_ptr< UserContext > & userContext )

◆ setUseSVM()

void cv::ocl::Context::setUseSVM ( bool enabled)

◆ unloadProg()

void cv::ocl::Context::unloadProg ( Program & prog)

◆ useSVM()

bool cv::ocl::Context::useSVM ( ) const

メンバ変数詳解

◆ p

Impl* cv::ocl::Context::p

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