OpenCV  4.1.0
Open Source Computer Vision
Public Member Functions | Static Public Member Functions | Public Attributes | Friends | List of all members
cv::ocl::Context Class Reference

#include <opencv2/core/ocl.hpp>

Public Member Functions

 Context ()
 
 Context (int dtype)
 
 Context (const Context &c)
 
 ~Context ()
 
bool create ()
 
bool create (int dtype)
 
const Devicedevice (size_t idx) const
 
Impl * getImpl () const
 
Program getProg (const ProgramSource &prog, const String &buildopt, String &errmsg)
 
size_t ndevices () const
 
Contextoperator= (const Context &c)
 
void * ptr () const
 
void setUseSVM (bool enabled)
 
void unloadProg (Program &prog)
 
bool useSVM () const
 

Static Public Member Functions

static ContextgetDefault (bool initialize=true)
 

Public Attributes

Impl * p
 

Friends

void initializeContextFromHandle (Context &ctx, void *platform, void *context, void *device)
 

Constructor & Destructor Documentation

cv::ocl::Context::Context ( )
cv::ocl::Context::Context ( int  dtype)
explicit
cv::ocl::Context::~Context ( )
cv::ocl::Context::Context ( const Context c)

Member Function Documentation

bool cv::ocl::Context::create ( )
bool cv::ocl::Context::create ( int  dtype)
const Device& cv::ocl::Context::device ( size_t  idx) const
static Context& cv::ocl::Context::getDefault ( bool  initialize = true)
static
Impl* cv::ocl::Context::getImpl ( ) const
inline
Program cv::ocl::Context::getProg ( const ProgramSource prog,
const String buildopt,
String errmsg 
)
size_t cv::ocl::Context::ndevices ( ) const
Context& cv::ocl::Context::operator= ( const Context c)
void* cv::ocl::Context::ptr ( ) const
void cv::ocl::Context::setUseSVM ( bool  enabled)
void cv::ocl::Context::unloadProg ( Program prog)
bool cv::ocl::Context::useSVM ( ) const

Friends And Related Function Documentation

void initializeContextFromHandle ( Context ctx,
void *  platform,
void *  context,
void *  device 
)
friend

Member Data Documentation

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

The documentation for this class was generated from the following file: