OpenCV  4.5.1
Open Source Computer Vision
Classes | Enumerations | Functions
cv::ocl Namespace Reference

Classes

class  Context
 
class  Device
 
class  Image2D
 
class  Kernel
 
class  KernelArg
 
class  OpenCLExecutionContext
 
class  OpenCLExecutionContextScope
 
class  Platform
 
class  PlatformInfo
 
class  Program
 
class  ProgramSource
 
class  Queue
 
class  Timer
 

Enumerations

enum  OclVectorStrategy {
  OCL_VECTOR_OWN = 0,
  OCL_VECTOR_MAX = 1,
  OCL_VECTOR_DEFAULT = OCL_VECTOR_OWN
}
 

Functions

void attachContext (const String &platformName, void *platformID, void *context, void *deviceID)
 Attaches OpenCL context to OpenCV. More...
 
void buildOptionsAddMatrixDescription (String &buildOptions, const String &name, InputArray _m)
 
int checkOptimalVectorWidth (const int *vectorWidths, InputArray src1, InputArray src2=noArray(), InputArray src3=noArray(), InputArray src4=noArray(), InputArray src5=noArray(), InputArray src6=noArray(), InputArray src7=noArray(), InputArray src8=noArray(), InputArray src9=noArray(), OclVectorStrategy strat=OCL_VECTOR_DEFAULT)
 
void convertFromBuffer (void *cl_mem_buffer, size_t step, int rows, int cols, int type, UMat &dst)
 Convert OpenCL buffer to UMat. More...
 
void convertFromImage (void *cl_mem_image, UMat &dst)
 Convert OpenCL image2d_t to UMat. More...
 
const char * convertTypeStr (int sdepth, int ddepth, int cn, char *buf)
 
void finish ()
 
MatAllocatorgetOpenCLAllocator ()
 
const char * getOpenCLErrorString (int errorCode)
 
void getPlatfomsInfo (std::vector< PlatformInfo > &platform_info)
 
bool haveAmdBlas ()
 
bool haveAmdFft ()
 
bool haveOpenCL ()
 
bool haveSVM ()
 
void initializeContextFromHandle (Context &ctx, void *platform, void *context, void *device)
 
static bool isOpenCLActivated ()
 
String kernelToStr (InputArray _kernel, int ddepth=-1, const char *name=NULL)
 
const char * memopTypeToStr (int t)
 
int predictOptimalVectorWidth (InputArray src1, InputArray src2=noArray(), InputArray src3=noArray(), InputArray src4=noArray(), InputArray src5=noArray(), InputArray src6=noArray(), InputArray src7=noArray(), InputArray src8=noArray(), InputArray src9=noArray(), OclVectorStrategy strat=OCL_VECTOR_DEFAULT)
 
int predictOptimalVectorWidthMax (InputArray src1, InputArray src2=noArray(), InputArray src3=noArray(), InputArray src4=noArray(), InputArray src5=noArray(), InputArray src6=noArray(), InputArray src7=noArray(), InputArray src8=noArray(), InputArray src9=noArray())
 
void setUseOpenCL (bool flag)
 
const char * typeToStr (int t)
 
bool useOpenCL ()
 
const char * vecopTypeToStr (int t)
 

Function Documentation

◆ isOpenCLActivated()

static bool cv::ocl::isOpenCLActivated ( )
inlinestatic