#include <opencv2/core/ocl.hpp>
◆ Context() [1/4]
| cv::ocl::Context::Context |
( |
| ) |
|
◆ Context() [2/4]
| cv::ocl::Context::Context |
( |
int | dtype | ) |
|
|
explicit (显式) |
◆ ~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 |
( |
| ) |
|
◆ create() [2/3]
| static Context cv::ocl::Context::create |
( |
const std::string & | configuration | ) |
|
|
static (静态) |
◆ create() [3/3]
| bool cv::ocl::Context::create |
( |
int | dtype | ) |
|
◆ device()
| Device & cv::ocl::Context::device |
( |
size_t | idx (索引) | ) |
const |
◆ empty()
| bool cv::ocl::Context::empty |
( |
| ) |
const |
|
内联 |
◆ fromDevice()
◆ fromHandle()
| static Context cv::ocl::Context::fromHandle |
( |
void * | context | ) |
|
|
static (静态) |
- 参数
-
| context | OpenCL handle (cl_context)。成功时调用 clRetainContext() |
◆ getDefault()
| static Context & cv::ocl::Context::getDefault |
( |
bool | initialize = true | ) |
|
|
static (静态) |
获取线程本地的 OpenCL 上下文(必要时进行初始化)
◆ getImpl()
| Impl * cv::ocl::Context::getImpl |
( |
| ) |
const |
|
内联 |
◆ getOpenCLContextProperty()
| void * cv::ocl::Context::getOpenCLContextProperty |
( |
int | propertyId | ) |
const |
在创建上下文时获取指定的 OpenCL 上下文属性。
- 参数
-
| propertyId | 属性 ID (CL_CONTEXT_*,在 cl_context_properties 类型中定义) |
- 返回
- 如果属性是在 clCreateContext 时指定的,则为属性值;如果上下文是在未指定属性的情况下创建的,则为 NULL。
◆ getProg()
◆ getUserContext() [1/2]
template<typename T >
| std::shared_ptr< T > cv::ocl::Context::getUserContext |
( |
| ) |
|
|
内联 |
◆ 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]
◆ operator=() [2/2]
◆ ptr()
| void * cv::ocl::Context::ptr |
( |
| ) |
const |
◆ release()
| void cv::ocl::Context::release |
( |
| ) |
|
◆ setUserContext() [1/2]
template<typename T >
| void cv::ocl::Context::setUserContext |
( |
const std::shared_ptr< T > & | userContext | ) |
|
|
内联 |
◆ 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 |
| Impl* cv::ocl::Context::p |
该类的文档由以下文件生成: